Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Oct 9, 2019
1 parent c5b8505 commit 20e2e5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/html_api.php
Expand Up @@ -640,10 +640,8 @@ function print_submenu( array $p_menu_items, $p_current_page = '', $p_event = nu
}

# Plugins menu items - these are html hyperlinks (<a> tags)
# The plugin is responsible for setting the 'active' class as appropriate
foreach( plugin_menu_items( $p_event ) as $t_item ) {
$t_active = $p_current_page && strpos( $t_item, $p_current_page ) !== false
? 'active'
: '';
echo $t_item;
}

Expand Down

0 comments on commit 20e2e5f

Please sign in to comment.