Opened 5 years ago
Closed 2 months ago
#51246 closed defect (bug) (worksforme)
single_post_title() doesn't respect private and protected posts
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 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().
Change History (2)
Note: See
TracTickets for help on using
tickets.
Reproduction Report
Description
❌ This report can't validate that the issue can be reproduced.
Environment
Testing Instrutions
single_post_title()to asingle.phptemplate fileActual Results
Additional Notes
worksforme