#33532 closed defect (bug) (fixed)
WP_Query->parse_tax_query() generates errors for categories and tags as querystring arrays
Reported by: | Veraxus | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Query | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Categories and Tags get special handling by parse_tax_query()
and so while #32454 fixed custom taxonomies, categories and tags will still generate errors when passed as querystring arrays as they are each parsed uniquely.
The included patch applies the #32454 fix to parsing of categories and tags when an array is used in the querystring, and includes 6 new unit tests (3 per taxonomy) for the various related query types.
Attachments (2)
Change History (9)
#2
@
9 years ago
- Milestone changed from Awaiting Review to 4.4
- Owner set to boonebgorges
- Status changed from new to reviewing
Looks good. Thanks for the patch.
#4
@
9 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
33532.1.diff removes an erroneous PHPUnit group #
prefix that snuck in via r33724
Note: See
TracTickets for help on using
tickets.
Fixes errors when parsing querystring with arrays for categories or tags, specifically