[wp-trac] [WordPress Trac] #35512: Inconsistent behavior when passing `post_status=any` to WP_Comment_Query
WordPress Trac
noreply at wordpress.org
Wed Feb 3 20:40:58 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 kouratoras):
Thank you for the feedback @boonebgorges.
I can see your point here. We should provide the same results in case that
`post_type` (or `post_status`) parameter is `any` or omitted at all.
I also think that comments have nothing to do with the post type or status
and agree to discard the `exclude_from_search` logic.
I attach the modified patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35512#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list