WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/01/2010 08:23:57 PM (9 years ago)
Author:
scribu
Message:

Remove archaic reference return in get_children(). Props filosofo. Fixes #12372

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16662 r16667  
    267267 * @return array|bool False on failure and the type will be determined by $output parameter.
    268268 */
    269 function &get_children($args = '', $output = OBJECT) {
     269function get_children($args = '', $output = OBJECT) {
    270270    $kids = array();
    271271    if ( empty( $args ) ) {
     
    296296
    297297    foreach ( $children as $key => $child )
    298         $kids[$child->ID] =& $children[$key];
     298        $kids[$child->ID] = $children[$key];
    299299
    300300    if ( $output == OBJECT ) {
Note: See TracChangeset for help on using the changeset viewer.