Opened 4 years ago
#55748 new defect (bug)
wp_query post_type taxonomies doesn't accept array in url if hierarchical
| Reported by: | dg12345 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | 5.9.3 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)