Changeset 4202 for trunk/wp-admin/menu-header.php
- Timestamp:
- 09/21/2006 08:46:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu-header.php
r4144 r4202 13 13 14 14 if ( !empty($submenu[$item[2]]) || current_user_can($item[1]) ) { 15 if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") )15 if ( file_exists(ABSPATH . PLUGINDIR . "/{$item[2]}") ) 16 16 echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 17 17 else … … 41 41 $menu_hook = get_plugin_page_hook($item[2], $parent_file); 42 42 43 if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") || ! empty($menu_hook)) {43 if (file_exists(ABSPATH . PLUGINDIR . "/{$item[2]}") || ! empty($menu_hook)) { 44 44 if ( 'admin.php' == $pagenow ) 45 45 echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";
Note: See TracChangeset
for help on using the changeset viewer.