[wp-trac] [WordPress Trac] #20955: get_file_data() is more strict than get_page_templates() was in 3.3

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 14 14:56:33 UTC 2012


#20955: get_file_data() is more strict than get_page_templates() was in 3.3
------------------------------------------+--------------------
 Reporter:  nacin                         |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  3.4.1
Component:  Themes                        |     Version:
 Severity:  major                         |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |
------------------------------------------+--------------------

Comment (by nacin):

 Yes, we could make it more forgiving, but I'm not sure how much we could
 get away with, without then breaking other uses by being too liberal in
 what we accept. Especially since the regular expression for 'Template
 Name' was as forgiving as it gets. We'll have to come up with a set of
 tests and then pick a path.

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


More information about the wp-trac mailing list