Ticket #31771: 31771.diff
File 31771.diff, 627 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/wp-db.php
2219 2219 foreach ( $columns as $column ) { 2220 2220 if ( ! empty( $column->Collation ) ) { 2221 2221 list( $charset ) = explode( '_', $column->Collation ); 2222 2223 // If the current connection can't support utf8mb4 characters, let's only send 3-byte utf8 characters. 2224 if ( 'utf8mb4' === $charset && ! $this->has_cap( 'utf8mb4' ) ) { 2225 $charset = 'utf8'; 2226 } 2227 2222 2228 $charsets[ strtolower( $charset ) ] = true; 2223 2229 } 2224 2230