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
This commit is contained in:
parent
297076eda4
commit
2e3a6f36d2
|
@ -3816,7 +3816,7 @@ class WP_Query {
|
||||||
/**
|
/**
|
||||||
* Is the query for an existing single post?
|
* 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
|
* If the $post parameter is specified, this function will additionally
|
||||||
* check if the query is for one of the Posts specified.
|
* check if the query is for one of the Posts specified.
|
||||||
|
|
Loading…
Reference in New Issue