For anyone who uses a non-default wp-content directory location in their WordPress installs, as is the case if you employ a similar strategy to this, then you may have noticed that the Theme Options page is a little borked. The problem lies in the Swift Framework package, more specifically, the Redux Framework that is used to handle the options admin pages. This is the case in the Neighborhood theme, though it will affect any theme that uses the Swift Framework.
The offending code from wp-content>themes>neighborhood>includes>swift-framework>options>defaults.php (lines 5-15):
$fslashed_dir = trailingslashit(str_replace('\\','/', dirname(__FILE__)));
$fslashed_abs = trailingslashit(str_replace('\\','/', ABSPATH));
if(!defined('Redux_OPTIONS_DIR')) {
define('Redux_OPTIONS_DIR', $fslashed_dir);
}
if(!defined('Redux_OPTIONS_URL')) {
define('Redux_OPTIONS_URL', site_url(str_replace($fslashed_abs,,fslashed_dir)));
}
By relying upon the ABSPATH global, the value for Redux_OPTIONS_URL gets mangled, preventing several scripts from loading correctly in the Theme Options page. Fortunately, the fix is quite easy, and does not rely upon hacking any of the theme’s core files. Simply adding the following line to the wp-config.php configuration file makes the monsters go away.
define('Redux_OPTIONS_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content/themes/neighborhood/includes/swift-framework/options/');
You may have to modify the path to suit your particular case.