Make WordPress Core


Ignore:
Timestamp:
10/04/2012 08:00:16 PM (12 years ago)
Author:
ryan
Message:

Objects no longer need to be explicitly passed by ref to call_user_func*() to be callable. Props wonderboymusic. fixes #21865

File:
1 edited

Legend:

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

    r19712 r22118  
    127127            $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
    128128        $cb_args = array_merge( array(&$output, $element, $depth), $args);
    129         call_user_func_array(array(&$this, 'start_el'), $cb_args);
     129        call_user_func_array(array($this, 'start_el'), $cb_args);
    130130
    131131        $id = $element->$id_field;
     
    140140                    //start the child delimiter
    141141                    $cb_args = array_merge( array(&$output, $depth), $args);
    142                     call_user_func_array(array(&$this, 'start_lvl'), $cb_args);
     142                    call_user_func_array(array($this, 'start_lvl'), $cb_args);
    143143                }
    144144                $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output );
     
    150150            //end the child delimiter
    151151            $cb_args = array_merge( array(&$output, $depth), $args);
    152             call_user_func_array(array(&$this, 'end_lvl'), $cb_args);
     152            call_user_func_array(array($this, 'end_lvl'), $cb_args);
    153153        }
    154154
    155155        //end this element
    156156        $cb_args = array_merge( array(&$output, $element, $depth), $args);
    157         call_user_func_array(array(&$this, 'end_el'), $cb_args);
     157        call_user_func_array(array($this, 'end_el'), $cb_args);
    158158    }
    159159
Note: See TracChangeset for help on using the changeset viewer.