Left over old code causing errors in 5.0.35
-
I’m getting the following errors reported in debug mode:
PHP Notice: Undefined variable: get_flag_choices in wp-content\plugins\google-language-translator\google-language-translator.php on line 450
PHP Notice: Undefined variable: get_flag_choices in wp-content\plugins\google-language-translator\google-language-translator.php on line 327
PHP Notice: Undefined variable: flag_width in wp-content\plugins\google-language-translator\google-language-translator.php on line 344
A quick look at the new code reveals that $get_flag_choices is never initialised, so its use on line 450 and 327 tries to initialise $get_flag_choices_count which itself is never used anywhere.
$flag_width is used in the function footer_script() on line 344, but it isn’t initialised in this function, although it is initialised and used in the functions googlelanguagetranslator_horizontal() and googlelanguagetranslator_vertical().
Looking forward to update 5.0.36.
- The topic ‘Left over old code causing errors in 5.0.35’ is closed to new replies.