From e7b06f013334da3caf34d839a48052da676d8300 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sat, 12 Feb 2005 02:00:56 +0000 Subject: [PATCH] menu tweak - http://mosquito.wordpress.org/view.php?id=255 git-svn-id: https://develop.svn.wordpress.org/trunk@2279 602fd350-edb4-49c9-b593-d223f7449a82 --- 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]}") )