Ticket #32800: 32800.3.diff
File 32800.3.diff, 963 bytes (added by , 10 years ago) |
---|
-
wp-admin/js/customize-nav-menus.js
1676 1676 select.append( new Option( control.setting().name, menuId ) ); 1677 1677 } 1678 1678 } ); 1679 $( '#available-widgets-list .widget-inside:has(input.id_base[value=nav_menu]) select:first' ).append( new Option( control.setting().name, menuId ) );1680 1679 } 1681 1680 }, 1682 1681 … … 2361 2360 oldSetting.set( false ); 2362 2361 oldSetting.preview(); 2363 2362 newSetting.preview(); 2363 /** 2364 * Remove the previous menu id options from the custom menu widgets. 2365 */ 2366 $( '.control-section-sidebar .widget-inside:has(input.id_base[value=nav_menu])' ) 2367 .find( 'option[value=' + update.previous_term_id + ']' ) 2368 .remove(); 2364 2369 2365 2370 // Update nav_menu_locations to reference the new ID. 2366 2371 api.each( function( setting ) {