Make WordPress Core


Ignore:
Timestamp:
11/05/2020 09:42:49 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for WP_Query::is_archive() per the documentation standards.

Follow-up to [49504].

See #50545.

File:
1 edited

Legend:

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

    r49505 r49506  
    139139 * Determines whether the query is for an existing archive page.
    140140 *
    141  * Archive pages include {@link https://developer.wordpress.org/reference/functions/is_category/ category}, {@link https://developer.wordpress.org/reference/functions/is_tag/ tag}, {@link https://developer.wordpress.org/reference/functions/is_author/ author}, {@link https://developer.wordpress.org/reference/functions/is_date/ date}, {@link https://developer.wordpress.org/reference/functions/is_post_type_archive/ custom post type}, and {@link https://developer.wordpress.org/reference/functions/is_tax/ custom taxonomy} based archives.
    142  *
    143  * For more information on this and similar theme functions, check out
    144  * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
    145  * Conditional Tags} article in the Theme Developer Handbook.
    146  *
    147  * @since 1.5.0
    148  *
     141 * Archive pages include category, tag, author, date, custom post type,
     142 * and custom taxonomy based archives.
     143 *
     144 * For more information on this and similar theme functions, check out
     145 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     146 * Conditional Tags} article in the Theme Developer Handbook.
     147 *
     148 * @since 1.5.0
     149 *
     150 * @see is_category()
     151 * @see is_tag()
     152 * @see is_author()
     153 * @see is_date()
     154 * @see is_post_type_archive()
     155 * @see is_tax()
    149156 * @global WP_Query $wp_query WordPress Query object.
    150157 *
Note: See TracChangeset for help on using the changeset viewer.