diff --git src/wp-includes/class-wp-customize-widgets.php src/wp-includes/class-wp-customize-widgets.php
index 2182ca1..249505b 100644
|
|
|
class WP_Customize_Widgets { |
| 258 | 258 | * @action customize_register |
| 259 | 259 | */ |
| 260 | 260 | static function customize_register( $wp_customize = null ) { |
| 261 | | global $wp_registered_widgets, $wp_registered_widget_controls; |
| | 261 | global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_sidebars; |
| 262 | 262 | if ( ! ( $wp_customize instanceof WP_Customize_Manager ) ) { |
| 263 | 263 | $wp_customize = $GLOBALS['wp_customize']; |
| 264 | 264 | } |
| … |
… |
class WP_Customize_Widgets { |
| 311 | 311 | $section_args = array( |
| 312 | 312 | 'title' => sprintf( __( 'Widgets: %s' ), $GLOBALS['wp_registered_sidebars'][$sidebar_id]['name'] ), |
| 313 | 313 | 'description' => $GLOBALS['wp_registered_sidebars'][$sidebar_id]['description'], |
| | 314 | 'priority' => 1000 + array_search( $sidebar_id, array_keys( $wp_registered_sidebars ) ), |
| 314 | 315 | ); |
| 315 | 316 | $section_args = apply_filters( 'customizer_widgets_section_args', $section_args, $section_id, $sidebar_id ); |
| 316 | 317 | $wp_customize->add_section( $section_id, $section_args ); |