Remove the set_theme_mods() method from customize manager. We ended up not using it. see #20871.
git-svn-id: https://develop.svn.wordpress.org/trunk@21027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
867872a3c3
commit
be6b3ffe21
@ -52,24 +52,6 @@ final class WP_Customize_Manager {
|
||||
add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Update theme modifications for the current theme.
|
||||
* Note: Candidate core function.
|
||||
* http://core.trac.wordpress.org/ticket/20091
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param array $mods Theme modifications.
|
||||
*/
|
||||
public function set_theme_mods( $mods ) {
|
||||
$current = get_theme_mods();
|
||||
|
||||
$mods = wp_parse_args( $mods, $current );
|
||||
|
||||
$theme = get_stylesheet();
|
||||
update_option( "theme_mods_$theme", $mods );
|
||||
}
|
||||
|
||||
/**
|
||||
* Start preview and customize theme.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user