WordPress.org

Make WordPress Core

Changeset 20300


Ignore:
Timestamp:
03/28/2012 09:27:26 AM (8 years ago)
Author:
koopersmith
Message:

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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-setting.php

    r20295 r20300  
    266266     * @return null|array
    267267     */
    268     final protected function multidimensional( $root, $keys, $create = false ) {
     268    final protected function multidimensional( &$root, $keys, $create = false ) {
    269269        if ( $create && empty( $root ) )
    270270            $root = array();
Note: See TracChangeset for help on using the changeset viewer.