Fix Undefined Variable Notices when no charset/collate is set for $wpdb. See #12028
git-svn-id: http://svn.automattic.com/wordpress/trunk@18986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8e82c7560c
commit
5194428741
|
@ -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