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
This commit is contained in:
ryan 2008-02-18 17:33:40 +00:00
parent bd8069aba7
commit 4d82268ee7
1 changed files with 3 additions and 0 deletions

View File

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