From 23ef6d4aabb16fa627c09471826361f02e592a5e Mon Sep 17 00:00:00 2001 From: koopersmith Date: Wed, 28 Mar 2012 09:27:26 +0000 Subject: [PATCH] Theme Customizer: Properly pass arguments by reference to WP_Customize_Setting->multidimensional(). see #19910, [20136], #20163. This is necessary for WP_Customize_Setting->multidimensional_replace() to work properly on multidimensional arrays (which was, as the name indicates, the point of the function in the first place). git-svn-id: http://svn.automattic.com/wordpress/trunk@20300 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-setting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php index 5a4ed19d5..ebc36a4b3 100644 --- a/wp-includes/class-wp-customize-setting.php +++ b/wp-includes/class-wp-customize-setting.php @@ -265,7 +265,7 @@ class WP_Customize_Setting { * @param bool $create Default is false. * @return null|array */ - final protected function multidimensional( $root, $keys, $create = false ) { + final protected function multidimensional( &$root, $keys, $create = false ) { if ( $create && empty( $root ) ) $root = array();