Skip to content

Commit

Permalink
Add missing $wpdb global to avoid error on multisite environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Composieux committed Sep 21, 2014
1 parent 6b5053d commit aa477b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wordpress/Wordpress.php
Expand Up @@ -77,7 +77,7 @@ public function getContent()

define('WP_USE_THEMES', true);

global $wp, $wp_the_query, $wp_query, $allowedentitynames;
global $wp, $wp_the_query, $wpdb, $wp_query, $allowedentitynames;

$loader = $this->getWordpressDirectory() . 'wp-blog-header.php';

Expand Down

0 comments on commit aa477b6

Please sign in to comment.