Docs: Clarify that `is_tax()` and `WP_Query::is_tax()` return false for built-in taxonomies (category and tag archives).
Props theMikeD. Fixes #36331. Built from https://develop.svn.wordpress.org/trunk@37235 git-svn-id: http://core.svn.wordpress.org/trunk@37201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
22252115e4
commit
2032e527b3
|
@ -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
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37234';
|
||||
$wp_version = '4.6-alpha-37235';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue