Don't link active menu tabs. props koopersmith, fixes #13333.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0f377dabc0
commit
c5801cf36d
|
@ -447,8 +447,12 @@ require_once( 'admin-header.php' );
|
|||
<div class="nav-tabs">
|
||||
<?php
|
||||
foreach( (array) $nav_menus as $_nav_menu ) :
|
||||
|
||||
?><a href="<?php
|
||||
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
|
||||
echo esc_url(add_query_arg(
|
||||
array(
|
||||
'action' => 'edit',
|
||||
|
@ -456,12 +460,10 @@ require_once( 'admin-header.php' );
|
|||
),
|
||||
admin_url( 'nav-menus.php' )
|
||||
));
|
||||
?>" class="nav-tab<?php
|
||||
if ( $nav_menu_selected_id == $_nav_menu->term_id )
|
||||
echo ' nav-tab-active';
|
||||
else
|
||||
echo ' hide-if-no-js';
|
||||
?>"><?php echo esc_html( $_nav_menu->truncated_name ); ?></a><?php
|
||||
?>" class="nav-tab hide-if-no-js">
|
||||
<?php echo esc_html( $_nav_menu->truncated_name ); ?>
|
||||
</a>
|
||||
<?php endif;
|
||||
endforeach;
|
||||
?><a href="<?php
|
||||
echo esc_url(add_query_arg(
|
||||
|
|
Loading…
Reference in New Issue