WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#14163 closed enhancement

Extend comment search to support user_id as argument — at Version 1

Reported by: neoxx Owned by: scribu
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0
Component: Comments Keywords: gsoc has-patch
Focuses: Cc:

Description (last modified by scribu)

Hi,

what do you think about the idea of extending _wp_get_comment_list in wp-admin/includes/template.php in a way that we can also query for user-ids?

I know, that the user_id will only be stored for comments of logged-in users, though I would need this search functionality not only, but also for my count-comments plugin. Currently, I implemented a link from users.php to edit-comments.php using
?s=user_display_name which obviously results in missed comments as well as false positives.

Just to give the idea a start, I've attached a patch prototype that extends handling of $_REQUEST['s']. - Or would we prefer a separate argument?

Change History (1)

comment:1 scribu4 years ago

  • Description modified (diff)
  • Keywords gsoc added; comments comment user removed
  • Milestone changed from Awaiting Review to Future Release
  • Owner set to scribu
  • Status changed from new to assigned

As part of my GSoC project, I have removed _wp_get_comment_list() in favor of get_comments(), which already has a 'user_id' argument.

Note: See TracTickets for help on using tickets.