Make WordPress Core


Ignore:
Timestamp:
10/18/2011 08:44:39 PM (13 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975

File:
1 edited

Legend:

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

    r18753 r18998  
    13701370            // (Duplicates are discarded)
    13711371            foreach ( $this->last_result as $row ) {
    1372                 $key = array_shift( get_object_vars( $row ) );
     1372                $key = array_shift( $var_by_ref = get_object_vars( $row ) );
    13731373                if ( ! isset( $new_array[ $key ] ) )
    13741374                    $new_array[ $key ] = $row;
Note: See TracChangeset for help on using the changeset viewer.