Changeset 8734
- Timestamp:
- 08/26/2008 12:54:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r8708 r8734 479 479 // 480 480 481 function get_admin_page_parent( ) {481 function get_admin_page_parent( $parent = '' ) { 482 482 global $parent_file; 483 483 global $menu; … … 488 488 global $_wp_menu_nopriv; 489 489 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 } 490 496 491 497 if ( !empty ( $parent_file ) ) { … … 608 614 global $admin_page_hooks; 609 615 610 $parent = get_admin_page_parent( );616 $parent = get_admin_page_parent( $parent_page ); 611 617 612 618 $page_type = 'admin';
Note: See TracChangeset
for help on using the changeset viewer.