[wp-trac] [WordPress Trac] #64416: Update `build_query_vars_from_query_block` to handle new `taxQuery` structure

WordPress Trac noreply at wordpress.org
Mon Feb 16 13:12:09 UTC 2026


#64416: Update `build_query_vars_from_query_block` to handle new `taxQuery`
structure
------------------------------+-------------------------
 Reporter:  ntsekouras        |       Owner:  ntsekouras
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  7.0
Component:  Editor            |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-------------------------
Changes (by ntsekouras):

 * owner:  (none) => ntsekouras
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61650" 61650]:
 {{{
 #!CommitTicketReference repository="" revision="61650"
 Editor: Update `build_query_vars_from_query_block` to handle new
 `taxQuery` structure.

 The Query Loop block's `taxQuery` attribute now supports an
 include/exclude structure for term filtering. This updates the server-side
 query building to handle both the old format (e.g. `{"category":[4]}`) and
 the new format (e.g.
 `{"include":{"category":[4]},"exclude":{"post_tag":[5]}}`).

 Props ntsekouras, westonruter, peterwilsoncc, mcsf.
 Fixes #64416.
 }}}

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


More information about the wp-trac mailing list