WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2012 08:00:16 PM (9 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/post-template.php

    r22107 r22118  
    938938
    939939    $args = array($pages, $depth, $r, $current_page);
    940     return call_user_func_array(array(&$walker, 'walk'), $args);
     940    return call_user_func_array(array($walker, 'walk'), $args);
    941941}
    942942
     
    955955        $walker = $args[2]['walker'];
    956956
    957     return call_user_func_array(array(&$walker, 'walk'), $args);
     957    return call_user_func_array(array($walker, 'walk'), $args);
    958958}
    959959
Note: See TracChangeset for help on using the changeset viewer.