Use a deep extend in wp.Uploader to ensure that the multipart_params object (and others) are cloned instead of referenced. fixes #20532.
git-svn-id: https://develop.svn.wordpress.org/trunk@20577 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
643618503c
commit
14100746f2
|
@ -25,7 +25,8 @@ if ( typeof wp === 'undefined' )
|
|||
},
|
||||
key;
|
||||
|
||||
this.plupload = $.extend( { multipart_params: {} }, wpPluploadDefaults );
|
||||
// Use deep extend to ensure that multipart_params and other objects are cloned.
|
||||
this.plupload = $.extend( true, { multipart_params: {} }, wpPluploadDefaults );
|
||||
this.container = document.body; // Set default container.
|
||||
|
||||
// Extend the instance with options
|
||||
|
|
Loading…
Reference in New Issue