Changeset 33734 for trunk/src/wp-admin/nav-menus.php
- Timestamp:
- 08/25/2015 08:27:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/nav-menus.php
r33611 r33734 68 68 $dbids_to_orders = array(); 69 69 $orders_to_dbids = array(); 70 foreach ( (array) $ordered_menu_items as $ordered_menu_item_object ) {70 foreach ( (array) $ordered_menu_items as $ordered_menu_item_object ) { 71 71 if ( isset( $ordered_menu_item_object->ID ) ) { 72 72 if ( isset( $ordered_menu_item_object->menu_order ) ) { … … 141 141 $dbids_to_orders = array(); 142 142 $orders_to_dbids = array(); 143 foreach ( (array) $ordered_menu_items as $ordered_menu_item_object ) {143 foreach ( (array) $ordered_menu_items as $ordered_menu_item_object ) { 144 144 if ( isset( $ordered_menu_item_object->ID ) ) { 145 145 if ( isset( $ordered_menu_item_object->menu_order ) ) { … … 461 461 462 462 // Generate truncated menu names. 463 foreach ( (array) $nav_menus as $key => $_nav_menu ) {463 foreach ( (array) $nav_menus as $key => $_nav_menu ) { 464 464 $nav_menus[$key]->truncated_name = wp_html_excerpt( $_nav_menu->name, 40, '…' ); 465 465 } … … 589 589 </h2> 590 590 <?php 591 foreach ( $messages as $message ) :591 foreach ( $messages as $message ) : 592 592 echo $message . "\n"; 593 593 endforeach; … … 669 669 <option value="0" selected="selected"><?php _e( '— Select —' ); ?></option> 670 670 <?php endif; ?> 671 <?php foreach ( (array) $nav_menus as $_nav_menu ) : ?>671 <?php foreach ( (array) $nav_menus as $_nav_menu ) : ?> 672 672 <option value="<?php echo esc_attr( $_nav_menu->term_id ); ?>" <?php selected( $_nav_menu->term_id, $nav_menu_selected_id ); ?>> 673 673 <?php
Note: See TracChangeset
for help on using the changeset viewer.