Make WordPress Core


Ignore:
Timestamp:
08/24/2023 03:56:34 PM (11 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/nav-menus.php

    r55552 r56449  
    11501150                    </div><!-- /#post-body -->
    11511151                    <div id="nav-menu-footer">
    1152                         <div class="major-publishing-actions wp-clearfix">
     1152                        <div class="major-publishing-actions">
     1153                            <div class="publishing-action">
     1154                                <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'primary large menu-save', 'save_menu', false, array( 'id' => 'save_menu_footer' ) ); ?>
     1155                            </div><!-- END .publishing-action -->
    11531156                            <?php if ( $menu_count > 0 ) : ?>
    11541157
     
    11791182
    11801183                            <?php endif; ?>
    1181                             <div class="publishing-action">
    1182                                 <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'primary large menu-save', 'save_menu', false, array( 'id' => 'save_menu_footer' ) ); ?>
    1183                             </div><!-- END .publishing-action -->
    11841184                        </div><!-- END .major-publishing-actions -->
    11851185                    </div><!-- /#nav-menu-footer -->
Note: See TracChangeset for help on using the changeset viewer.