Skip to content

Commit eb50dd7

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59676 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 61b7b97 commit eb50dd7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wp-includes/class-wp-customize-widgets.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,10 @@ public function enqueue_scripts() {
733733
<p class="description">{description}</p>
734734
<ul class="widget-area-select">
735735
<% _.each( sidebars, function ( sidebar ){ %>
736-
<li class="" data-id="<%- sidebar.id %>" title="<%- sidebar.description %>" tabindex="0"><%- sidebar.name %></li>
736+
<li class="" data-id="<%- sidebar.id %>" tabindex="0">
737+
<div><strong><%- sidebar.name %></strong></div>
738+
<div><%- sidebar.description %></div>
739+
</li>
737740
<% }); %>
738741
</ul>
739742
<div class="move-widget-actions">

0 commit comments

Comments
 (0)