diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index f8bab30..ba310cc 100644
|
|
|
final class WP_Customize_Manager { |
| 985 | 985 | if ( $id instanceof WP_Customize_Setting ) { |
| 986 | 986 | $setting = $id; |
| 987 | 987 | } else { |
| 988 | | $setting = new WP_Customize_Setting( $this, $id, $args ); |
| | 988 | $class = 'WP_Customize_Setting'; |
| | 989 | |
| | 990 | /** This filter is documented in wp-includes/class-wp-customize-manager.php */ |
| | 991 | $args = apply_filters( 'customize_dynamic_setting_args', $args, $id ); |
| | 992 | |
| | 993 | /** This filter is documented in wp-includes/class-wp-customize-manager.php */ |
| | 994 | $class = apply_filters( 'customize_dynamic_setting_class', $class, $id, $args ); |
| | 995 | |
| | 996 | $setting = new $class( $this, $id, $args ); |
| 989 | 997 | } |
| 990 | 998 | $this->settings[ $setting->id ] = $setting; |
| 991 | 999 | } |