diff --git a/wp-admin/b2menutop.php b/wp-admin/b2menutop.php index ba3ed22de..dc6e8e557 100644 --- a/wp-admin/b2menutop.php +++ b/wp-admin/b2menutop.php @@ -11,7 +11,8 @@ foreach ($menu as $item) { if ($continue) { $item = explode("\t", $item); // 0 = user level, 1 = file, 2 = name - if (substr($PHP_SELF, -7) == substr($item[1], -7)) $class = ' class="current"'; + $self = str_replace('/wp-admin/', '', $PHP_SELF); + if ((substr($self, -20) == substr($item[1], -20)) || ($parent_file && ($item[1] == $parent_file))) $class = ' class="current"'; if ($user_level >= $item[0]) echo "\n\t
Name | Description | diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index f65e3fc22..39c4234f3 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -1,5 +1,6 @@ list_limit = ''; } ?> + + +
---|