[wp-trac] [WordPress Trac] #20103: Rewrite get_themes() and other enemies of sanity
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 8 07:46:43 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 [20152]:
{{{
#!CommitTicketReference repository="" revision="20152"
In wp_get_themes() under multisite, filter out allowed themes before
creating WP_Theme objects, rather than after. search_theme_directories()
provides us the stylesheet of each theme which is all we need to do the
proper intersection. This results in major performance gains on sites that
have large numbers of themes unavailable to them. see #20103.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20103#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list