[wp-trac] [WordPress Trac] #35512: Inconsistent behavior when passing `post_status=any` to WP_Comment_Query
WordPress Trac
noreply at wordpress.org
Mon Jan 18 13:47:24 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: Future Release
Component: Comments | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
-----------------------------+------------------------------------------
`WP_Query` has magical behavior for `post_status=any`, where it expands to
any post status. `WP_Comment_Query` treats `post_status=any` literally,
creating join SQL where `post_status='any'`.
I'd expect `WP_Comment_Query` to exhibit the same behavior as `WP_Query`
(with `post_type=any` too)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35512>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list