Ticket #21212: 21212-utf8mb4.2.diff
| File 21212-utf8mb4.2.diff, 686 bytes (added by pento, 10 months ago) |
|---|
-
wp-includes/wp-db.php
545 545 * @param string $collate The collation (optional) 546 546 */ 547 547 function set_charset($dbh, $charset = null, $collate = null) { 548 if ( version_compare( mysql_get_server_info(), '5.5.3', '>=' ) ) { 549 if ( 'utf8' == $this->charset ) 550 $this->charset = 'utf8mb4'; 551 552 if ( strpos( $this->charset, 'utf8_' ) === 0 ) 553 $this->charset = str_replace( 'utf8_', 'utf8mb4_', $this->charset ); 554 } 555 548 556 if ( !isset($charset) ) 549 557 $charset = $this->charset; 550 558 if ( !isset($collate) )
