Ticket #36909: 36909.diff
File 36909.diff, 1.4 KB (added by , 7 years ago) |
---|
-
src/wp-includes/js/media/views/attachments/browser.js
41 41 this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this ); 42 42 this.controller.on( 'edit:selection', this.editSelection ); 43 43 this.createToolbar(); 44 this.createUploader(); 45 this.createAttachments(); 44 46 if ( this.options.sidebar ) { 45 47 this.createSidebar(); 46 48 } 47 this.createUploader();48 this.createAttachments();49 49 this.updateContent(); 50 50 51 51 if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) { -
src/wp-includes/js/media-views.js
3772 3772 this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this ); 3773 3773 this.controller.on( 'edit:selection', this.editSelection ); 3774 3774 this.createToolbar(); 3775 this.createUploader(); 3776 this.createAttachments(); 3775 3777 if ( this.options.sidebar ) { 3776 3778 this.createSidebar(); 3777 3779 } 3778 this.createUploader();3779 this.createAttachments();3780 3780 this.updateContent(); 3781 3781 3782 3782 if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {