mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Don't allow clicking the[+] tab when it is active. Props koopersmith. fixes #13333
git-svn-id: http://svn.automattic.com/wordpress/trunk@14714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f0076eed1c
commit
f3992a551d
@ -446,12 +446,9 @@ require_once( 'admin-header.php' );
|
||||
<div class="nav-tabs">
|
||||
<?php
|
||||
foreach( (array) $nav_menus as $_nav_menu ) :
|
||||
if ( $nav_menu_selected_id == $_nav_menu->term_id ) : ?>
|
||||
<span class="nav-tab nav-tab-active">
|
||||
if ( $nav_menu_selected_id == $_nav_menu->term_id ) : ?><span class="nav-tab nav-tab-active">
|
||||
<?php echo esc_html( $_nav_menu->truncated_name ); ?>
|
||||
</span>
|
||||
<?php else : ?>
|
||||
<a href="<?php
|
||||
</span><?php else : ?><a href="<?php
|
||||
echo esc_url(add_query_arg(
|
||||
array(
|
||||
'action' => 'edit',
|
||||
@ -461,10 +458,11 @@ require_once( 'admin-header.php' );
|
||||
));
|
||||
?>" class="nav-tab hide-if-no-js">
|
||||
<?php echo esc_html( $_nav_menu->truncated_name ); ?>
|
||||
</a>
|
||||
<?php endif;
|
||||
</a><?php endif;
|
||||
endforeach;
|
||||
?><a href="<?php
|
||||
if ( 0 == $nav_menu_selected_id ) : ?><span class="nav-tab menu-add-new nav-tab-active">
|
||||
<?php printf( '<abbr title="%s">+</abbr>', esc_html__( 'Add menu' ) ); ?>
|
||||
</span><?php else : ?><a href="<?php
|
||||
echo esc_url(add_query_arg(
|
||||
array(
|
||||
'action' => 'edit',
|
||||
@ -472,10 +470,9 @@ require_once( 'admin-header.php' );
|
||||
),
|
||||
admin_url( 'nav-menus.php' )
|
||||
));
|
||||
?>" class="nav-tab menu-add-new<?php
|
||||
if ( 0 == $nav_menu_selected_id )
|
||||
echo ' nav-tab-active';
|
||||
?>"><?php printf( '<abbr title="%s">+</abbr>', esc_html__( 'Add menu' ) ); ?></a>
|
||||
?>" class="nav-tab menu-add-new">
|
||||
<?php printf( '<abbr title="%s">+</abbr>', esc_html__( 'Add menu' ) ); ?>
|
||||
</a><?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu-edit">
|
||||
|
Loading…
Reference in New Issue
Block a user