From c196dd87791daa1d176b836395994902325216f6 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 25 Jan 2015 16:40:58 +1100 Subject: [PATCH] Highlight staff in admin when editing jobs --- includes/admin/class-sp-admin-menus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/class-sp-admin-menus.php b/includes/admin/class-sp-admin-menus.php index bdd76553..05c4771d 100755 --- a/includes/admin/class-sp-admin-menus.php +++ b/includes/admin/class-sp-admin-menus.php @@ -85,8 +85,8 @@ class SP_Admin_Menus { public function menu_highlight() { global $typenow; $screen = get_current_screen(); - if ( $screen->id == 'edit-sp_role' ) - $this->highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit-tags.php?taxonomy=sp_role&post_type=sp_player' ); + if ( $screen->id == 'sp_role' ) + $this->highlight_admin_menu( 'edit.php?post_type=sp_staff', 'edit-tags.php?taxonomy=sp_role&post_type=sp_staff' ); elseif ( is_sp_config_type( $typenow ) ) $this->highlight_admin_menu( 'sportspress', 'sportspress-config' ); elseif ( $typenow == 'sp_calendar' )