WordPress.org

Make WordPress Core

Changeset 8708


Ignore:
Timestamp:
08/22/08 04:32:42 (7 years ago)
Author:
ryan
Message:

Menu back-compat fixes. see #7552

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r8600 r8708  
    617617            if ( isset( $admin_page_hooks[$parent] )) 
    618618                $page_type = $admin_page_hooks[$parent]; 
    619     } else if ( isset( $admin_page_hooks[$parent_page] ) ) { 
    620         $page_type = $admin_page_hooks[$parent_page]; 
     619    } else if ( isset( $admin_page_hooks[$parent] ) ) { 
     620        $page_type = $admin_page_hooks[$parent]; 
    621621    } 
    622622 
  • trunk/wp-admin/menu.php

    r8707 r8708  
    7676    $submenu['plugins.php'][15] = array(__('Install Plugins'), 'install_plugins', 'plugin-install.php'); 
    7777 
     78// Back-compat for old top-levels 
     79$_wp_real_parent_file['post.php'] = 'edit.php';  
     80$_wp_real_parent_file['post-new.php'] = 'edit.php'; 
     81$_wp_real_parent_file['edit-comments.php'] = 'edit.php'; 
     82 
    7883do_action('_admin_menu'); 
    7984 
Note: See TracChangeset for help on using the changeset viewer.