Add Filters to format strings for Private and Protected Posts in get_the_title
|Reported by:||anderswc||Owned by:||anonymous|
|Severity:||minor||Keywords:||has-patch tested commit|
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.