Make WordPress Core

Changeset 21722


Ignore:
Timestamp:
09/04/2012 04:10:00 AM (12 years ago)
Author:
koopersmith
Message:

Do not instantiate a Plupload instance when the wp-plupload bridge has neither a browse button nor a dropzone. fixes #21707.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/plupload/wp-plupload.js

    r21656 r21722  
    7474        }
    7575
     76        // If the uploader has neither a browse button nor a dropzone, bail.
     77        if ( ! ( this.browser && this.browser.length ) && ! ( this.dropzone && this.dropzone.length ) )
     78            return;
     79
    7680        this.uploader = new plupload.Uploader( this.plupload );
    7781        delete this.plupload;
Note: See TracChangeset for help on using the changeset viewer.