[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
Thu May 11 03:55:10 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:  has-patch      |     Focuses:
---------------------------+------------------------------

Comment (by pskli):

 Actually, it seems that it is not necessary to access the custom post type
 rewrite rule to trigger the fatal error.

 By visiting `http://core.wp/?my_taxonomy[]=test` — I get it too.

 The `my_taxonomy[]` array query param is the culprit here, subsequently
 triggering the `WP_Query->parse_tax_query` method.

 @oglekler can you share the custom taxonomy code you've created maybe?

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


More information about the wp-trac mailing list