[wp-trac] [WordPress Trac] #57300: parse_tax_query() does not handle array query param when taxonomy has rewrite set to hierarchical

WordPress Trac noreply at wordpress.org
Fri Apr 28 11:13:08 UTC 2023


#57300: parse_tax_query() does not handle array query param when taxonomy has
rewrite set to hierarchical
---------------------------+------------------------------
 Reporter:  chamois_blanc  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Taxonomy       |     Version:  6.1.1
 Severity:  major          |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by pskli):

 I'm having this issue as well.

 When trying to filter archive pages on multiple taxonomy terms using array
 query args in the URL (such as
 `?product_cat[]=t-shirts&product_cat[]=accessories`), a fatal error is
 triggered (only if the requested filter taxonomy is hierarchical).

 This is an issue on the default WooCommerce shop page if trying to
 implement a custom filtering logic, for instance.

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


More information about the wp-trac mailing list