WordPress.org

Make WordPress Core

Ticket #12372: remove_archaic_reference_returns.12372.2.diff

File remove_archaic_reference_returns.12372.2.diff, 821 bytes (added by filosofo, 5 years ago)
  • wp-includes/post.php

     
    264264 * @param string $output Optional. Constant for return type, either OBJECT (default), ARRAY_A, ARRAY_N. 
    265265 * @return array|bool False on failure and the type will be determined by $output parameter. 
    266266 */ 
    267 function &get_children($args = '', $output = OBJECT) { 
     267function get_children($args = '', $output = OBJECT) { 
    268268        $kids = array(); 
    269269        if ( empty( $args ) ) { 
    270270                if ( isset( $GLOBALS['post'] ) ) { 
     
    293293        update_post_cache($children); 
    294294 
    295295        foreach ( $children as $key => $child ) 
    296                 $kids[$child->ID] =& $children[$key]; 
     296                $kids[$child->ID] = $children[$key]; 
    297297 
    298298        if ( $output == OBJECT ) { 
    299299                return $kids;