Fix admin menu highlight
This commit is contained in:
@@ -69,7 +69,7 @@ class SP_Admin_Menus {
|
||||
public function menu_highlight() {
|
||||
global $typenow, $submenu;
|
||||
if ( sp_is_config_type( $typenow ) )
|
||||
$this->highlight_admin_menu( 'sportspress', null );
|
||||
$this->highlight_admin_menu();
|
||||
elseif ( $typenow == 'sp_calendar' )
|
||||
$this->highlight_admin_menu( 'edit.php?post_type=sp_event', 'edit.php?post_type=sp_calendar' );
|
||||
elseif ( $typenow == 'sp_table' )
|
||||
@@ -216,7 +216,7 @@ class SP_Admin_Menus {
|
||||
return $arr[0] != __( 'Venues', 'sportspress' );
|
||||
}
|
||||
|
||||
public static function highlight_admin_menu( $p = 'sportspress', $s = null ) {
|
||||
public static function highlight_admin_menu( $p = 'sportspress', $s = 'sportspress' ) {
|
||||
global $parent_file, $submenu_file;
|
||||
$parent_file = $p;
|
||||
$submenu_file = $s;
|
||||
|
||||
Reference in New Issue
Block a user