WooCommerce Multilingual – run WooCommerce with WPML - Version 4.0.3

Version Description

  • Fixed fatal error caused by syntax incompatible with PHP versions prior 5.5
Download this release

Release Info

Developer sergey.r
Plugin Icon 128x128 WooCommerce Multilingual – run WooCommerce with WPML
Version 4.0.3
Comparing to
See all releases

Code changes from version 4.0.2 to 4.0.3

inc/template-classes/class-wcml-troubleshooting-ui.php CHANGED
@@ -20,13 +20,14 @@ class WCML_Troubleshooting_UI extends WPML_Templates_Factory {
20
  if( get_option( 'wcml_products_to_sync' ) === false ){
21
  $this->woocommerce_wpml->troubleshooting->wcml_sync_variations_update_option();
22
  }
 
23
 
24
  $model = array(
25
  'prod_with_variations' => $this->woocommerce_wpml->troubleshooting->wcml_count_products_with_variations(),
26
  'prod_count' => $this->woocommerce_wpml->troubleshooting->wcml_count_products_for_gallery_sync(),
27
  'prod_categories_count' => $this->woocommerce_wpml->troubleshooting->wcml_count_product_categories(),
28
  'all_products_taxonomies' => $this->get_all_products_taxonomies(),
29
- 'product_type_sync_needed' => !empty( WCML_Install::translated_product_type_terms() ) ? true : false,
30
  'media_def' => defined('WPML_MEDIA_VERSION'),
31
  'strings' => array(
32
  'troubl' => __( 'Troubleshooting', 'woocommerce-multilingual' ),
20
  if( get_option( 'wcml_products_to_sync' ) === false ){
21
  $this->woocommerce_wpml->troubleshooting->wcml_sync_variations_update_option();
22
  }
23
+ $translated_product_type_terms = WCML_Install::translated_product_type_terms();
24
 
25
  $model = array(
26
  'prod_with_variations' => $this->woocommerce_wpml->troubleshooting->wcml_count_products_with_variations(),
27
  'prod_count' => $this->woocommerce_wpml->troubleshooting->wcml_count_products_for_gallery_sync(),
28
  'prod_categories_count' => $this->woocommerce_wpml->troubleshooting->wcml_count_product_categories(),
29
  'all_products_taxonomies' => $this->get_all_products_taxonomies(),
30
+ 'product_type_sync_needed' => !empty( $translated_product_type_terms ) ? true : false,
31
  'media_def' => defined('WPML_MEDIA_VERSION'),
32
  'strings' => array(
33
  'troubl' => __( 'Troubleshooting', 'woocommerce-multilingual' ),
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.9
7
  Tested up to: 4.7
8
- Stable tag: 4.0.2
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
@@ -142,6 +142,9 @@ WooCommerce Multilingual is compatible with all major WooCommerce extensions. We
142
 
143
  == Changelog ==
144
 
 
 
 
145
  = 4.0.2 =
146
  * Added a troubleshooting option to fix a problem with incorrectly translated product_type terms revealed by upgrading to WordPress 4.7
147
 
5
  License: GPLv2
6
  Requires at least: 3.9
7
  Tested up to: 4.7
8
+ Stable tag: 4.0.3
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
142
 
143
  == Changelog ==
144
 
145
+ = 4.0.3 =
146
+ * Fixed fatal error caused by syntax incompatible with PHP versions prior 5.5
147
+
148
  = 4.0.2 =
149
  * Added a troubleshooting option to fix a problem with incorrectly translated product_type terms revealed by upgrading to WordPress 4.7
150
 
wpml-woocommerce.php CHANGED
@@ -6,12 +6,12 @@
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com/
8
  Text Domain: woocommerce-multilingual
9
- Version: 4.0.2
10
  */
11
 
12
  if( defined( 'WCML_VERSION' ) ) return;
13
 
14
- define( 'WCML_VERSION', '4.0.2' );
15
  define( 'WCML_PLUGIN_PATH', dirname( __FILE__ ) );
16
  define( 'WCML_PLUGIN_FOLDER', basename( WCML_PLUGIN_PATH ) );
17
  define( 'WCML_LOCALE_PATH', WCML_PLUGIN_PATH . '/locale' );
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com/
8
  Text Domain: woocommerce-multilingual
9
+ Version: 4.0.3
10
  */
11
 
12
  if( defined( 'WCML_VERSION' ) ) return;
13
 
14
+ define( 'WCML_VERSION', '4.0.3' );
15
  define( 'WCML_PLUGIN_PATH', dirname( __FILE__ ) );
16
  define( 'WCML_PLUGIN_FOLDER', basename( WCML_PLUGIN_PATH ) );
17
  define( 'WCML_LOCALE_PATH', WCML_PLUGIN_PATH . '/locale' );