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

git-svn-id: https://develop.svn.wordpress.org/trunk@17543 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-03-23 18:47:45 +00:00
parent 20b7808094
commit 3697db55bc

View File

@ -593,7 +593,10 @@ require_once( './admin-header.php' );
<div id="nav-menu-footer">
<div class="major-publishing-actions">
<div class="publishing-action">
<?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false ); ?>
<?php
if ( ! empty( $nav_menu_selected_id ) )
submit_button( __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false );
?>
</div>
</div>
</div><!-- /#nav-menu-footer -->