Changeset 9285
- Timestamp:
- 10/22/2008 08:33:59 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/menu-header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu-header.php
r9196 r9285 103 103 104 104 if ( file_exists(WP_PLUGIN_DIR . "/{$sub_item[2]}") || ! empty($menu_hook) ) { 105 if ( 'admin.php' == $pagenow || !file_exists(WP_PLUGIN_DIR . "/$parent_file") ) 105 // If admin.php is the current page or if the parent exists as a file in the plugins or admin dir 106 if ( 'admin.php' == $pagenow || ( (!file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || is_dir(WP_PLUGIN_DIR . "/{$item[2]}") ) && !file_exists($item[2])) ) 106 107 echo "<li$class><a href='admin.php?page={$sub_item[2]}'$class>{$sub_item[0]}</a></li>"; 107 108 else
Note: See TracChangeset
for help on using the changeset viewer.