[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
Mon Jan 22 22:58:38 UTC 2024
#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 petitphp):
= Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://github.com/WordPress/wordpress-
develop/pull/4396.diff
Steps used to reproduce the issue :
- Using a testing environment with PHP >= 8.0
- Create a mu-plugin with this gist https://gist.github.com/pierre-
dekode/c934284b88ebf0a31f4e433f265c4a64
- Create two terms `tax-1` and `tax-2` for the taxonomy `my_taxonomy`
- Go to http://localhost/?my_taxonomy[]=tax-1&my_taxonomy[]=tax-2
- ❌ The site fail to render with a fatal error : `Fatal error: Uncaught
Error: urlencode(): Argument #1 ($string) must be of type string, array
given`
=== Environment
- OS: macOS 13.6.1
- Web Server: Nginx
- PHP: 8.0.30
- WordPress: 6.5-alpha-56966-src
- Browser: Firefox 122b9
- Theme: Twenty Twenty-Four
- Active Plugins:
- Query Monitor 3.15.0
=== Actual Results
- ✅ Issue resolved with the patch
=== Supplemental Artifacts
**Before patch 4396**: [[Image(https://i.postimg.cc/nrpkVJrC/before-
patch-4396.png)]]
**After patch 4396**: [[Image(https://i.postimg.cc/2SVxSTkF/after-
patch-4396.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57300#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list