Changeset 21027
- Timestamp:
- 06/07/2012 11:33:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-manager.php
r21019 r21027 51 51 add_action( 'customize_controls_init', array( $this, 'prepare_controls' ) ); 52 52 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/2009159 *60 * @since 3.4.061 *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 );71 53 } 72 54
Note: See TracChangeset
for help on using the changeset viewer.