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

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 20:05:02 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 [20020]:
 {{{
 #!CommitTicketReference repository="" revision="20020"
 Rewrite search_theme_directories() -- better performance and allow for
 caching.

  * Update it to use PHP5 scandir().
  * Don't scan individual theme dirs -- we only need to check for
 style.css. (Solid performance gains.)
  * Improve and simplify branching.
  * Introduce wp_cache_themes_persistently filter to enable persistent
 caching of the return value, based on the theme_roots transient.

 see #20103.
 }}}

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


More information about the wp-trac mailing list