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

git-svn-id: http://svn.automattic.com/wordpress/trunk@17543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-03-23 18:47:45 +00:00
parent bd6fe3c99c
commit 28f5f2357c
1 changed files with 4 additions and 1 deletions

View File

@ -593,7 +593,10 @@ require_once( './admin-header.php' );
<div id="nav-menu-footer"> <div id="nav-menu-footer">
<div class="major-publishing-actions"> <div class="major-publishing-actions">
<div class="publishing-action"> <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> </div>
</div><!-- /#nav-menu-footer --> </div><!-- /#nav-menu-footer -->