]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/media-views.js
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-includes / js / media-views.js
index 60f9b9361fd684819375dccd33aa345e65fee45a..e8a8202d59e11f921f8cb9ebea55b632e5ad9a52 100644 (file)
@@ -3772,11 +3772,11 @@ AttachmentsBrowser = View.extend({
                this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
                this.controller.on( 'edit:selection', this.editSelection );
                this.createToolbar();
+               this.createUploader();
+               this.createAttachments();
                if ( this.options.sidebar ) {
                        this.createSidebar();
                }
-               this.createUploader();
-               this.createAttachments();
                this.updateContent();
 
                if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {