WordPress.org

Make WordPress Core

Ticket #26417: 26417.diff

File 26417.diff, 572 bytes (added by jeremyfelt, 7 years ago)
  • src/wp-admin/js/widgets.js

     
    407407                        sidebarId = chooser.find( '.widgets-chooser-selected' ).data('sidebarId'),
    408408                        sidebar = $( '#' + sidebarId );
    409409
    410                 // Move the chooser out of the widget
    411                 $('#wpbody-content').append( chooser );
    412 
    413410                widget = $('#available-widgets').find('.widget-in-question').clone();
    414411                widgetId = widget.attr('id');
    415412                add = widget.find( 'input.add_new' ).val();