Make WordPress Core

Changeset 37235


Ignore:
Timestamp:
04/18/2016 01:43:54 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify that is_tax() and WP_Query::is_tax() return false for built-in taxonomies (category and tag archives).

Props theMikeD.
Fixes #36331.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r37225 r37235  
    269269
    270270/**
    271  * Is the query for an existing taxonomy archive page?
     271 * Is the query for an existing custom taxonomy archive page?
    272272 *
    273273 * If the $taxonomy parameter is specified, this function will additionally
     
    277277 * this function will additionally check if the query is for one of the terms
    278278 * specified.
     279 *
     280 * Returns false for built-in taxonomies (category and tag archives).
    279281 *
    280282 * @since 2.5.0
     
    43324334
    43334335    /**
    4334      * Is the query for an existing taxonomy archive page?
     4336     * Is the query for an existing custom taxonomy archive page?
    43354337     *
    43364338     * If the $taxonomy parameter is specified, this function will additionally
     
    43404342     * this function will additionally check if the query is for one of the terms
    43414343     * specified.
     4344     *
     4345     * Returns false for built-in taxonomies (category and tag archives).
    43424346     *
    43434347     * @since 3.1.0
Note: See TracChangeset for help on using the changeset viewer.