Changeset 10293
- Timestamp:
- 01/04/2009 04:29:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r10267 r10293 624 624 // this case, don't automatically add a link back to avoid duplication. 625 625 if (!isset( $submenu[$parent] ) && $file != $parent ) { 626 foreach ( $menu as $parent_menu ) {626 foreach ( (array)$menu as $parent_menu ) { 627 627 if ( $parent_menu[2] == $parent && current_user_can( $parent_menu[1] ) ) 628 628 $submenu[$parent][] = $parent_menu; … … 722 722 723 723 if ( $pagenow == 'admin.php' && isset( $plugin_page ) ) { 724 foreach ( $menu as $parent_menu ) {724 foreach ( (array)$menu as $parent_menu ) { 725 725 if ( $parent_menu[2] == $plugin_page ) { 726 726 $parent_file = $plugin_page; … … 745 745 } 746 746 747 foreach (array_keys( $submenu ) as $parent) {747 foreach (array_keys( (array)$submenu ) as $parent) { 748 748 foreach ( $submenu[$parent] as $submenu_array ) { 749 749 if ( isset( $_wp_real_parent_file[$parent] ) ) … … 781 781 782 782 if ( empty ( $parent) ) { 783 foreach ( $menu as $menu_array ) {783 foreach ( (array)$menu as $menu_array ) { 784 784 if ( isset( $menu_array[3] ) ) { 785 785 if ( $menu_array[2] == $pagenow ) {
Note: See TracChangeset
for help on using the changeset viewer.