Make WordPress Core


Ignore:
Timestamp:
08/24/2023 03:56:34 PM (13 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-ms-themes-list-table.php

    r56409 r56449  
    513513        $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
    514514        ?>
    515         <label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" >
     515        <input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
     516        <label for="<?php echo $checkbox_id; ?>" >
    516517            <span class="screen-reader-text">
    517518            <?php
     
    524525            </span>
    525526        </label>
    526         <input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
    527527        <?php
    528528    }
Note: See TracChangeset for help on using the changeset viewer.