From 75f9258969c09ecbadb1aa65624c3393f27bc1cd Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Wed, 1 Aug 2012 01:10:13 +0000 Subject: [PATCH] Make the browser property in wp.Uploader optional. fixes #21437. git-svn-id: https://develop.svn.wordpress.org/trunk@21379 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/plupload/wp-plupload.dev.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/plupload/wp-plupload.dev.js b/wp-includes/js/plupload/wp-plupload.dev.js index 94a5b2532b..d2f6a07df8 100644 --- a/wp-includes/js/plupload/wp-plupload.dev.js +++ b/wp-includes/js/plupload/wp-plupload.dev.js @@ -113,7 +113,8 @@ if ( typeof wp === 'undefined' ) }); }( this.dropzone, this.supports.dragdrop )); - this.browser.on( 'mouseenter', this.refresh ); + if ( this.browser ) + this.browser.on( 'mouseenter', this.refresh ); this.uploader.bind( 'UploadProgress', this.progress );