Changeset 33734 for trunk/src/wp-includes/nav-menu.php
- Timestamp:
- 08/25/2015 08:27:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu.php
r33611 r33734 645 645 usort($items, '_sort_nav_menu_items'); 646 646 $i = 1; 647 foreach ( $items as $k => $item ) {647 foreach ( $items as $k => $item ) { 648 648 $items[$k]->{$args['output_key']} = $i++; 649 649 } … … 849 849 ) 850 850 ); 851 foreach ( (array) $menu_items as $menu_item ) {851 foreach ( (array) $menu_items as $menu_item ) { 852 852 if ( isset( $menu_item->ID ) && is_nav_menu_item( $menu_item->ID ) ) { 853 853 $menu_item_type = get_post_meta( $menu_item->ID, '_menu_item_type', true ); … … 884 884 $menu_item_ids = wp_get_associated_nav_menu_items( $object_id, 'post_type' ); 885 885 886 foreach ( (array) $menu_item_ids as $menu_item_id ) {886 foreach ( (array) $menu_item_ids as $menu_item_id ) { 887 887 wp_delete_post( $menu_item_id, true ); 888 888 } … … 903 903 $menu_item_ids = wp_get_associated_nav_menu_items( $object_id, 'taxonomy', $taxonomy ); 904 904 905 foreach ( (array) $menu_item_ids as $menu_item_id ) {905 foreach ( (array) $menu_item_ids as $menu_item_id ) { 906 906 wp_delete_post( $menu_item_id, true ); 907 907 }
Note: See TracChangeset
for help on using the changeset viewer.