]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/media-grid.js
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-includes / js / media-grid.js
index e29494f5764657c6be6b208951ddf1a272725615..5d0faa25f498725e035a6760e0bbd70a26766e81 100644 (file)
@@ -774,6 +774,10 @@ Manage = MediaFrame.extend({
        addNewClickHandler: function( event ) {
                event.preventDefault();
                this.trigger( 'toggle:upload:attachment' );
+
+               if ( this.uploader ) {
+                       this.uploader.refresh();
+               }
        },
 
        /**