Skip to content

Commit

Permalink
Customize: Show sidebar's description below its name in Customizer Wi…
Browse files Browse the repository at this point in the history
…dgets 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
  • Loading branch information
audrasjb committed Jan 21, 2025
1 parent 61b7b97 commit eb50dd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wp-includes/class-wp-customize-widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,10 @@ public function enqueue_scripts() {
<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">
Expand Down

0 comments on commit eb50dd7

Please sign in to comment.