git-svn-id: http://svn.automattic.com/wordpress/trunk@2362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-02-17 16:05:45 +00:00
parent e39c8e0706
commit ecf61fc382
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ else if (isset($submenu_file) && $submenu_file == substr($item[2], -10)) $class
else $class = ''; else $class = '';
if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}")) { if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}")) {
$page_hook = get_plugin_page_hook($item[2], $parent_file); $menu_hook = get_plugin_page_hook($item[2], $parent_file);
if ( $page_hook ) if ( $menu_hook )
echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>"; echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>";
else else
echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";