Make WordPress Core


Ignore:
Timestamp:
03/23/2011 06:47:45 PM (13 years ago)
Author:
nacin
Message:

Don't show two 'Create Menu' buttons on nav-menus.php. fixes #16715.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r17039 r17543  
    594594                        <div class="major-publishing-actions">
    595595                        <div class="publishing-action">
    596                             <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false ); ?>
     596                            <?php
     597                            if ( ! empty( $nav_menu_selected_id ) )
     598                                submit_button( __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false );
     599                            ?>
    597600                        </div>
    598601                        </div>
Note: See TracChangeset for help on using the changeset viewer.