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/wp-db.php

    r21807 r22118  
    535535     */
    536536    function __construct( $dbuser, $dbpassword, $dbname, $dbhost ) {
    537         register_shutdown_function( array( &$this, '__destruct' ) );
     537        register_shutdown_function( array( $this, '__destruct' ) );
    538538
    539539        if ( WP_DEBUG )
     
    10011001        $query = str_replace( '%f' , '%F', $query ); // Force floats to be locale unaware
    10021002        $query = preg_replace( '|(?<!%)%s|', "'%s'", $query ); // quote the strings, avoiding escaped strings like %%s
    1003         array_walk( $args, array( &$this, 'escape_by_ref' ) );
     1003        array_walk( $args, array( $this, 'escape_by_ref' ) );
    10041004        return @vsprintf( $query, $args );
    10051005    }
Note: See TracChangeset for help on using the changeset viewer.