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: https://develop.svn.wordpress.org/trunk@20300 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea85772eb6
commit
26bba58bdb
@ -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
Block a user