From 28781ebb081ab8d99b30a33f5cd911b3b050bcc9 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 26 Sep 2006 15:45:20 +0000 Subject: WP Merge to rev 4254 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@770 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/menu-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-admin/menu-header.php') diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index 64aa41f..99c02a5 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -12,7 +12,7 @@ foreach ($menu as $item) { if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; if ( !empty($submenu[$item[2]]) || current_user_can($item[1]) ) { - if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") ) + if ( file_exists(ABSPATH . PLUGINDIR . "/{$item[2]}") ) echo "\n\t
  • {$item[0]}
  • "; else echo "\n\t
  • {$item[0]}
  • "; @@ -40,7 +40,7 @@ else $class = ''; $menu_hook = get_plugin_page_hook($item[2], $parent_file); -if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") || ! empty($menu_hook)) { +if (file_exists(ABSPATH . PLUGINDIR . "/{$item[2]}") || ! empty($menu_hook)) { if ( 'admin.php' == $pagenow ) echo "\n\t
  • {$item[0]}
  • "; else -- cgit