WordPress.org

Make WordPress Core

Changeset 8734


Ignore:
Timestamp:
08/26/08 00:54:21 (6 years ago)
Author:
ryan
Message:

Menu fixes. see #7552

File:
1 edited

Legend:

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

    r8708 r8734  
    479479// 
    480480 
    481 function get_admin_page_parent() { 
     481function get_admin_page_parent( $parent = '' ) { 
    482482    global $parent_file; 
    483483    global $menu; 
     
    488488    global $_wp_menu_nopriv; 
    489489    global $_wp_submenu_nopriv; 
     490 
     491    if ( !empty ( $parent ) ) { 
     492        if ( isset( $_wp_real_parent_file[$parent] ) ) 
     493            $parent = $_wp_real_parent_file[$parent]; 
     494        return $parent; 
     495    } 
    490496 
    491497    if ( !empty ( $parent_file ) ) { 
     
    608614    global $admin_page_hooks; 
    609615 
    610     $parent = get_admin_page_parent(); 
     616    $parent = get_admin_page_parent( $parent_page ); 
    611617 
    612618    $page_type = 'admin'; 
Note: See TracChangeset for help on using the changeset viewer.