diff --git src/wp-includes/class-wp-customize-setting.php src/wp-includes/class-wp-customize-setting.php
index 01b84c8..800dfab 100644
|
|
class WP_Customize_Setting { |
144 | 144 | // Other setting types can opt-in to aggregate multidimensional explicitly. |
145 | 145 | $this->aggregate_multidimensional(); |
146 | 146 | } |
| 147 | |
| 148 | // Allow option settings to indicate whether they should be autoloaded. |
| 149 | if ( 'option' === $this->type ) { |
| 150 | $autoload = true; |
| 151 | if ( isset( $args['autoload'] ) ) { |
| 152 | $autoload = $args['autoload']; |
| 153 | } |
| 154 | // @todo issue warning if already set and not equal to $autoload? |
| 155 | self::$aggregated_multidimensionals[ $this->type ][ $this->id_data['base'] ]['autoload'] = $autoload; |
| 156 | } |
147 | 157 | } |
148 | 158 | |
149 | 159 | /** |
… |
… |
class WP_Customize_Setting { |
502 | 512 | protected function set_root_value( $value ) { |
503 | 513 | $id_base = $this->id_data['base']; |
504 | 514 | if ( 'option' === $this->type ) { |
505 | | return update_option( $id_base, $value ); |
| 515 | return update_option( $id_base, $value, self::$aggregated_multidimensionals[ $this->type ][ $this->id_data['base'] ]['autoload'] ); |
506 | 516 | } else if ( 'theme_mod' ) { |
507 | 517 | set_theme_mod( $id_base, $value ); |
508 | 518 | return true; |