[wp-trac] [WordPress Trac] #20103: Rewrite get_themes() and other enemies of sanity

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 7 00:24:28 UTC 2012


#20103: Rewrite get_themes() and other enemies of sanity
--------------------------+------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Themes        |     Version:  1.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 In [20132]:
 {{{
 #!CommitTicketReference repository="" revision="20132"
 Fetch the raw 'Template' header in the WP_Theme constructor. By passing
 sanitization routines (which are unnecessary for this header), we prevent
 a persistent themes cache from sanitizing the headers of every theme
 until/unless they actually need a real header like Name. Note that if
 WP_Theme was instantiated through get_themes(), this will have no effect,
 as get_themes() does ask for Name for the keys to return. see #20103.
 }}}

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


More information about the wp-trac mailing list