diff --git src/wp-includes/class-wp-customize-setting.php src/wp-includes/class-wp-customize-setting.php
index d007965..c54a3b3 100644
|
|
class WP_Customize_Setting { |
36 | 36 | public $type = 'theme_mod'; |
37 | 37 | |
38 | 38 | /** |
| 39 | * When the type is option, this is passed in to the $autoload argument for update_option(). |
| 40 | * |
| 41 | * @access public |
| 42 | * @var bool |
| 43 | */ |
| 44 | public $autoload = true; |
| 45 | |
| 46 | /** |
39 | 47 | * Capability required to edit this setting. |
40 | 48 | * |
41 | 49 | * @var string |
… |
… |
class WP_Customize_Setting { |
357 | 365 | protected function _update_option( $value ) { |
358 | 366 | // Handle non-array option. |
359 | 367 | if ( empty( $this->id_data[ 'keys' ] ) ) |
360 | | return update_option( $this->id_data[ 'base' ], $value ); |
| 368 | return update_option( $this->id_data[ 'base' ], $value, $this->autoload ); |
361 | 369 | |
362 | 370 | // Handle array-based options. |
363 | 371 | $options = get_option( $this->id_data[ 'base' ] ); |
364 | 372 | $options = $this->multidimensional_replace( $options, $this->id_data[ 'keys' ], $value ); |
365 | 373 | if ( isset( $options ) ) |
366 | | return update_option( $this->id_data[ 'base' ], $options ); |
| 374 | return update_option( $this->id_data[ 'base' ], $options, $this->autoload ); |
367 | 375 | } |
368 | 376 | |
369 | 377 | /** |