Wordpress: Config variable missing from function closure

The default settings are always used as appConfig is not populated with the settings from the Wordpress variable.