From 14100746f205c008d1674f6cb5ef8e1bd4f0c308 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 24 Apr 2012 19:38:47 +0000 Subject: [PATCH] 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 --- wp-includes/js/plupload/wp-plupload.dev.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/plupload/wp-plupload.dev.js b/wp-includes/js/plupload/wp-plupload.dev.js index f72c233123..291991175f 100644 --- a/wp-includes/js/plupload/wp-plupload.dev.js +++ b/wp-includes/js/plupload/wp-plupload.dev.js @@ -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