[wp-trac] [WordPress Trac] #50521: comments_pre_query doesn't align with other pre_query filters
WordPress Trac
noreply at wordpress.org
Sun Sep 13 18:47:56 UTC 2020
#50521: comments_pre_query doesn't align with other pre_query filters
-------------------------------------+------------------------------
Reporter: dinhtungdu | Owner: imath
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Comment (by imath):
Hi @dinhtungdu
I've just had a look to your PR. Could you include a check for the `count`
query var as suggested by @adamsilverstein?
=> `if ( is_array( $comment_data ) && ! $this->query_vars['count'] )`
I'll test the PR asap.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50521#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list