Declare wpdb and wp_queries as global. Props jhodgdon. see #5860

git-svn-id: https://develop.svn.wordpress.org/trunk@6896 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-18 17:33:40 +00:00
parent 4611376ba5
commit 5e246a6c45
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@
$charset_collate = '';
// Declare these as global in case schema.php is included from a function.
global $wpdb, $wp_queries;
if ( $wpdb->supports_collation() ) {
if ( ! empty($wpdb->charset) )
$charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";