Opened 4 years ago
Last modified 4 years ago
#51246 new defect (bug)
single_post_title() doesn't respect private and protected posts
Reported by: | henry.wright | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
single_post_title()
doesn't respect private and protected content. It will either display or return the content regardless.
In contrast, get_the_title()
does respect private and protected content.
Note single_post_title()
is used when building the document title in wp_get_document_title()
.
Note: See
TracTickets for help on using
tickets.