Permalink
Browse files

Work around WordPress's `$wp_rewrite` global. Fixes #2

  • Loading branch information...
1 parent 53881d9 commit 4184d7852bb106102e2466879fd1b7e1b87119fd @mrtorrent mrtorrent committed Dec 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Wordpress/ApiLoader.php
View
3 Wordpress/ApiLoader.php
@@ -57,6 +57,7 @@ public function load($bootstrap='wp-load.php')
throw new FileNotFoundException($bootstrap);
}
+ global $wp_rewrite;
$returnValue = require_once $bootstrap;
foreach (get_defined_vars() as $name => $value) {
@@ -67,4 +68,4 @@ public function load($bootstrap='wp-load.php')
return $returnValue;
}
-}
+}

0 comments on commit 4184d78

Please sign in to comment.