Changeset 32456
- Timestamp:
- 05/08/2015 12:21:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r32440 r32456 1752 1752 } 1753 1753 1754 $table_details = $wpdb->get_row( "SHOW TABLE STATUS LIKE '$table'" ); 1755 if ( ! $table_details ) { 1756 return false; 1757 } 1758 1759 list( $table_charset ) = explode( '_', $table_details->Collation ); 1760 $table_charset = strtolower( $table_charset ); 1761 if ( 'utf8mb4' === $table_charset ) { 1762 return true; 1763 } 1764 1754 1765 return $wpdb->query( "ALTER TABLE $table CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" ); 1755 1766 }
Note: See TracChangeset
for help on using the changeset viewer.