mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -224,9 +224,9 @@ function is_tag( $slug = '' ) {
|
||||
* Whether the current query is for the given taxonomy and/or term.
|
||||
*
|
||||
* If no taxonomy argument is set, returns true if any taxonomy is queried.
|
||||
* If the taxonomy argument is passed but no term argument, returns true
|
||||
* If the taxonomy argument is passed but no term argument, returns true
|
||||
* if the taxonomy or taxonomies in the argument are being queried.
|
||||
* If both taxonomy and term arguments are passed, returns true
|
||||
* If both taxonomy and term arguments are passed, returns true
|
||||
* if the current query is for a term contained in the terms argument
|
||||
* which has a taxonomy contained in the taxonomy argument.
|
||||
*
|
||||
@@ -253,9 +253,9 @@ function is_tax( $taxonomy = '', $term = '' ) {
|
||||
if ( empty( $term ) ) // Only a Taxonomy provided
|
||||
return isset($queried_object->taxonomy) && count( $tax_array ) && in_array($queried_object->taxonomy, $tax_array);
|
||||
|
||||
return isset($queried_object->term_id) &&
|
||||
return isset($queried_object->term_id) &&
|
||||
count(array_intersect(
|
||||
array($queried_object->term_id, $queried_object->name, $queried_object->slug),
|
||||
array($queried_object->term_id, $queried_object->name, $queried_object->slug),
|
||||
$term_array
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user