From 109f63fb6b9441ea6ffd7580041c597a8ef60df4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 Feb 2017 10:29:27 +0000 Subject: [PATCH] Docs: Update the description of `is_singular()` and `WP_Query::is_singular()` to be parsed correctly by developer.wordpress.org. Props grapplerulrich. Fixes #39948. git-svn-id: https://develop.svn.wordpress.org/trunk@40103 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-query.php | 3 ++- src/wp-includes/query.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php index 6936345905..baefec75b4 100644 --- a/src/wp-includes/class-wp-query.php +++ b/src/wp-includes/class-wp-query.php @@ -3872,7 +3872,8 @@ class WP_Query { } /** - * Is the query for an existing single post of any post type (post, attachment, page, ... )? + * Is the query for an existing single post of any post type (post, attachment, page, + * custom post types)? * * If the $post_types parameter is specified, this function will additionally * check if the query is for one of the Posts Types specified. diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 744610f425..439362bc5c 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -597,7 +597,8 @@ function is_single( $post = '' ) { } /** - * Is the query for an existing single post of any post type (post, attachment, page, ... )? + * Is the query for an existing single post of any post type (post, attachment, page, + * custom post types)? * * If the $post_types parameter is specified, this function will additionally * check if the query is for one of the Posts Types specified.