[wp-trac] [WordPress Trac] #35478: 4.4 Regression on Querying for Comments by Multiple Post Fields
WordPress Trac
noreply at wordpress.org
Wed Jan 20 08:01:57 UTC 2016
#35478: 4.4 Regression on Querying for Comments by Multiple Post Fields
--------------------------+---------------------------
Reporter: chriscct7 | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: high | Milestone: 4.4.2
Component: Comments | Version: 4.4
Severity: major | Resolution: fixed
Keywords: fixed-major | Focuses:
--------------------------+---------------------------
Changes (by dd32):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"36361"]:
{{{
#!CommitTicketReference repository="" revision="36361"
Comments: Respect all post-related filters in `WP_Comment_Query`.
The refactor of `WP_Comment_Query`'s SQL generation in [34542] introduced
a bug
that caused only the last post-related filter to be respected in comment
queries. In other words, if querying for comments using params
`post_status=draft&post_author=3`, only the last-processed of these params
would be respected. The current changeset fixes the logic so that these
clauses
don't overwrite each other.
Merges [36326] to the 4.4 branch.
Props chriscct7.
Fixes #35478.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35478#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list