[Plugin: WP Widget Cache] Polylang support
-
Same as suggested in this thread by DSmidge, adjusted for polylang
https://www.ads-software.com/support/topic/plugin-wp-widget-cache-feature-request-support-for-qtranslate?replies=4--- widget-cache.php.org 2012-10-09 18:36:17.000000000 +0600 +++ widget-cache.php 2012-10-09 18:38:55.000000000 +0600 @@ -503,7 +503,7 @@ { echo "<!--$this->plugin_name $this->plugin_version ($this->plugin_uri) Begin -->\n"; - while($this->wcache->save($this->get_widget_cache_key($id), $wc_value, array(), $id) || ($this->widget_cache_getcache($id, $wc_value) && false)) + while ($this->wcache->save( pll_current_language() . $this->get_widget_cache_key($id), $wc_value, array(), $id) || ($this->widget_cache_getcache($id, $wc_value) && false ) ) { call_user_func_array($callback, $params); }
https://www.ads-software.com/extend/plugins/wp-widget-cache/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: WP Widget Cache] Polylang support’ is closed to new replies.