Polylang breaks support of $sitepress?
-
Hello,
With Polylang 2.2.3, everything works great. But when I update the plugin, to the current version (2.2.5), I got a blank page.
The log display:
[Thu Nov 09 15:03:52.835790 2017] [:error] [pid 5879] [client 86.xxx.69.xxx:48636 ] PHP Fatal error: Call to a member function get_current_language() on null in /home/xxx/dev/wp-content/plugins/yith-woocommerce-request-a-quote-premium/ includes/class.yith-request-quote.php on line 797, referer: https://xxx.fr/wp-admin/plugins.php
And the ligne 797 of the Yith plugin:
if ( function_exists( 'wpml_object_id_filter' ) ) { global $sitepress; $option_value = wpml_object_id_filter( $option_value, 'post', true, $sitepress->get_current_language() ); }
Look likes $sitepress is not supported anymore?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Polylang breaks support of $sitepress?’ is closed to new replies.