[wp-trac] [WordPress Trac] #21791: Enhancement: locate_template() support for multiple file types (not just .php)

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 14:37:15 UTC 2012


#21791: Enhancement: locate_template() support for multiple file types (not just
.php)
-------------------------+------------------------------
 Reporter:  benallfree   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by benallfree):

 After further testing, this solution is incomplete because it interferes
 with the template file structure and capability discovery process.

 For example, renaming 'index.php' in a template folder makes it appear
 broken to WordPress. Also, support for page templates is missing if they
 don't have the correct file extension or commenting at the top.

 If different template file formats were to be supported, we would need to
 hook into the template structure/capability discovery process.

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


More information about the wp-trac mailing list