From a622032e5e55eb6c9d3fa17c191a13dfa91a885f Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sat, 12 Feb 2005 02:00:56 +0000 Subject: [PATCH] menu tweak - http://mosquito.wordpress.org/view.php?id=255 git-svn-id: http://svn.automattic.com/wordpress/trunk@2279 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index fec235ee76..71536a1ab1 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -9,7 +9,7 @@ foreach ($menu as $item) { $class = ''; // 0 = name, 1 = user_level, 2 = file - if ((substr($self, -10) == substr($item[2], -10) && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; + if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; if ($user_level >= $item[1]) { if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") )