WordPress unsets $theme variable
Brought to you by:
jberanek
auth/cms/wordpress.inc loads wp-load.php from WordPress, which in turn loads wp-settings.php. wp-settings.php internally sets $theme, and unsets it when done. The effect is that once MRBS comes back from auth/cms/wordpress.inc, $theme is no longer set and any theme configured in MRBS's config.php.inc is ignored. The attached patch trivially addresses this issue, but there may very well be other variables similarly affected.
I half suspect that define('WP_USE_THEMES', false); is supposed to prevent this; if this is indeed the case, then this appears to be a WordPress issue instead.
Many thanks for this. I have now committed the fix to the mrbs_17_branch (176619) and default (8e565c) branches.
define('WP_USE_THEMES', false);wasn't supposed to prevent this. All it does is tell WP not to load a theme.