mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Revert part of r13486, is_tax() is false for tags||categories. See #11904
git-svn-id: http://svn.automattic.com/wordpress/trunk@13495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
70e4a7d880
commit
89406adcee
@ -244,7 +244,7 @@ function is_tax( $taxonomy = '', $term = '' ) {
|
||||
$tax_array = array_intersect(array_keys($wp_taxonomies), (array) $taxonomy);
|
||||
$term_array = (array) $term;
|
||||
|
||||
if ( ! ( $wp_query->is_tax || $wp_query->is_category || $wp_query->is_tag ) )
|
||||
if ( !$wp_query->is_tax )
|
||||
return false;
|
||||
|
||||
if ( empty( $taxonomy ) )
|
||||
|
Loading…
Reference in New Issue
Block a user