WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months 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().

Change History (1)

#1 @SergeyBiryukov
3 months ago

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