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
This commit is contained in:
parent
43d668a041
commit
75f9258969
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user