#27362 closed defect (bug) (fixed)
Fix tag logic in WP_Query::get_queried_object()
Reported by: | mattonomics | Owned by: | |
---|---|---|---|
Milestone: | 3.8.2 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Query | Keywords: | has-patch fixed-major |
Focuses: | Cc: |
Description
Currently, the get_queried_object method in WP_Query has logic that correctly accounts for categories and other taxonomies, but not tags.
The attached patch simply includes the very simple logic so that tags may also be properly set up.
Attachments (1)
Change History (9)
#1
@
11 years ago
- Component changed from General to Query
- Keywords has-patch needs-unit-tests needs-refresh added
- Milestone changed from Awaiting Review to 3.9
#4
@
11 years ago
- Keywords needs-refresh removed
- Resolution set to fixed
- Status changed from new to closed
Tags are already slurped up into tax_query
, it just never populates query_vars
since WP_Query
has a member called tax_query
. I looked into the redirect_canonical
thing: isn't an issue, at all. Not sure where that outburst came from.
#5
@
11 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening, as it's milestoned for 3.8.2.
Note: See
TracTickets for help on using
tickets.
Thanks for the patch - we also need to roll tag vars into tax_query, I will get on that.