Customize: Show sidebar's description below its name in Customizer Widgets sidebar list.

This is part of an effort to reduce `title` attribute usage in WordPress Admin. This changeset updates the Customizer Widgets sidebar list to show sidebar name and description (as these informations may benefit to everyone), and remove the `title` attribute.

Follow-up to [22439], [27548], [31513], [32991], [50804], [53414], [59675].

Props karlgroves, sabernhardt, mukesh27, joedolson.
Fixes #62836.
See #24766.



Built from https://develop.svn.wordpress.org/trunk@59676


git-svn-id: http://core.svn.wordpress.org/trunk@59019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb
2025-01-21 22:38:23 +00:00
parent 37e2744105
commit c84a324ab2
2 changed files with 5 additions and 2 deletions

View File

@@ -733,7 +733,10 @@ final class WP_Customize_Widgets {
<p class="description">{description}</p>
<ul class="widget-area-select">
<% _.each( sidebars, function ( sidebar ){ %>
<li class="" data-id="<%- sidebar.id %>" title="<%- sidebar.description %>" tabindex="0"><%- sidebar.name %></li>
<li class="" data-id="<%- sidebar.id %>" tabindex="0">
<div><strong><%- sidebar.name %></strong></div>
<div><%- sidebar.description %></div>
</li>
<% }); %>
</ul>
<div class="move-widget-actions">

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59675';
$wp_version = '6.8-alpha-59676';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.