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:
parent
b41d074b1b
commit
23ef6d4aab
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue