Fix admin menu highlight when on config type

This commit is contained in:
Brian Miyaji
2014-08-14 20:28:59 +10:00
parent 6f49c5e0fe
commit c835bf63f2

View File

@@ -95,7 +95,7 @@ class SP_Admin_Menus {
public function menu_highlight() {
global $typenow, $submenu;
if ( is_sp_config_type( $typenow ) )
$this->highlight_admin_menu();
$this->highlight_admin_menu( 'sportspress', 'sp-config' );
elseif ( $typenow == 'sp_calendar' )
$this->highlight_admin_menu( 'edit.php?post_type=sp_event', 'edit.php?post_type=sp_calendar' );
elseif ( $typenow == 'sp_table' )