Compare full name of plugin files rather than only the last 10 chars. http://mosquito.wordpress.org/view.php?id=1124 Props: MC_incubus

git-svn-id: http://svn.automattic.com/wordpress/trunk@2458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-03-21 04:18:16 +00:00
parent f94536e388
commit 7d2cd84b73
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ foreach ($submenu["$parent_file"] as $item) :
}
if ( isset($submenu_file) ) {
if ( substr($submenu_file, -10) == substr($item[2], -10) ) $class = ' class="current"';
if ( $submenu_file == $item[2] ) $class = ' class="current"';
else $class = '';
} else if ( (isset($plugin_page) && $plugin_page == $item[2]) || (!isset($plugin_page) && substr($self, -10) == substr($item[2], -10)) ) $class = ' class="current"';
} else if ( (isset($plugin_page) && $plugin_page == $item[2]) || (!isset($plugin_page) && $self == $item[2]) ) $class = ' class="current"';
else $class = '';
$menu_hook = get_plugin_page_hook($item[2], $parent_file);