Changeset 8735
- Timestamp:
- 08/26/2008 04:27:00 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r8734 r8735 489 489 global $_wp_submenu_nopriv; 490 490 491 if ( !empty ( $parent ) ) {491 if ( !empty ( $parent ) && 'admin.php' != $parent ) { 492 492 if ( isset( $_wp_real_parent_file[$parent] ) ) 493 493 $parent = $_wp_real_parent_file[$parent]; -
trunk/wp-admin/menu-header.php
r8724 r8735 88 88 89 89 if ( file_exists(WP_PLUGIN_DIR . "/{$sub_item[2]}") || ! empty($menu_hook) ) { 90 if ( 'admin.php' == $pagenow )90 if ( 'admin.php' == $pagenow || !file_exists(WP_PLUGIN_DIR . "/$parent_file") ) 91 91 echo "\n\t\t<li$class><a href='admin.php?page={$sub_item[2]}'$class>{$sub_item[0]}</a></li>"; 92 92 else
Note: See TracChangeset
for help on using the changeset viewer.