From de2c9e23cf2558bbffc1d9a85ed2cab5210b7d42 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 3 Apr 2014 19:43:53 +0000 Subject: [PATCH] Plupload wrapper: Call init callback on PostInit event. Fixes the background image uploader in Customizer, which was broken after [27316]. fixes #27620. git-svn-id: https://develop.svn.wordpress.org/trunk@27933 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/plupload/wp-plupload.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/js/plupload/wp-plupload.js b/src/wp-includes/js/plupload/wp-plupload.js index baa20b6fd3..413334b8b3 100644 --- a/src/wp-includes/js/plupload/wp-plupload.js +++ b/src/wp-includes/js/plupload/wp-plupload.js @@ -272,7 +272,9 @@ window.wp = window.wp || {}; up.refresh(); }); - this.init(); + this.uploader.bind( 'PostInit', function() { + self.init(); + }); }; // Adds the 'defaults' and 'browser' properties.