Opened 3 years ago
#55748 new defect (bug)
wp_query post_type taxonomies doesn't accept array in url if hierarchical
Reported by: | dg12345 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 5.9.3 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
if you put the custom taxonomy in the url with an array value
i.e. ?custom_tax[]=term-1&custom_tax[]=term-2
it should filter by those terms
however if you look at the code for wp_query if the taxonomy is hierarchical it is put through wp_basename which cannot process arrays and so the input is completely lost
to resolve either we need to move the if(is_array()) above the wp_basename if or make wp_basename accept arrays
Note: See
TracTickets for help on using
tickets.