Widgets: Add missing label and description to Customizer controls.

This fixes a bug where the “Move To” dialogue was empty when a theme has multiple widget areas.

Props kevin940726, noisysocks, hellofromTonya.
Fixes #53487.
Built from https://develop.svn.wordpress.org/trunk@51228


git-svn-id: http://core.svn.wordpress.org/trunk@50837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2021-06-24 19:20:58 +00:00
parent 936a38255b
commit 90790365ba
2 changed files with 5 additions and 3 deletions

View File

@ -482,6 +482,8 @@ final class WP_Customize_Widgets {
array(
'section' => $section_id,
'sidebar_id' => $sidebar_id,
'label' => $section_args['title'],
'description' => $section_args['description'],
)
);
} else {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-beta3-51227';
$wp_version = '5.8-beta3-51228';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.