[wp-trac] [WordPress Trac] #36208: Comment queries should ignore comments associated with non-active custom post types
WordPress Trac
noreply at wordpress.org
Mon Oct 24 16:20:40 UTC 2022
#36208: Comment queries should ignore comments associated with non-active custom
post types
-------------------------------------------------+-------------------------
Reporter: Clorith | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Comments | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-unit-tests bulk-reopened has- | Focuses:
patch | administration
-------------------------------------------------+-------------------------
Comment (by helgatheviking):
What can we do to finally get this fixed? @techjewel's
[PR](https://github.com/WordPress/wordpress-develop/pull/3045) looks
promising to me, though it could also be argued that the issue traces back
to `get_comments()` which should perhaps only return comments attached to
active post types. However, easy to see how that would have much broader
implications than the suggested PR.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36208#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list