Make WordPress Core


Ignore:
Timestamp:
06/26/2012 05:21:04 AM (12 years ago)
Author:
nacin
Message:

Allow switch_theme() to take a single $stylesheet argument.

It now effectively has two function definitions:
function switch_theme( $stylesheet )
function switch_theme( $template, $stylesheet )

fixes #21075.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-manager.php

    r21070 r21131  
    476476            // to operate properly.
    477477            $this->stop_previewing_theme();
    478             switch_theme( $this->get_template(), $this->get_stylesheet() );
     478            switch_theme( $this->get_stylesheet() );
    479479            $this->start_previewing_theme();
    480480        }
Note: See TracChangeset for help on using the changeset viewer.