[wp-trac] [WordPress Trac] #63255: WP_Query normalization can break plugin filters comparing query variables.

WordPress Trac noreply at wordpress.org
Thu Jun 19 15:49:34 UTC 2025


#63255: WP_Query normalization can break plugin filters comparing query variables.
--------------------------------------------+------------------------
 Reporter:  peterwilsoncc                   |       Owner:  joemcgill
     Type:  defect (bug)                    |      Status:  closed
 Priority:  normal                          |   Milestone:
Component:  Query                           |     Version:
 Severity:  normal                          |  Resolution:  wontfix
 Keywords:  has-patch has-unit-tests close  |     Focuses:
--------------------------------------------+------------------------
Changes (by joemcgill):

 * status:  reviewing => closed
 * resolution:   => wontfix
 * milestone:  6.8.2 =>


Comment:

 Thanks @audrasjb. I think it's safe to close this issue. We've not seen
 widespread breakage from this change, beyond the original bbPress report
 (which I assume they've solved on their end). I don't think we need to
 ensure that the order of the post types in the array passed to the
 `posts_where` are always maintained in the same order. Assuming that they
 are in a callback makes code brittle, and maintaining that behavior in
 core would make `WP_Query` less maintainable.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63255#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list