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:
parent
4611376ba5
commit
5e246a6c45
@ -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
Block a user