PHP Warning when wpml_switch_language_action is executed
-
Hey guys,
On line
includes/api/class-mailchimp-woocommerce-transform-products.php:87
thewpml_switch_language_action
function 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_code
is set before passing it on in thewpml_switch_language_action
function call.Can you please write a fix for this?
Thanks a lot.
// T
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.