[wp-trac] [WordPress Trac] #23724: Pass $post into 'protected_title_format' and 'private_title_format' filters

WordPress Trac noreply at wordpress.org
Fri Mar 8 22:53:57 UTC 2013


#23724: Pass $post into 'protected_title_format' and 'private_title_format' filters
-----------------------------+-------------------------
 Reporter:  johnjamesjacoby  |       Type:  enhancement
   Status:  new              |   Priority:  low
Milestone:  Awaiting Review  |  Component:  Template
  Version:  trunk            |   Severity:  minor
 Keywords:  has-patch        |
-----------------------------+-------------------------
 Currently it's only possible to change these prefixes globally.

 Being able to change these prefixes based on specific $post data would be
 helpful for narrowing down the scope, say to specific custom post types.

 I noticed also that we don't pass $post into the 'the_title' filter, which
 could cut down on an additional get_post() call later if we pass it here.
 Obviously not essential, but wouldn't hurt.

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


More information about the wp-trac mailing list