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">
|
<div class="nav-tabs">
|
||||||
<?php
|
<?php
|
||||||
foreach( (array) $nav_menus as $_nav_menu ) :
|
foreach( (array) $nav_menus as $_nav_menu ) :
|
||||||
if ( $nav_menu_selected_id == $_nav_menu->term_id ) : ?>
|
if ( $nav_menu_selected_id == $_nav_menu->term_id ) : ?><span class="nav-tab nav-tab-active">
|
||||||
<span class="nav-tab nav-tab-active">
|
|
||||||
<?php echo esc_html( $_nav_menu->truncated_name ); ?>
|
<?php echo esc_html( $_nav_menu->truncated_name ); ?>
|
||||||
</span>
|
</span><?php else : ?><a href="<?php
|
||||||
<?php else : ?>
|
|
||||||
<a href="<?php
|
|
||||||
echo esc_url(add_query_arg(
|
echo esc_url(add_query_arg(
|
||||||
array(
|
array(
|
||||||
'action' => 'edit',
|
'action' => 'edit',
|
||||||
@ -461,10 +458,11 @@ require_once( 'admin-header.php' );
|
|||||||
));
|
));
|
||||||
?>" class="nav-tab hide-if-no-js">
|
?>" class="nav-tab hide-if-no-js">
|
||||||
<?php echo esc_html( $_nav_menu->truncated_name ); ?>
|
<?php echo esc_html( $_nav_menu->truncated_name ); ?>
|
||||||
</a>
|
</a><?php endif;
|
||||||
<?php endif;
|
|
||||||
endforeach;
|
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(
|
echo esc_url(add_query_arg(
|
||||||
array(
|
array(
|
||||||
'action' => 'edit',
|
'action' => 'edit',
|
||||||
@ -472,10 +470,9 @@ require_once( 'admin-header.php' );
|
|||||||
),
|
),
|
||||||
admin_url( 'nav-menus.php' )
|
admin_url( 'nav-menus.php' )
|
||||||
));
|
));
|
||||||
?>" class="nav-tab menu-add-new<?php
|
?>" class="nav-tab menu-add-new">
|
||||||
if ( 0 == $nav_menu_selected_id )
|
<?php printf( '<abbr title="%s">+</abbr>', esc_html__( 'Add menu' ) ); ?>
|
||||||
echo ' nav-tab-active';
|
</a><?php endif; ?>
|
||||||
?>"><?php printf( '<abbr title="%s">+</abbr>', esc_html__( 'Add menu' ) ); ?></a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-edit">
|
<div class="menu-edit">
|
||||||
|
Loading…
Reference in New Issue
Block a user