Make WordPress Core

Changeset 8735


Ignore:
Timestamp:
08/26/2008 04:27:00 AM (18 years ago)
Author:
ryan
Message:

Menu fixes. see #7552

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r8734 r8735  
    489489        global $_wp_submenu_nopriv;
    490490
    491         if ( !empty ( $parent ) ) {
     491        if ( !empty ( $parent ) && 'admin.php' != $parent ) {
    492492                if ( isset( $_wp_real_parent_file[$parent] ) )
    493493                        $parent = $_wp_real_parent_file[$parent];
  • trunk/wp-admin/menu-header.php

    r8724 r8735  
    8888
    8989                                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") )
    9191                                                echo "\n\t\t<li$class><a href='admin.php?page={$sub_item[2]}'$class>{$sub_item[0]}</a></li>";
    9292                                        else
Note: See TracChangeset for help on using the changeset viewer.