WordPress.org

Make WordPress Core

Changeset 20577


Ignore:
Timestamp:
04/24/12 19:38:47 (2 years ago)
Author:
koopersmith
Message:

Use a deep extend in wp.Uploader to ensure that the multipart_params object (and others) are cloned instead of referenced. fixes #20532.

File:
1 edited

Legend:

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

    r20545 r20577  
    2626            key; 
    2727 
    28         this.plupload = $.extend( { multipart_params: {} }, wpPluploadDefaults ); 
     28        // Use deep extend to ensure that multipart_params and other objects are cloned. 
     29        this.plupload = $.extend( true, { multipart_params: {} }, wpPluploadDefaults ); 
    2930        this.container = document.body; // Set default container. 
    3031 
Note: See TracChangeset for help on using the changeset viewer.