WordPress.org

Make WordPress Core

Changeset 21609


Ignore:
Timestamp:
08/24/2012 05:44:21 PM (6 years ago)
Author:
nacin
Message:

Basic support for the mysql_connect() new_link and client_flags arguments. props Otto42, fixes #19324.

File:
1 edited

Legend:

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

    r21521 r21609  
    11361136        $this->is_mysql = true;
    11371137
     1138        $new_link = defined( 'MYSQL_NEW_LINK' ) ? MYSQL_NEW_LINK : true;
     1139        $client_flags = defined( 'MYSQL_CLIENT_FLAGS' ) ? MYSQL_CLIENT_FLAGS : 0;
     1140
    11381141        if ( WP_DEBUG ) {
    1139             $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
     1142            $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
    11401143        } else {
    1141             $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
     1144            $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
    11421145        }
    11431146
Note: See TracChangeset for help on using the changeset viewer.