Make WordPress Core


Ignore:
Timestamp:
06/24/2021 07:19:57 PM (3 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r51149 r51228  
    481481                            $setting_id,
    482482                            array(
    483                                 'section'    => $section_id,
    484                                 'sidebar_id' => $sidebar_id,
     483                                'section'     => $section_id,
     484                                'sidebar_id'  => $sidebar_id,
     485                                'label'       => $section_args['title'],
     486                                'description' => $section_args['description'],
    485487                            )
    486488                        );
Note: See TracChangeset for help on using the changeset viewer.