diff --git src/wp-includes/class-wp-customize-widgets.php src/wp-includes/class-wp-customize-widgets.php
index 0b7b7ce..90932eb 100644
|
|
final class WP_Customize_Widgets { |
99 | 99 | } |
100 | 100 | |
101 | 101 | add_filter( 'customize_dynamic_setting_args', array( $this, 'filter_customize_dynamic_setting_args' ), 10, 2 ); |
102 | | add_action( 'after_setup_theme', array( $this, 'register_settings' ) ); |
| 102 | add_action( 'widgets_init', array( $this, 'register_settings' ), 95 ); |
103 | 103 | add_action( 'wp_loaded', array( $this, 'override_sidebars_widgets_for_theme_switch' ) ); |
104 | 104 | add_action( 'customize_controls_init', array( $this, 'customize_controls_init' ) ); |
105 | 105 | add_action( 'customize_register', array( $this, 'schedule_customize_register' ), 1 ); |
diff --git tests/phpunit/tests/customize/widgets.php tests/phpunit/tests/customize/widgets.php
index 28392fd..f5eb464 100644
|
|
class Tests_WP_Customize_Widgets extends WP_UnitTestCase { |
70 | 70 | |
71 | 71 | function set_customized_post_data( $customized ) { |
72 | 72 | $_POST['customized'] = wp_slash( wp_json_encode( $customized ) ); |
| 73 | if ( $this->manager ) { |
| 74 | foreach ( $customized as $id => $value ) { |
| 75 | $this->manager->set_post_value( $id, $value ); |
| 76 | } |
| 77 | } |
73 | 78 | } |
74 | 79 | |
75 | 80 | function do_customize_boot_actions() { |