[wp-trac] [WordPress Trac] #21075: Allow switch_theme() to take a single 'stylesheet' argument
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 26 04:36:55 UTC 2012
#21075: Allow switch_theme() to take a single 'stylesheet' argument
--------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Themes | Version: 3.4
Severity: normal | Keywords:
--------------------------+-----------------
After the work in #20103, we can very safely begin to pass around
'stylesheet' everywhere as a unique identity for a theme.
In [21010/trunk/wp-admin/includes/theme.php], we updated delete_theme() to
take $stylesheet rather than $template. This was for clarity only; it
works the same. But we should allow switch_theme() to take a single
argument as well.
switch_theme() would then end up with two function definitions:
{{{
function switch_theme( $stylesheet )
function switch_theme( $template, $stylesheet )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21075>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list