From a3eb12ddbbc983b8743de65a8dd4ceb95273ccc2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 18 Apr 2016 01:43:54 +0000 Subject: [PATCH] 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 --- src/wp-includes/query.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index e304bdefaf..2af6fc68e7 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -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