[wp-trac] [WordPress Trac] #15978: taxonomy/term query var not set for singular views
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 25 22:50:15 UTC 2010
#15978: taxonomy/term query var not set for singular views
--------------------------+----------------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Query | Version: 3.1
Severity: normal | Keywords: regression has-patch
--------------------------+----------------------------------
The backcompat taxonomy and term query vars are not set on singular views,
they're only being set on taxonomy archives.
This has the result that certain plugins which add taxonomies to the URL
are affected.
Best to test without Pretty Permalinks enabled:
{{{
3.0: http://localhost/wordpress-30-commit/?p=18&colour=red
array
'p' => int 18
'colour' => string 'red' (length=3)
'taxonomy' => string 'colour' (length=6)
'term' => string 'red' (length=3)
}}}
{{{
3.1: http://localhost/wordpress-commit/?p=483&colour=red
before patch:
array
'p' => int 483
'colour' => string 'red' (length=3)
taxonomy/term unset.
after patch:
array
'p' => int 483
'colour' => string 'red' (length=3)
...
'taxonomy' => string 'colour' (length=6)
'term' => string 'red' (length=3)
}}}
(Those are both looking at $wp_query->query_vars directly in header.php)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15978>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list