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

WordPress Trac noreply at wordpress.org
Fri Jan 22 19:35:05 UTC 2016


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

 * keywords:  needs-patch needs-unit-tests =>


Comment:

 [attachment:35090.diff] shows what I have in mind:

 * Passing `null`, `false`, or `''` to `post_id` results in the clause
 being ignored (current behavior).
 * Omitting the `post_id` param will return results regardless of
 `comment_post_ID` (current behavior).
 * Passing `0` or `'0'` to `post_id` limits results to comments with
 `comment_post_ID=0` (new behavior)

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


More information about the wp-trac mailing list