From 5e246a6c45ba5acb916704bb83f9e7788ae4bb89 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@6896 602fd350-edb4-49c9-b593-d223f7449a82 --- 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";