[wp-trac] [WordPress Trac] #35090: Query for comments where post isn't set

WordPress Trac noreply at wordpress.org
Fri Feb 5 18:49:48 UTC 2016


#35090: Query for comments where post isn't set
-----------------------------+---------------------------
 Reporter:  danielbachhuber  |       Owner:  boonebgorges
     Type:  defect (bug)     |      Status:  reopened
 Priority:  high             |   Milestone:  4.5
Component:  Comments         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"36480"]:
 {{{
 #!CommitTicketReference repository="" revision="36480"
 Comments: Restore the ability to bypass post_id filter using 0 or '0'.

 The changes introduced in [36381], while logical and clearly awesome,
 introduce
 the potential for much breakage. Those who want to query for comments with
 a
 null `comment_post_ID` should use `'post_in' => array( 0 )` instead.

 Reverts [36381], [36387].
 See #35090.
 }}}

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


More information about the wp-trac mailing list