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

WordPress Trac noreply at wordpress.org
Mon Dec 15 07:01:51 UTC 2025


#64416: Update `build_query_vars_from_query_block` to handle new `taxQuery`
structure
-------------------------+-----------------------
 Reporter:  ntsekouras   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  7.0
Component:  Editor       |    Version:
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------
 In GB we've updated the structure of Query Loop's taxQuery to also handle
 exclusion of terms in this PR
 (https://github.com/WordPress/gutenberg/pull/73790).

 The new structure is:


 {{{
 {
         query: {
                 taxQuery: {
                          include: {
                                 category: [1, 2, 3],
                                 post_tag: [10, 20]
                         }
                         exclude: {
                                 category: [5, 6],
                                 post_tag: [15]
                         }
                 }
         }
 }

 }}}



 We need to update `build_query_vars_from_query_block` to handle this new
 `taxQuery` structure.

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


More information about the wp-trac mailing list