[wp-trac] [WordPress Trac] #21891: Need ability to filter page templates

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 8 07:42:59 UTC 2012


#21891: Need ability to filter page templates
-------------------------------------+------------------------------
 Reporter:  mrwweb                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Template                 |     Version:  3.4.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by westi):

 I like the idea of a simple way to suppress page templates in child themes
 using a filter.

 I think it would be cleaner to implement this as a filter of an array of
 template names to remove which defaults to an empty array and therefore
 make it explicitly a removal filter rather than a function result filter.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21891#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list