WooCommerce Multilingual – run WooCommerce with WPML - Version 4.2.8.1

Version Description

  • Fix error with WPML < 3.9
Download this release

Release Info

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

Code changes from version 4.2.8 to 4.2.8.1

changelog/4.2.8.1.md ADDED
@@ -0,0 +1,2 @@
 
 
1
+ # Fixes
2
+ * [wcml-2285] Fix error with WPML < 3.9
inc/class-wcml-ajax-setup.php CHANGED
@@ -117,7 +117,7 @@ class WCML_Ajax_Setup{
117
  }
118
 
119
  public function wcml_localize_woocommerce_on_ajax() {
120
- $action = filter_var( $_POST['action'], FILTER_SANITIZE_STRING );
121
  $is_ajax_action = $action
122
  && in_array( $action,
123
  array(
117
  }
118
 
119
  public function wcml_localize_woocommerce_on_ajax() {
120
+ $action = isset( $_POST['action'] ) ? filter_var( $_POST['action'], FILTER_SANITIZE_STRING ) : false;
121
  $is_ajax_action = $action
122
  && in_array( $action,
123
  array(
inc/class-wcml-dependencies.php CHANGED
@@ -362,7 +362,7 @@ class WCML_Dependencies{
362
  $effective_config_value = $sitepress_settings['taxonomies_sync_option'][$tx['value']];
363
  $correct_config_value = $tx['attr']['translate'];
364
 
365
- if($sitepress->is_display_as_translated_taxonomy( $tx['value'] ) ){
366
  $correct_config_value = WPML_CONTENT_TYPE_DISPLAY_AS_IF_TRANSLATED;
367
  }
368
 
362
  $effective_config_value = $sitepress_settings['taxonomies_sync_option'][$tx['value']];
363
  $correct_config_value = $tx['attr']['translate'];
364
 
365
+ if( method_exists( $sitepress, 'is_display_as_translated_taxonomy' ) && $sitepress->is_display_as_translated_taxonomy( $tx['value'] ) ){
366
  $correct_config_value = WPML_CONTENT_TYPE_DISPLAY_AS_IF_TRANSLATED;
367
  }
368
 
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.9.1
8
- Stable tag: 4.2.8
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.2.8 =
146
  * Visual Bakery Composer compatibility issue - some strings displays in default language instead on user admin language
147
  * Variable product with local attributes displays all variations values set to "any" with "use translation if available or fallback to default language" enabled for products
5
  License: GPLv2
6
  Requires at least: 3.9
7
  Tested up to: 4.9.1
8
+ Stable tag: 4.2.8.1
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
142
 
143
  == Changelog ==
144
 
145
+ = 4.2.8.1 =
146
+ * Fix error with WPML < 3.9
147
+
148
  = 4.2.8 =
149
  * Visual Bakery Composer compatibility issue - some strings displays in default language instead on user admin language
150
  * Variable product with local attributes displays all variations values set to "any" with "use translation if available or fallback to default language" enabled for products
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit09db18301760424c7dcc21b33162e94c::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit94846da5dca148bbe59dc91f3874e6c1::getLoader();
vendor/autoload_52.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
- return ComposerAutoloaderInitc6092e313fbc70ad1c34def5310404b7::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInit95429877b052971924172de4a0f1fb41::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit09db18301760424c7dcc21b33162e94c
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit09db18301760424c7dcc21b33162e94c
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit09db18301760424c7dcc21b33162e94c', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit09db18301760424c7dcc21b33162e94c', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit09db18301760424c7dcc21b33162e94c::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit94846da5dca148bbe59dc91f3874e6c1
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit94846da5dca148bbe59dc91f3874e6c1', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit94846da5dca148bbe59dc91f3874e6c1', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit94846da5dca148bbe59dc91f3874e6c1::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_real_52.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
- class ComposerAutoloaderInitc6092e313fbc70ad1c34def5310404b7 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitc6092e313fbc70ad1c34def5310404b7 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitc6092e313fbc70ad1c34def5310404b7', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitc6092e313fbc70ad1c34def5310404b7', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
+ class ComposerAutoloaderInit95429877b052971924172de4a0f1fb41 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit95429877b052971924172de4a0f1fb41', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit95429877b052971924172de4a0f1fb41', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit09db18301760424c7dcc21b33162e94c
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -483,10 +483,10 @@ class ComposerStaticInit09db18301760424c7dcc21b33162e94c
483
  public static function getInitializer(ClassLoader $loader)
484
  {
485
  return \Closure::bind(function () use ($loader) {
486
- $loader->prefixLengthsPsr4 = ComposerStaticInit09db18301760424c7dcc21b33162e94c::$prefixLengthsPsr4;
487
- $loader->prefixDirsPsr4 = ComposerStaticInit09db18301760424c7dcc21b33162e94c::$prefixDirsPsr4;
488
- $loader->prefixesPsr0 = ComposerStaticInit09db18301760424c7dcc21b33162e94c::$prefixesPsr0;
489
- $loader->classMap = ComposerStaticInit09db18301760424c7dcc21b33162e94c::$classMap;
490
 
491
  }, null, ClassLoader::class);
492
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit94846da5dca148bbe59dc91f3874e6c1
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
483
  public static function getInitializer(ClassLoader $loader)
484
  {
485
  return \Closure::bind(function () use ($loader) {
486
+ $loader->prefixLengthsPsr4 = ComposerStaticInit94846da5dca148bbe59dc91f3874e6c1::$prefixLengthsPsr4;
487
+ $loader->prefixDirsPsr4 = ComposerStaticInit94846da5dca148bbe59dc91f3874e6c1::$prefixDirsPsr4;
488
+ $loader->prefixesPsr0 = ComposerStaticInit94846da5dca148bbe59dc91f3874e6c1::$prefixesPsr0;
489
+ $loader->classMap = ComposerStaticInit94846da5dca148bbe59dc91f3874e6c1::$classMap;
490
 
491
  }, null, ClassLoader::class);
492
  }
wpml-woocommerce.php CHANGED
@@ -8,7 +8,7 @@
8
  Text Domain: woocommerce-multilingual
9
  Requires at least: 3.9
10
  Tested up to: 4.9
11
- Version: 4.2.8
12
  WC requires at least: 2.1.0
13
  WC tested up to: 3.2.5
14
  */
@@ -17,7 +17,7 @@ if ( defined( 'WCML_VERSION' ) ) {
17
  return;
18
  }
19
 
20
- define( 'WCML_VERSION', '4.2.8' );
21
  define( 'WCML_PLUGIN_PATH', dirname( __FILE__ ) );
22
  define( 'WCML_PLUGIN_FOLDER', basename( WCML_PLUGIN_PATH ) );
23
  define( 'WCML_LOCALE_PATH', WCML_PLUGIN_PATH . '/locale' );
8
  Text Domain: woocommerce-multilingual
9
  Requires at least: 3.9
10
  Tested up to: 4.9
11
+ Version: 4.2.8.1
12
  WC requires at least: 2.1.0
13
  WC tested up to: 3.2.5
14
  */
17
  return;
18
  }
19
 
20
+ define( 'WCML_VERSION', '4.2.8.1' );
21
  define( 'WCML_PLUGIN_PATH', dirname( __FILE__ ) );
22
  define( 'WCML_PLUGIN_FOLDER', basename( WCML_PLUGIN_PATH ) );
23
  define( 'WCML_LOCALE_PATH', WCML_PLUGIN_PATH . '/locale' );