Make WordPress Core


Ignore:
Timestamp:
08/24/2023 03:56:34 PM (10 months ago)
Author:
joedolson
Message:

Menus: Fix proximity of controls to Save and Delete menus.

Move the position of the Save and Delete buttons in menu editing so they are immediate neighbors, improving the proximity of related controls.

Props 90lines, sabernhardt, costdev.
See #56594.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r55971 r56449  
    366366        if ( current_user_can( 'delete_term', $tag->term_id ) ) {
    367367            return sprintf(
    368                 '<label class="label-covers-full-cell" for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>' .
    369                 '<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />',
     368                '<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />' .
     369                '<label for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>',
    370370                $tag->term_id,
    371371                /* translators: Hidden accessibility text. %s: Taxonomy term name. */
Note: See TracChangeset for help on using the changeset viewer.