[wp-trac] [WordPress Trac] #11214: Improve get_themes() so that the size of the in-memory data is smaller

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 26 11:43:37 UTC 2012


#11214: Improve get_themes() so that the size of the in-memory data is smaller
-------------------------+-----------------------------
 Reporter:  westi        |       Owner:  westi
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Themes       |     Version:  2.9
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------

Comment (by duck_):

 Replying to [comment:5 westi]:
 > This came up again so I took a quick look.

 Really good idea for some memory usage reduction.

 From my reading of the patch I think there are two things still to do:

  * Page templates - get_page_templates() needs to have the same fix that
 was applied to the theme editor, i.e. prepend the path to the template
 file name.
  * Child themes need testing. It looks like there could be an issue for
 template files added in the loop through $stylesheet_dir as their path
 would be `$themes[$theme]['Stylesheet Dir']` and not
 `$themes[$theme]['Template Dir']`.

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


More information about the wp-trac mailing list