Database: Remove some duplicate code.
`schema.php` was manually defining the character set/collation query, instead of using `wpdb::get_charset_collate()`. Props sudar. Fixes #35756. git-svn-id: https://develop.svn.wordpress.org/trunk@37524 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a09ea91d16
commit
448896a2c7
@ -36,12 +36,7 @@ $charset_collate = $wpdb->get_charset_collate();
|
||||
function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
|
||||
global $wpdb;
|
||||
|
||||
$charset_collate = '';
|
||||
|
||||
if ( ! empty($wpdb->charset) )
|
||||
$charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
|
||||
if ( ! empty($wpdb->collate) )
|
||||
$charset_collate .= " COLLATE $wpdb->collate";
|
||||
$charset_collate = $wpdb->get_charset_collate();
|
||||
|
||||
if ( $blog_id && $blog_id != $wpdb->blogid )
|
||||
$old_blog_id = $wpdb->set_blog_id( $blog_id );
|
||||
|
Loading…
Reference in New Issue
Block a user