RCS file: /cvsroot/cafelog/wordpress/wp-admin/menu-header.php,v
retrieving revision 1.6
diff -u -r1.6 menu-header.php
|
|
|
|
| 40 | 40 | else $class = ''; |
| 41 | 41 | |
| 42 | 42 | if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}")) { |
| 43 | | $page_hook = get_plugin_page_hook($item[2], $parent_file); |
| 44 | | if ( $page_hook ) |
| | 43 | $menu_hook = get_plugin_page_hook($item[2], $parent_file); |
| | 44 | if ( $menu_hook ) |
| 45 | 45 | echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>"; |
| 46 | 46 | else |
| 47 | 47 | echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; |