From 4d82268ee7e38e4d506ec7eb10a9bc8b5e2c6bd2 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 18 Feb 2008 17:33:40 +0000 Subject: [PATCH] Declare wpdb and wp_queries as global. Props jhodgdon. see #5860 git-svn-id: http://svn.automattic.com/wordpress/trunk@6896 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/schema.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index b73c5a1425..2cbd45e6d4 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -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";