Skip to content

Commit

Permalink
Highlight the active Plugin page in manage menu
Browse files Browse the repository at this point in the history
Fixes #23061
  • Loading branch information
dregad committed Jul 6, 2017
1 parent f1f9de6 commit 8f5e129
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/html_api.php
Expand Up @@ -642,7 +642,10 @@ function print_manage_menu( $p_page = '' ) {

# Plugins menu items - these are cooked links
foreach( $t_menu_options as $t_menu_item ) {
echo '<li>', $t_menu_item, '</li>';
$t_active = $p_page && strpos( $t_menu_item, $p_page ) !== false
? ' class="active"'
: '';
echo "<li{$t_active}>", $t_menu_item, '</li>';
}

echo '</ul>' . "\n";
Expand Down

0 comments on commit 8f5e129

Please sign in to comment.