Use get_charset_collate of WP
This commit is contained in:
parent
c0c94f210c
commit
bf2be97dd0
|
@ -360,12 +360,7 @@ class WC_Install {
|
|||
$collate = '';
|
||||
|
||||
if ( $wpdb->has_cap( 'collation' ) ) {
|
||||
if ( ! empty( $wpdb->charset ) ) {
|
||||
$collate .= "DEFAULT CHARACTER SET $wpdb->charset";
|
||||
}
|
||||
if ( ! empty( $wpdb->collate ) ) {
|
||||
$collate .= " COLLATE $wpdb->collate";
|
||||
}
|
||||
$collate = $wpdb->get_charset_collate();
|
||||
}
|
||||
|
||||
return "
|
||||
|
|
Loading…
Reference in New Issue