Changeset 12409 for trunk/wp-includes/wp-db.php
- Timestamp:
- 12/15/2009 09:01:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r12404 r12409 386 386 $this->ready = true; 387 387 388 if ( $this->has_cap( 'collation' ) ) { 389 if ( !empty($this->charset) ) { 390 if ( function_exists('mysql_set_charset') ) { 391 mysql_set_charset($this->charset, $this->dbh); 392 $this->real_escape = true; 393 } else { 394 $collation_query = "SET NAMES '{$this->charset}'"; 395 if ( !empty($this->collate) ) 396 $collation_query .= " COLLATE '{$this->collate}'"; 397 $this->query($collation_query); 398 } 388 if ( !empty($this->charset) ) { 389 if ( function_exists('mysql_set_charset') ) { 390 mysql_set_charset($this->charset, $this->dbh); 391 $this->real_escape = true; 392 } else { 393 $collation_query = "SET NAMES '{$this->charset}'"; 394 if ( !empty($this->collate) ) 395 $collation_query .= " COLLATE '{$this->collate}'"; 396 $this->query($collation_query); 399 397 } 400 398 }
Note: See TracChangeset
for help on using the changeset viewer.