Opened 8 years ago
Closed 8 years ago
#38241 closed defect (bug) (duplicate)
Correct the docblock description for is_single()
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Themes | Keywords: | |
Focuses: | docs, template | Cc: |
Description
The docblock description for is_single()
states:
Is the query for an existing single post?
Works for any post type, except attachments and pages
It appears that the "Works for" phrase is incorrect and has been for the last six years (since [16830]) because is_single()
returns true for attachment views. Either that, or the function's behaviour changed at some point before its tests were introduced.
Tests for is_single()
on an attachment view have been in place for at least three years (since [25002]).
Originally reported by @danburzo in Slack.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Duplicate of #38225.