Make WordPress Core

Ticket #32800: 32800.3.diff

File 32800.3.diff, 963 bytes (added by adamsilverstein, 10 years ago)
  • wp-admin/js/customize-nav-menus.js

     
    16761676                                                select.append( new Option( control.setting().name, menuId ) );
    16771677                                        }
    16781678                                } );
    1679                                 $( '#available-widgets-list .widget-inside:has(input.id_base[value=nav_menu]) select:first' ).append( new Option( control.setting().name, menuId ) );
    16801679                        }
    16811680                },
    16821681
     
    23612360                                oldSetting.set( false );
    23622361                                oldSetting.preview();
    23632362                                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();
    23642369
    23652370                                // Update nav_menu_locations to reference the new ID.
    23662371                                api.each( function( setting ) {