From 2e3a6f36d23497404b5444833ad1304eff5b6704 Mon Sep 17 00:00:00 2001 From: DrewAPicture Date: Mon, 31 Oct 2016 06:33:02 +0000 Subject: [PATCH] Docs: Update the DocBlock description for `WP_Query::is_single()` to mention that it works for any post types excluding pages. Props ryankienstra. Fixes #38225. git-svn-id: https://develop.svn.wordpress.org/trunk@39052 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php index a6cd1cf401..7f3c22a785 100644 --- a/src/wp-includes/class-wp-query.php +++ b/src/wp-includes/class-wp-query.php @@ -3816,7 +3816,7 @@ class WP_Query { /** * Is the query for an existing single post? * - * Works for any post type, except attachments and pages + * Works for any post type excluding pages. * * If the $post parameter is specified, this function will additionally * check if the query is for one of the Posts specified.