Use get_charset_collate of WP

This commit is contained in:
Shiva Poudel 2016-01-27 15:55:56 +05:45
parent c0c94f210c
commit bf2be97dd0
1 changed files with 1 additions and 6 deletions

View File

@ -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 "