[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
Wed May 3 05:47:34 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):
Sorry, my latest comment is not correct: this issue is triggered if the
taxonomy `rewrite->hierarchical` is set to `true`.
**Steps to recreate on a fresh install**
- Register a new post type and taxonomy. Post type needs an archive and
taxonomy needs `rewrite.hierarchical` set to true. Gist for that step
available here: https://gist.github.com/pierre-
dekode/c934284b88ebf0a31f4e433f265c4a64
- Flush permalinks
- Visit the post type archive with `?taxonomy[]=something` query arg in
URL. Example with Gist provided above:
`http://<yoursite.local>/my_custom_post_type/?my_taxonomy[]=something`
This will trigger the fatal error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57300#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list