Changeset 45583 for trunk/src/wp-admin/includes/nav-menu.php
- Timestamp:
- 07/01/2019 12:50:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/nav-menu.php
r44686 r45583 412 412 ); 413 413 414 $most_recent_url = $view_all_url = $search_url = ''; 414 $most_recent_url = ''; 415 $view_all_url = ''; 416 $search_url = ''; 415 417 if ( $nav_menu_selected_id ) { 416 418 $most_recent_url = esc_url( add_query_arg( $post_type_name . '-tab', 'most-recent', remove_query_arg( $removed_args ) ) ); … … 741 743 ); 742 744 743 $most_used_url = $view_all_url = $search_url = ''; 745 $most_used_url = ''; 746 $view_all_url = ''; 747 $search_url = ''; 744 748 if ( $nav_menu_selected_id ) { 745 749 $most_used_url = esc_url( add_query_arg( $taxonomy_name . '-tab', 'most-used', remove_query_arg( $removed_args ) ) ); … … 1028 1032 } 1029 1033 1030 $some_pending_menu_items = $some_invalid_menu_items = false; 1034 $some_pending_menu_items = false; 1035 $some_invalid_menu_items = false; 1031 1036 foreach ( (array) $menu_items as $menu_item ) { 1032 1037 if ( isset( $menu_item->post_status ) && 'draft' == $menu_item->post_status ) { … … 1182 1187 } 1183 1188 } else { 1184 if ( false !== ( $key = array_search( $nav_menu_selected_id, $nav_menu_option['auto_add'] ) ) ) { 1189 $key = array_search( $nav_menu_selected_id, $nav_menu_option['auto_add'] ); 1190 if ( false !== $key ) { 1185 1191 unset( $nav_menu_option['auto_add'][ $key ] ); 1186 1192 }
Note: See TracChangeset
for help on using the changeset viewer.