WooCommerce Multilingual – run WooCommerce with WPML - Version 3.6.11

Version Description

  • Fixed one issue that was causing a fatal error when an older version WPML was used (3.1.9.7)
Download this release

Release Info

Developer mihaimihai
Plugin Icon 128x128 WooCommerce Multilingual – run WooCommerce with WPML
Version 3.6.11
Comparing to
See all releases

Code changes from version 3.6.10 to 3.6.11

inc/emails.class.php CHANGED
@@ -1,18 +1,14 @@
1
  <?php
2
- class WCML_Emails extends WPML_SP_User {
3
 
4
  private $order_id = false;
5
 
6
  private $locale = false;
7
 
8
- /**
9
- * @param SitePress $sitepress
10
- */
11
- function __construct( &$sitepress ) {
12
- parent::__construct( $sitepress );
13
  add_action( 'init', array( $this, 'init' ) );
14
- }
15
-
16
  function init(){
17
  //wrappers for email's header
18
  if(is_admin() && !defined( 'DOING_AJAX' )){
@@ -112,7 +108,8 @@ class WCML_Emails extends WPML_SP_User {
112
  * After email translation switch language to default.
113
  */
114
  function email_footer() {
115
- $this->sitepress->switch_lang( $this->sitepress->get_default_language() );
 
116
  }
117
 
118
  function comments_language(){
1
  <?php
2
+ class WCML_Emails{
3
 
4
  private $order_id = false;
5
 
6
  private $locale = false;
7
 
8
+ function __construct( ) {
 
 
 
 
9
  add_action( 'init', array( $this, 'init' ) );
10
+ }
11
+
12
  function init(){
13
  //wrappers for email's header
14
  if(is_admin() && !defined( 'DOING_AJAX' )){
108
  * After email translation switch language to default.
109
  */
110
  function email_footer() {
111
+ global $sitepress;
112
+ $sitepress->switch_lang($sitepress->get_default_language());
113
  }
114
 
115
  function comments_language(){
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: CMS, woocommerce, commerce, ecommerce, e-commerce, products, WPML, multili
5
  License: GPLv2
6
  Requires at least: 3.0
7
  Tested up to: 4.3
8
- Stable tag: 3.6.10
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
@@ -78,6 +78,9 @@ In order for the checkout and store pages to appear translated, you need to crea
78
 
79
  == Changelog ==
80
 
 
 
 
81
  = 3.6.10 =
82
  * Bug fix: Custom prices for variations were not saved when clicking the 'Save changes' button
83
  * Bug fix: Pagination was not working for a category having the term id equal to the id of the account page
5
  License: GPLv2
6
  Requires at least: 3.0
7
  Tested up to: 4.3
8
+ Stable tag: 3.6.11
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
78
 
79
  == Changelog ==
80
 
81
+ = 3.6.11 =
82
+ * Fixed one issue that was causing a fatal error when an older version WPML was used (3.1.9.7)
83
+
84
  = 3.6.10 =
85
  * Bug fix: Custom prices for variations were not saved when clicking the 'Save changes' button
86
  * Bug fix: Pagination was not working for a category having the term id equal to the id of the account page
woocommerce_wpml.class.php CHANGED
@@ -48,7 +48,7 @@ class woocommerce_wpml {
48
  $this->endpoints = new WCML_Endpoints;
49
  $this->products = new WCML_Products;
50
  $this->store = new WCML_Store_Pages;
51
- $this->emails = new WCML_Emails( $sitepress );
52
  $this->terms = new WCML_Terms;
53
  $this->orders = new WCML_Orders;
54
  $this->troubleshooting = new WCML_Troubleshooting();
48
  $this->endpoints = new WCML_Endpoints;
49
  $this->products = new WCML_Products;
50
  $this->store = new WCML_Store_Pages;
51
+ $this->emails = new WCML_Emails;
52
  $this->terms = new WCML_Terms;
53
  $this->orders = new WCML_Orders;
54
  $this->troubleshooting = new WCML_Troubleshooting();
wpml-woocommerce.php CHANGED
@@ -5,12 +5,12 @@
5
  Description: Allows running fully multilingual e-Commerce sites with WooCommerce and WPML. <a href="http://wpml.org/documentation/related-projects/woocommerce-multilingual/">Documentation</a>.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com/
8
- Version: 3.6.10
9
  */
10
 
11
 
12
  if(defined('WCML_VERSION')) return;
13
- define('WCML_VERSION', '3.6.10');
14
  define('WCML_PLUGIN_PATH', dirname(__FILE__));
15
  define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
16
  define('WCML_PLUGIN_URL', plugins_url() . '/' . WCML_PLUGIN_FOLDER);
5
  Description: Allows running fully multilingual e-Commerce sites with WooCommerce and WPML. <a href="http://wpml.org/documentation/related-projects/woocommerce-multilingual/">Documentation</a>.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com/
8
+ Version: 3.6.11
9
  */
10
 
11
 
12
  if(defined('WCML_VERSION')) return;
13
+ define('WCML_VERSION', '3.6.11');
14
  define('WCML_PLUGIN_PATH', dirname(__FILE__));
15
  define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
16
  define('WCML_PLUGIN_URL', plugins_url() . '/' . WCML_PLUGIN_FOLDER);