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:
Daryl Koopersmith 2012-04-24 19:38:47 +00:00
parent 643618503c
commit 14100746f2
1 changed files with 2 additions and 1 deletions

View File

@ -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