WordPress/wp-includes
Scott Taylor ca85591c3c Category and tag are typically checked before checking for a custom taxonomy. If the global query matches category or tag (even if it also has tax_query set), return category/tag as the queried object, instead of arbitrarily returning the first term in the tax_query stack (typically those added with 'pre_get_posts').
Real world example: http://www.emusic.com/17dots/topics/daily-download/ - "tag" page, regionalized for US-only content using `pre_get_posts` passing in the terms "US" and "ALL" for "region" (custom tax). All of the theme functions would output "ALL" as the term name. Even though it was a tag archive, the queried object was an arbitrary term from `tax_query`.

See [26006]. All unit tests pass.
Fixes #20767.



Built from https://develop.svn.wordpress.org/trunk@26007


git-svn-id: http://core.svn.wordpress.org/trunk@25938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 23:54:10 +00:00
..
2013-07-13 00:37:36 +00:00
2013-10-30 14:39:10 +00:00
2013-10-30 14:39:10 +00:00
2013-10-30 14:39:10 +00:00
2013-10-30 14:39:10 +00:00
2013-10-30 14:39:10 +00:00
2013-10-30 14:39:10 +00:00
2013-10-24 22:59:20 +00:00
2013-10-30 14:39:10 +00:00
2013-09-24 19:05:10 +00:00
2013-10-30 14:39:10 +00:00
2013-07-24 06:08:14 +00:00
2013-09-06 17:19:09 +00:00
2013-10-30 14:39:10 +00:00
2013-10-30 14:39:10 +00:00