Docs: Clarify that is_tax()
and WP_Query::is_tax()
return false for built-in taxonomies (category and tag archives).
Props theMikeD. Fixes #36331. git-svn-id: https://develop.svn.wordpress.org/trunk@37235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e4efe5fac9
commit
a3eb12ddbb
@ -268,7 +268,7 @@ function is_tag( $tag = '' ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the query for an existing taxonomy archive page?
|
||||
* Is the query for an existing custom taxonomy archive page?
|
||||
*
|
||||
* If the $taxonomy parameter is specified, this function will additionally
|
||||
* check if the query is for that specific $taxonomy.
|
||||
@ -277,6 +277,8 @@ function is_tag( $tag = '' ) {
|
||||
* this function will additionally check if the query is for one of the terms
|
||||
* specified.
|
||||
*
|
||||
* Returns false for built-in taxonomies (category and tag archives).
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global WP_Query $wp_query Global WP_Query instance.
|
||||
@ -4331,7 +4333,7 @@ class WP_Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the query for an existing taxonomy archive page?
|
||||
* Is the query for an existing custom taxonomy archive page?
|
||||
*
|
||||
* If the $taxonomy parameter is specified, this function will additionally
|
||||
* check if the query is for that specific $taxonomy.
|
||||
@ -4340,6 +4342,8 @@ class WP_Query {
|
||||
* this function will additionally check if the query is for one of the terms
|
||||
* specified.
|
||||
*
|
||||
* Returns false for built-in taxonomies (category and tag archives).
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global array $wp_taxonomies
|
||||
|
Loading…
Reference in New Issue
Block a user