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

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 28 16:01:27 UTC 2012


#21101: Allow get_comments() to query for explicit value of comment_approved
-------------------------+-----------------------------
 Reporter:  nbachiyski   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Comments     |    Version:  3.4
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 If you have a comment with value of {{{comment_approved}}} different from
 the default ones (if you don't want it showing in the admin/frontend),
 currently you can't query for it directly.

 The patch adds another query var, {{{comment_approved}}} which overrides
 the value of the {{{status}}} query var and searches for an explicit value
 of the column, instead of doing special cases and using 0/1 as default.

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


More information about the wp-trac mailing list