#21075 closed defect (bug) (fixed)
Allow switch_theme() to take a single 'stylesheet' argument
| Reported by: | nacin | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Themes | Version: | 3.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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 )
Attachments (9)
Change History (12)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
http://unit-tests.trac.wordpress.org/changeset/744