[wp-trac] [WordPress Trac] #21101: Allow get_comments() to query for explicit value of comment_approved

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 28 15:13:35 UTC 2012


#21101: Allow get_comments() to query for explicit value of comment_approved
------------------------------+---------------------
 Reporter:  nbachiyski        |       Owner:  westi
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  3.5
Component:  Comments          |     Version:  3.4
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by Otto42):

 This seems to break the main listing on the edit-comments.php screen. It
 causes queries to be generated like this:

 {{{
 SELECT * FROM wp_comments WHERE comment_approved = 'all' ORDER BY
 comment_date_gmt DESC LIMIT 28
 }}}

 Naturally, there's no comments with comment_approved = 'all'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21101#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list