mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Revert part of r13486, is_tax() is false for tags||categories. See #11904
git-svn-id: https://develop.svn.wordpress.org/trunk@13495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) )
|
||||
|
||||
Reference in New Issue
Block a user