WordPress.org

Make WordPress Core

Changeset 21027


Ignore:
Timestamp:
06/07/2012 11:33:00 PM (10 years ago)
Author:
nacin
Message:

Remove the set_theme_mods() method from customize manager. We ended up not using it. see #20871.

File:
1 edited

Legend:

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

    r21019 r21027  
    5151        add_action( 'customize_controls_init',            array( $this, 'prepare_controls' ) );
    5252        add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ) );
    53     }
    54 
    55     /**
    56      * Update theme modifications for the current theme.
    57      * Note: Candidate core function.
    58      * http://core.trac.wordpress.org/ticket/20091
    59      *
    60      * @since 3.4.0
    61      *
    62      * @param array $mods Theme modifications.
    63      */
    64     public function set_theme_mods( $mods ) {
    65         $current = get_theme_mods();
    66 
    67         $mods = wp_parse_args( $mods, $current );
    68 
    69         $theme = get_stylesheet();
    70         update_option( "theme_mods_$theme", $mods );
    7153    }
    7254
Note: See TracChangeset for help on using the changeset viewer.