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:
parent
bd8069aba7
commit
4d82268ee7
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue