Opened 16 years ago
Closed 16 years ago
#8918 closed enhancement (fixed)
Add Filters to format strings for Private and Protected Posts in get_the_title
Reported by: | anderswc | Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | low |
Severity: | minor | Version: | |
Component: | Template | Keywords: | has-patch tested commit |
Focuses: | Cc: |
Description
When a page or post is protected or private, WordPress prefixes its title with either "Protected: " or "Private: " when get_the_title() is called.
This patch changes get_the_title to call filters for the format strings that add prefixes to protected and private posts. Plugins and themes can filter the format strings to remove or change the prefix.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
won't be needed if #6284 gets checked in