Ticket #19324: 19324.diff
File 19324.diff, 985 bytes (added by , 11 years ago) |
---|
-
wp-includes/wp-db.php
1033 1033 function db_connect() { 1034 1034 1035 1035 $this->is_mysql = true; 1036 1037 if ( defined( 'DB_NEW_LINK' ) ) 1038 $this->newlink = DB_NEW_LINK; 1039 else 1040 $this->newlink = true; 1036 1041 1042 if ( defined( 'DB_CLIENT_FLAGS' ) ) 1043 $this->client_flags = DB_CLIENT_FLAGS; 1044 else 1045 $this->client_flags = 0; 1046 1037 1047 if ( WP_DEBUG ) { 1038 $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true);1048 $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $this->newlink, $this->client_flags ); 1039 1049 } else { 1040 $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true);1050 $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $this->newlink, $this->client_flags ); 1041 1051 } 1042 1052 1043 1053 if ( !$this->dbh ) {