From c5991558be04b7202f3307f1cda977bcb4167077 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Thu, 22 Nov 2012 12:24:54 +0000 Subject: [PATCH] Media: Properly render any pre-existing upload errors in the uploader status. see #21390. git-svn-id: http://core.svn.wordpress.org/trunk@22823 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-views.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 6841da1d1e..9398198414 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -1831,6 +1831,7 @@ this.errors = wp.Uploader.errors; this.errors.on( 'add remove reset', this.visibility, this ); this.errors.on( 'add', this.error, this ); + _.each( this.errors.models, this.error, this ); }, dispose: function() {