Make WordPress Core

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: henrywright's profile 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().

Change History (1)

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Posts, Post Types
Note: See TracTickets for help on using tickets.