kayue/WordpressBundle — Issue #5: What does $returnValue in ApiLoader->load() do?
Author: kayue
Created: 2011-12-23 07:41:21+00:00
State: open

Hi Mrtorrent

I was trying to figure out what does the following lines do in ```ApiLoader->load()```, could you give me some hints?

$returnValue = require_once $bootstrap;

foreach (get_defined_vars() as $name => $value) {
if ($name == 'bootstrap' or $name == 'returnValue') continue;
$GLOBALS[$name] = $value;
}

return $returnValue;

https://github.com/kayue/WordpressBundle/blob/master/Wordpress/ApiLoader.php#L79-84

Thank you so much!

Best
Ka Yue