diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 0924088cfa..4badca5447 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -3607,10 +3607,18 @@ class WP_Query { /** * Is the query for an existing archive page? * - * Month, Year, Category, Author, Post Type archive... + * Archive pages include category, tag, author, date, custom post type, + * and custom taxonomy based archives. * * @since 3.1.0 * + * @see WP_Query::is_category() + * @see WP_Query::is_tag() + * @see WP_Query::is_author() + * @see WP_Query::is_date() + * @see WP_Query::is_post_type_archive() + * @see WP_Query::is_tax() + * * @return bool Whether the query is for an existing archive page. */ public function is_archive() { diff --git a/wp-includes/query.php b/wp-includes/query.php index d9de9e7c89..a67c2e1516 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -138,7 +138,8 @@ function wp_reset_postdata() { /** * Determines whether the query is for an existing archive page. * - * 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. + * Archive pages include category, tag, author, date, custom post type, + * and custom taxonomy based archives. * * For more information on this and similar theme functions, check out * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ @@ -146,6 +147,12 @@ function wp_reset_postdata() { * * @since 1.5.0 * + * @see is_category() + * @see is_tag() + * @see is_author() + * @see is_date() + * @see is_post_type_archive() + * @see is_tax() * @global WP_Query $wp_query WordPress Query object. * * @return bool Whether the query is for an existing archive page. diff --git a/wp-includes/version.php b/wp-includes/version.php index a4b0f45272..0e4925b8aa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta3-49505'; +$wp_version = '5.6-beta3-49506'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.