Make WordPress Core

Ticket #36909: 36909.diff

File 36909.diff, 1.4 KB (added by afercia, 7 years ago)
  • src/wp-includes/js/media/views/attachments/browser.js

     
    4141                this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
    4242                this.controller.on( 'edit:selection', this.editSelection );
    4343                this.createToolbar();
     44                this.createUploader();
     45                this.createAttachments();
    4446                if ( this.options.sidebar ) {
    4547                        this.createSidebar();
    4648                }
    47                 this.createUploader();
    48                 this.createAttachments();
    4949                this.updateContent();
    5050
    5151                if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {
  • src/wp-includes/js/media-views.js

     
    37723772                this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
    37733773                this.controller.on( 'edit:selection', this.editSelection );
    37743774                this.createToolbar();
     3775                this.createUploader();
     3776                this.createAttachments();
    37753777                if ( this.options.sidebar ) {
    37763778                        this.createSidebar();
    37773779                }
    3778                 this.createUploader();
    3779                 this.createAttachments();
    37803780                this.updateContent();
    37813781
    37823782                if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {