Add arguments to highlight admin menu function

This commit is contained in:
Brian Miyaji
2014-02-20 15:47:19 +11:00
parent c22bfdf735
commit 8579d4b9d4

View File

@@ -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;
}
}