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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 8 17:13:57 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):

 [20151] and [20152] together mean big performance improvements in
 multisite.

 Because errors were displayed on themes.php to super admins, when they
 visited themes.php for a site, every installed theme needed to be
 instantiated as a WP_Theme (to check for errors). [20151] moved this to
 the network admin, where every theme needs to be instantiated anyway.
 [20152] means that only allowed themes get instantiated on themes.php for
 a site. End result is very nice.

 > The theme editor still use get_themes()

 Yeah, I haven't had the chance to go through it and update it to use the
 new API. You will find some Edit links to it broken (as they were updated
 to use the slug), but the editor itself works. If someone wishes to take a
 crack at it, I would be interested to hear your feedback about the API.

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


More information about the wp-trac mailing list