Script not included when using non-english WPLANG
-
##PLUGIN: Easy MailChimp Forms
##Version: Version: 5.0.9
##FILE: /yikes-inc-easy-mailchimp-extender/class/classes.yksemeBase.php#1. “wp_print_*” is for inline script/style, so these hooks:
wp_print_styles and wp_print_scripts
Need to be:
wp_enqueue_styles and wp_enqueue_scripts
#2. There are few places where screen base is used to check for script output:
$screen_base = get_current_screen()->base;
Problem: when WPLANG is set (i.e. “es_ES”) = for whatever reason base is localized and different from english base:en: mailchimp-forms_page_yks-mailchimp-form-lists es: formas-mailchimp_page_yks-mailchimp-form-lists
(~I wasn’t yet able to find where “mailchimp-forms” part gets localized to “formas-mailchimp”..)
So of course – “if” code fails and scripts not added (function addScripts() ):
if ( $screen_base == 'mailchimp-forms_page_yks-mailchimp-form-lists' )
https://www.ads-software.com/plugins/yikes-inc-easy-mailchimp-extender/
- The topic ‘Script not included when using non-english WPLANG’ is closed to new replies.