[wp-trac] [WordPress Trac] #36208: Comment queries should ignore comments associated with non-active custom post types
WordPress Trac
noreply at wordpress.org
Mon Mar 14 22:48:36 UTC 2016
#36208: Comment queries should ignore comments associated with non-active custom
post types
----------------------------------------+-----------------------------
Reporter: Clorith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Comments | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Comment (by rachelbaker):
In [attachment:36208.diff] I am matching the behavior of the `any` value
for the `post_type` and `post_status` arguments to the WP_Query class,
which only includes valid types/statuses that are not excluded from
search.
Needs more unit tests and testing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36208#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list