Changeset 31091
- Timestamp:
- 01/08/2015 07:12:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r31090 r31091 1543 1543 $parent_file = $parent; 1544 1544 return $parent; 1545 } else 1546 if ( isset( $plugin_page ) && ($plugin_page == $submenu_array[2] ) ) { 1547 $parent_file = $parent; 1548 return $parent; 1549 } 1545 } elseif ( isset( $plugin_page ) && ($plugin_page == $submenu_array[2] ) ) { 1546 $parent_file = $parent; 1547 return $parent; 1548 } 1550 1549 } 1551 1550 } … … 1577 1576 $title = $menu_array[3]; 1578 1577 return $menu_array[3]; 1579 } else 1580 if ( isset( $plugin_page ) && ($plugin_page == $menu_array[2] ) && ($hook == $menu_array[3] ) ) { 1581 $title = $menu_array[3]; 1582 return $menu_array[3]; 1583 } 1578 } elseif ( isset( $plugin_page ) && ($plugin_page == $menu_array[2] ) && ($hook == $menu_array[3] ) ) { 1579 $title = $menu_array[3]; 1580 return $menu_array[3]; 1581 } 1584 1582 } else { 1585 1583 $title = $menu_array[0]; … … 1648 1646 $page_type = 'admin'; 1649 1647 if ( empty ( $parent_page ) || 'admin.php' == $parent_page || isset( $admin_page_hooks[$plugin_page] ) ) { 1650 if ( isset( $admin_page_hooks[$plugin_page] ) ) 1648 if ( isset( $admin_page_hooks[$plugin_page] ) ) { 1651 1649 $page_type = 'toplevel'; 1652 else1653 if ( isset( $admin_page_hooks[$parent] ))1654 $page_type = $admin_page_hooks[$parent];1650 } elseif ( isset( $admin_page_hooks[$parent] )) { 1651 $page_type = $admin_page_hooks[$parent]; 1652 } 1655 1653 } elseif ( isset( $admin_page_hooks[$parent] ) ) { 1656 1654 $page_type = $admin_page_hooks[$parent];
Note: See TracChangeset
for help on using the changeset viewer.