Make WordPress Core

Changeset 59676


Ignore:
Timestamp:
01/21/2025 10:36:50 PM (4 weeks ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

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

    r59238 r59676  
    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>
Note: See TracChangeset for help on using the changeset viewer.