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:
Sergey Biryukov 2016-04-18 01:43:54 +00:00
parent e4efe5fac9
commit a3eb12ddbb
1 changed files with 6 additions and 2 deletions

View File

@ -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