[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:46:35 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):
Thanks for your help @oglekler
My rewrite rules (fresh install, no other plugin except a custom one to
load my custom CPT and taxonomy, see Gist above) are:
https://gist.github.com/pierre-dekode/4ed610312680f7d6e67f56cf3b366081
On PHP 7.4, I get a PHP Warning displayed on the 404 page:
[[Image(https://p156.p1.n0.cdn.getcloudapp.com/items/DOulOdyk/a284f76f-
04e9-4402-979b-ea2a9d3ed69a.jpg?v=20692802cdb05784aca6fbcfef01b762)]]
On PHP 8.1, I get a PHP Fatal error:
[[Image(https://p156.p1.n0.cdn.getcloudapp.com/items/o0uYnGlW/982102eb-
42ec-44d1-bf28-fb0cca2c1803.jpg?v=ec663da301a9a599da8a6f30d7546124)]]
----
If I install and activate Query Monitor, I can see that the matching
rewrite rule for this URL is `'my_custom_post_type/?$' =>
'index.php?post_type=my_custom_post_type'`
The tested URL being
`http://core.wp/my_custom_post_type/?my_taxonomy[]=test`
Let me know how I can help!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57300#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list