[wp-trac] [WordPress Trac] #20386: Year permalinks "win" against category permalinks
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 16 04:14:43 UTC 2012
#20386: Year permalinks "win" against category permalinks
--------------------------+-----------------------------
Reporter: markjaquith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Canonical | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------------
Comment (by wonderboymusic):
IMO, canonical URL should always win over query string, and both always
win over tax_query.
I addressed the problem with tax_query winning here:
http://core.trac.wordpress.org/ticket/20767
Right now, tax is beating tag and category, which to me makes no sense
because tax_query is a sub-request. Query string terms get tax=term
treatment in WP_Query but are really only altering context of the request,
not completely changing it.
Precedence really only affects theme functions since is_year, is_category
will both be true and the year and category are publicly available in the
request. Whoever "wins" gets precedence in which template is picked or
which title is displayed, etc.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20386#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list