Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Uncaught ReferenceError: $gp_translations_options is not defined #476
$gp_translations_options is not being added to the page via wp_localize_script() from translations.php template. I am running multi-site so not sure if that is why its showing or if everyone else is seeing it also.
Basically it needs to be wrapped in a function and called via the wp_enqueue_scripts hook.
I will try submitting a patch if i can get my head around the process.
It seems to be working alright on my local install (single site).
It shouldn't need to be called via wp_enqueue_script as it's being written before the html headers are complete.
It may be related to how we add the scripts in
My issue with it while logged in was due to a old version of this plugin being network activated https://wpgeodirectory.com/translate/glotpress/projects/geodirectory/sv/default/
I can see the issue with logged out users too.