From ee2b95d27362677322b2301f579f588db267b6c1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Apr 2016 17:46:46 +0000 Subject: [PATCH] Docs: Move the clarification of `is_tax()` and `WP_Query::is_tax()` return value added in [37235] to `@return` description. Props DrewAPicture. Fixes #36331. git-svn-id: https://develop.svn.wordpress.org/trunk@37281 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/query.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 2af6fc68e7..12c532628f 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -277,15 +277,13 @@ 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. * * @param string|array $taxonomy Optional. Taxonomy slug or slugs. * @param int|string|array $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs. - * @return bool + * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives). */ function is_tax( $taxonomy = '', $term = '' ) { global $wp_query; @@ -4342,15 +4340,13 @@ 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 * * @param mixed $taxonomy Optional. Taxonomy slug or slugs. * @param mixed $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs. - * @return bool + * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives). */ public function is_tax( $taxonomy = '', $term = '' ) { global $wp_taxonomies;