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
This commit is contained in:
koopersmith 2012-03-28 09:27:26 +00:00
parent b41d074b1b
commit 23ef6d4aab
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class WP_Customize_Setting {
* @param bool $create Default is false. * @param bool $create Default is false.
* @return null|array * @return null|array
*/ */
final protected function multidimensional( $root, $keys, $create = false ) { final protected function multidimensional( &$root, $keys, $create = false ) {
if ( $create && empty( $root ) ) if ( $create && empty( $root ) )
$root = array(); $root = array();