[wp-trac] [WordPress Trac] #8918: Add Filters to format strings for Private and Protected Posts in get_the_title

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 22 08:26:50 GMT 2009


#8918: Add Filters to format strings for Private and Protected Posts in
get_the_title
-------------------------+--------------------------------------------------
 Reporter:  anderswc     |       Owner:  anonymous                   
     Type:  enhancement  |      Status:  new                         
 Priority:  low          |   Milestone:  2.8                         
Component:  Template     |     Version:                              
 Severity:  minor        |    Keywords:  template the_title has-patch
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8918>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list