Fix Undefined Variable Notices when no charset/collate is set for $wpdb. See #12028
git-svn-id: https://develop.svn.wordpress.org/trunk@18986 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d2f80c9e5a
commit
527935e883
@ -36,6 +36,8 @@ if ( ! empty( $wpdb->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) )
|
||||
|
Loading…
Reference in New Issue
Block a user