[wp-trac] [WordPress Trac] #35512: Inconsistent behavior when passing `post_status=any` to WP_Comment_Query

WordPress Trac noreply at wordpress.org
Sat Feb 6 03:32:56 UTC 2016


#35512: Inconsistent behavior when passing `post_status=any` to WP_Comment_Query
--------------------------------------------------+------------------
 Reporter:  danielbachhuber                       |       Owner:
     Type:  defect (bug)                          |      Status:  new
 Priority:  normal                                |   Milestone:  4.5
Component:  Comments                              |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-opinion  |     Focuses:
--------------------------------------------------+------------------

Comment (by boonebgorges):

 Thanks, @kouratoras.

 If we aren't going to omit any post types or post statuses, what's the
 point in validating against them? By that token, if someone passes
 'post_type=any', it suggests to me that the 'post_type' clause should be
 omitted together. See [attachment:35512.diff].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35512#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list