mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-27 16:04:31 +00:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user