Opened 13 years ago
Closed 12 years ago
#26634 closed defect (bug) (fixed)
get_queried_object does not test anymore for existence of terms in tax_query
| Reported by: | Chouby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.8.1 |
| Component: | Query | Version: | 3.8 |
| Severity: | normal | Keywords: | has-patch fixed-major |
| Cc: | Focuses: |
Attachments (1)
Change History (12)
#5
@
13 years ago
@wonderboymusic I remove a custom taxonomy from the query in a parse_query filter
add_filter('parse_query', 'remove_my_tax');
function remove_my_tax($query) {
$qvars = &$query->query_vars;
unset ($qvars['my-tax']); // 'my-tax' is a custom taxonomy query var
}
#7
@
13 years ago
- Keywords fixed-major added
Re-opening to be code-reviewed and considered for inclusion in 3.8.1.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I believe you, but what query caused this? I would like to add another unit test for it