[wp-trac] [WordPress Trac] #13265: Filter results of get_page_templates()

WordPress Trac wp-trac at lists.automattic.com
Wed May 5 19:56:17 UTC 2010


#13265: Filter results of get_page_templates()
-------------------------+--------------------------------------------------
 Reporter:  nathanrice   |       Owner:  nathanrice            
     Type:  enhancement  |      Status:  new                   
 Priority:  normal       |   Milestone:  3.0                   
Component:  Themes       |     Version:  3.0                   
 Severity:  normal       |    Keywords:  page templates, filter
-------------------------+--------------------------------------------------
 It doesn't make sense to not have a filter on the returned value of this
 function. I can think of several instances where this would be useful.

 I also inserted a "pre_" filter at the beginning of the function so
 plugins/themes can short-circuit the function as well.

 I'm hoping this is small enough to get in for 3.0.

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


More information about the wp-trac mailing list