From 8579d4b9d4b052d2858986513b6064814fa3a261 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 20 Feb 2014 15:47:19 +1100 Subject: [PATCH] Add arguments to highlight admin menu function --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index dccc87d1..ab7832ae 100644 --- a/functions.php +++ b/functions.php @@ -2431,9 +2431,9 @@ if ( !function_exists( 'sportspress_delete_duplicate_post' ) ) { } if ( !function_exists( 'sportspress_highlight_admin_menu' ) ) { - function sportspress_highlight_admin_menu() { + function sportspress_highlight_admin_menu( $p = 'options-general.php', $s = 'sportspress' ) { global $parent_file, $submenu_file; - $parent_file = 'options-general.php'; - $submenu_file = 'sportspress'; + $parent_file = $p; + $submenu_file = $s; } }