From e572052ab84bdd70085471f5dc6b43bf47a743ff 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: https://develop.svn.wordpress.org/trunk@22823 602fd350-edb4-49c9-b593-d223f7449a82 --- 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() {