Make WordPress Core

Changeset 37281


Ignore:
Timestamp:
04/21/2016 05:46:46 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Docs: Move the clarification of is_tax() and WP_Query::is_tax() return value added in [37235] to @return description.

Props DrewAPicture.
Fixes #36331.

File:
1 edited

Legend:

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

    r37235 r37281  
    278278 * specified.
    279279 *
    280  * Returns false for built-in taxonomies (category and tag archives).
    281  *
    282280 * @since 2.5.0
    283281 *
     
    286284 * @param string|array     $taxonomy Optional. Taxonomy slug or slugs.
    287285 * @param int|string|array $term     Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
    288  * @return bool
     286 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives).
    289287 */
    290288function is_tax( $taxonomy = '', $term = '' ) {
     
    43434341     * specified.
    43444342     *
    4345      * Returns false for built-in taxonomies (category and tag archives).
    4346      *
    43474343     * @since 3.1.0
    43484344     *
     
    43514347     * @param mixed $taxonomy Optional. Taxonomy slug or slugs.
    43524348     * @param mixed $term     Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
    4353      * @return bool
     4349     * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives).
    43544350     */
    43554351    public function is_tax( $taxonomy = '', $term = '' ) {
Note: See TracChangeset for help on using the changeset viewer.