PHP Warning when wpml_switch_language_action is executed
-
Hey guys,
On line
includes/api/class-mailchimp-woocommerce-transform-products.php:87thewpml_switch_language_actionfunction is executed, but that generates a PHP Warning when a language translation could not be found on line 86. Therefor it’d be better to first check if the language info has been found and$post_language_info->language_codeis set before passing it on in thewpml_switch_language_actionfunction call.Can you please write a fix for this?
Thanks a lot.
// T
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘PHP Warning when wpml_switch_language_action is executed’ is closed to new replies.