Skip to content
This repository
Browse code

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: http://core.svn.wordpress.org/trunk@20577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 5e6b5abb99bef1aeee6840fd1272319acb513c8d 1 parent 82ef657
authored
3  wp-includes/js/plupload/wp-plupload.dev.js
@@ -25,7 +25,8 @@ if ( typeof wp === 'undefined' )
25 25
 			},
26 26
 			key;
27 27
 
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 );
29 30
 		this.container = document.body; // Set default container.
30 31
 
31 32
 		// Extend the instance with options

0 notes on commit 5e6b5ab

Please sign in to comment.
Something went wrong with that request. Please try again.