Version Description
- Fixed unexpected checkbox behaviors due to jQuery changes in WP 5.5.
Download this release
Release Info
Developer | sergey.r |
Plugin | WooCommerce Multilingual – run WooCommerce with WPML |
Version | 4.10.1 |
Comparing to | |
See all releases |
Code changes from version 4.10.0 to 4.10.1
- changelog/4.10.1.md +2 -0
- changelog/4.9.1.md +0 -5
- readme.txt +5 -5
- res/js/exchange-rates.js +1 -1
- res/js/exchange-rates.min.js +1 -1
- res/js/multi-currency.js +1 -1
- res/js/multi-currency.min.js +1 -1
- res/js/trnsl_interface_dialog_warning.js +1 -1
- res/js/trnsl_interface_dialog_warning.min.js +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- wpml-woocommerce.php +2 -2
changelog/4.10.1.md
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
# Fixes
|
2 |
+
* Fixed unexpected checkbox behaviors due to jQuery changes in WP 5.5.
|
changelog/4.9.1.md
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
# Features
|
2 |
-
* [wcml-3256] Updated the translations.
|
3 |
-
|
4 |
-
# Fixes
|
5 |
-
* [wcml-3257] Fix fatal error when WooCommerce not activated.
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: CMS, woocommerce, commerce, ecommerce, e-commerce, products, WPML, multili
|
|
5 |
License: GPLv2
|
6 |
Requires at least: 4.7
|
7 |
Tested up to: 5.5
|
8 |
-
Stable tag: 4.10.
|
9 |
Requires PHP: 5.6
|
10 |
|
11 |
Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
|
@@ -138,6 +138,10 @@ WooCommerce Multilingual is compatible with all major WooCommerce extensions. We
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
|
|
|
|
|
|
|
|
141 |
= 4.10.0 =
|
142 |
* Currencies and payment options based on location.
|
143 |
* Fixed notice after WooCommerce Currency was changed.
|
@@ -160,10 +164,6 @@ WooCommerce Multilingual is compatible with all major WooCommerce extensions. We
|
|
160 |
* Fixed no products on secondary language shop page if default language shop page contains special symbols.
|
161 |
* Fixed a performance issue due to comments filtering.
|
162 |
|
163 |
-
= 4.9.1 =
|
164 |
-
* Updated the translations.
|
165 |
-
* Fix fatal error when WooCommerce not activated.
|
166 |
-
|
167 |
= 4.9.0 =
|
168 |
* Added new hook to Gravity Forms compatibility class.
|
169 |
* Manual shipping prices in secondary currencies.
|
5 |
License: GPLv2
|
6 |
Requires at least: 4.7
|
7 |
Tested up to: 5.5
|
8 |
+
Stable tag: 4.10.1
|
9 |
Requires PHP: 5.6
|
10 |
|
11 |
Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
|
138 |
|
139 |
== Changelog ==
|
140 |
|
141 |
+
|
142 |
+
= 4.10.1 =
|
143 |
+
* Fixed unexpected checkbox behaviors due to jQuery changes in WP 5.5.
|
144 |
+
|
145 |
= 4.10.0 =
|
146 |
* Currencies and payment options based on location.
|
147 |
* Fixed notice after WooCommerce Currency was changed.
|
164 |
* Fixed no products on secondary language shop page if default language shop page contains special symbols.
|
165 |
* Fixed a performance issue due to comments filtering.
|
166 |
|
|
|
|
|
|
|
|
|
167 |
= 4.9.0 =
|
168 |
* Added new hook to Gravity Forms compatibility class.
|
169 |
* Manual shipping prices in secondary currencies.
|
res/js/exchange-rates.js
CHANGED
@@ -17,7 +17,7 @@ jQuery( function($){
|
|
17 |
|
18 |
toggleManualAutomatic: function(){
|
19 |
|
20 |
-
if($(this).
|
21 |
$('#exchange-rates-online-wrap').fadeIn();
|
22 |
}else{
|
23 |
$('#exchange-rates-online-wrap').fadeOut();
|
17 |
|
18 |
toggleManualAutomatic: function(){
|
19 |
|
20 |
+
if($(this).prop('checked')){
|
21 |
$('#exchange-rates-online-wrap').fadeIn();
|
22 |
}else{
|
23 |
$('#exchange-rates-online-wrap').fadeOut();
|
res/js/exchange-rates.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(
|
1 |
+
jQuery(function($){WCMLExchangeRates={init:function(){$("#online-exchange-rates").on("change","#exchange-rates-automatic",WCMLExchangeRates.toggleManualAutomatic);$("#online-exchange-rates").on("click","#update-rates-manually",WCMLExchangeRates.updateRatesManually);$("#online-exchange-rates").on("change","input[name=exchange-rates-service]",WCMLExchangeRates.selectService);$("#online-exchange-rates").on("change","input[name=update-schedule]",WCMLExchangeRates.updateFrequency);WCMLExchangeRates.selectedService=$("input[name=exchange-rates-service]:checked").val();$("#online-exchange-rates").on("change","input[name=exchange-rates-service]",WCMLExchangeRates.toggleUpdateManuallyButton);$("#online-exchange-rates").on("change","input[name=lifting_charge]",WCMLExchangeRates.toggleUpdateManuallyButton)},toggleManualAutomatic:function(){if($(this).prop("checked")){$("#exchange-rates-online-wrap").fadeIn()}else{$("#exchange-rates-online-wrap").fadeOut()}},updateRatesManually:function(){var updateButton=$(this);$("#exchange-rates-error").html("").hide();$("#update-rates-spinner").css({visibility:"visible"});$(".exchange-rates-sources .notice-error").html("").hide();updateButton.attr("disabled","disabled");$.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"wcml_update_exchange_rates",wcml_nonce:$("#update-exchange-rates-nonce").val()},success:function(response){if(response.success){$("#exchange-rates-success").fadeIn();$("#update-rates-time .time").html(response.last_updated)}else{if(response.error){var serviceErrorWrap=$("#service-error-"+response.service);serviceErrorWrap.html(response.error).fadeIn()}}$("#update-rates-spinner").css({visibility:"hidden"});updateButton.removeAttr("disabled");for(code in response.rates){$("#currency_row_"+code+" span.rate").hide().html(response.rates[code]).fadeIn("slow")}}})},toggleUpdateManuallyButton:function(){if(WCMLExchangeRates.selectedService==$(this).val()){$("#update-rates-manually").removeAttr("disabled").next(".wcml-tip").hide()}else{$("#update-rates-manually").attr("disabled","disabled").next(".wcml-tip").show().tipTip(WCML_Tooltip.default_args)}},selectService:function(){$(".service-details-wrap").hide();$(this).parent().find(".service-details-wrap").show()},updateFrequency:function(){$('[name="update-weekly-day"], [name="update-monthly-day"]').attr("disabled","disabled");$(this).parent().find("select").removeAttr("disabled")}};WCMLExchangeRates.init()});
|
res/js/multi-currency.js
CHANGED
@@ -37,7 +37,7 @@ jQuery( function($){
|
|
37 |
|
38 |
$('#multi_currency_independent').change(function(){
|
39 |
|
40 |
-
if($(this).
|
41 |
if($('#currency_mode').val()){
|
42 |
$('#currency-switcher, #currency-switcher-widget, #currency-switcher-product, #multi-currency-per-language-details, #online-exchange-rates').fadeIn();
|
43 |
}else{
|
37 |
|
38 |
$('#multi_currency_independent').change(function(){
|
39 |
|
40 |
+
if($(this).prop('checked')){
|
41 |
if($('#currency_mode').val()){
|
42 |
$('#currency-switcher, #currency-switcher-widget, #currency-switcher-product, #multi-currency-per-language-details, #online-exchange-rates').fadeIn();
|
43 |
}else{
|
res/js/multi-currency.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function($){WCML_Multi_Currency={_currency_languages_saving:0,init:function(){$(document).ready(function(){WCML_Multi_Currency.setup_multi_currency_toggle();WCML_Multi_Currency.setup_currencies_sorting();if($("#wcml_mc_options").length){WCML_Multi_Currency.wcml_mc_form_submitted=false;WCML_Multi_Currency.read_form_fields_status();window.onbeforeunload=function(e){if(!WCML_Multi_Currency.wcml_mc_form_submitted&&WCML_Multi_Currency.form_fields_changed()){return $("#wcml_warn_message").val()}};$("#wcml_mc_options").on("submit",function(){WCML_Multi_Currency.wcml_mc_form_submitted=true})}})},setup_multi_currency_toggle:function(){$("#multi_currency_independent").change(function(){if($(this).
|
1 |
+
jQuery(function($){WCML_Multi_Currency={_currency_languages_saving:0,init:function(){$(document).ready(function(){WCML_Multi_Currency.setup_multi_currency_toggle();WCML_Multi_Currency.setup_currencies_sorting();if($("#wcml_mc_options").length){WCML_Multi_Currency.wcml_mc_form_submitted=false;WCML_Multi_Currency.read_form_fields_status();window.onbeforeunload=function(e){if(!WCML_Multi_Currency.wcml_mc_form_submitted&&WCML_Multi_Currency.form_fields_changed()){return $("#wcml_warn_message").val()}};$("#wcml_mc_options").on("submit",function(){WCML_Multi_Currency.wcml_mc_form_submitted=true})}})},setup_multi_currency_toggle:function(){$("#multi_currency_independent").change(function(){if($(this).prop("checked")){if($("#currency_mode").val()){$("#currency-switcher, #currency-switcher-widget, #currency-switcher-product, #multi-currency-per-language-details, #online-exchange-rates").fadeIn()}else{$("#multi-currency-per-language-details").fadeIn()}}else{$("#currency-switcher, #currency-switcher-widget, #currency-switcher-product, #multi-currency-per-language-details, #online-exchange-rates").fadeOut()}})},setup_currencies_sorting:function(){$("#wcml_currencies_order").sortable({update:function(){var currencies_order=[];$("#wcml_currencies_order").find("li").each(function(){currencies_order.push($(this).attr("cur"))});$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"wcml_currencies_order",wcml_nonce:$("#wcml_currencies_order_order_nonce").val(),order:currencies_order.join(";")},success:function(resp){if(resp.success){fadeInAjxResp(".wcml_currencies_order_ajx_resp",resp.data.message);$(".wcml-ui-dialog").each(function(){WCML_Currency_Switcher_Settings.currency_switcher_preview($(this))})}}})}})},read_form_fields_status:function(){this.mc_form_status=$("#wcml_mc_options").serialize()},form_fields_changed:function(){return this.mc_form_status!=$("#wcml_mc_options").serialize()}};WCML_Multi_Currency.init()});
|
res/js/trnsl_interface_dialog_warning.js
CHANGED
@@ -8,7 +8,7 @@ jQuery(document).ready(function ($) {
|
|
8 |
var buttonsOpts = {};
|
9 |
buttonsOpts[ dialogBox.find('.cancel-button').val() ] = function () {
|
10 |
jQuery(this).dialog("close");
|
11 |
-
jQuery('input[name="trnsl_interface"][value="1"]').
|
12 |
};
|
13 |
buttonsOpts[ dialogBox.find('.ok-button').val() ] = function () {
|
14 |
jQuery(this).dialog("close");
|
8 |
var buttonsOpts = {};
|
9 |
buttonsOpts[ dialogBox.find('.cancel-button').val() ] = function () {
|
10 |
jQuery(this).dialog("close");
|
11 |
+
jQuery('input[name="trnsl_interface"][value="1"]').prop('checked', true);
|
12 |
};
|
13 |
buttonsOpts[ dialogBox.find('.ok-button').val() ] = function () {
|
14 |
jQuery(this).dialog("close");
|
res/js/trnsl_interface_dialog_warning.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(
|
1 |
+
jQuery(document).ready(function($){$(document).on("click",'input[name="trnsl_interface"]',function(){if($(this).val()==0){jQuery(document).ready(function(){var dialogBox=jQuery("#wcml-translation-interface-dialog-confirm");var buttonsOpts={};buttonsOpts[dialogBox.find(".cancel-button").val()]=function(){jQuery(this).dialog("close");jQuery('input[name="trnsl_interface"][value="1"]').prop("checked",true)};buttonsOpts[dialogBox.find(".ok-button").val()]=function(){jQuery(this).dialog("close")};dialogBox.dialog({resizable:false,draggable:false,height:"auto",width:600,modal:true,closeOnEscape:false,dialogClass:"otgs-ui-dialog",create:function(){},open:function(event,ui){jQuery(".ui-dialog-titlebar-close",ui.dialog|ui).hide();jQuery("#jquery-ui-style-css").attr("disabled","disabled")},close:function(event,ui){jQuery("#jquery-ui-style-css").removeAttr("disabled")},buttons:buttonsOpts})})}})});
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitea686a44d95e93f4bb5f29a5fc89dedb::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitd2b35ade68baaec46cf22173175ace77
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitd2b35ade68baaec46cf22173175ace77
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitea686a44d95e93f4bb5f29a5fc89dedb
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitea686a44d95e93f4bb5f29a5fc89dedb', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitea686a44d95e93f4bb5f29a5fc89dedb', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitea686a44d95e93f4bb5f29a5fc89dedb::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitea686a44d95e93f4bb5f29a5fc89dedb::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequireea686a44d95e93f4bb5f29a5fc89dedb($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequireea686a44d95e93f4bb5f29a5fc89dedb($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
|
@@ -260,9 +260,9 @@ class ComposerStaticInitd2b35ade68baaec46cf22173175ace77
|
|
260 |
public static function getInitializer(ClassLoader $loader)
|
261 |
{
|
262 |
return \Closure::bind(function () use ($loader) {
|
263 |
-
$loader->prefixLengthsPsr4 =
|
264 |
-
$loader->prefixDirsPsr4 =
|
265 |
-
$loader->classMap =
|
266 |
|
267 |
}, null, ClassLoader::class);
|
268 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitea686a44d95e93f4bb5f29a5fc89dedb
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
|
260 |
public static function getInitializer(ClassLoader $loader)
|
261 |
{
|
262 |
return \Closure::bind(function () use ($loader) {
|
263 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitea686a44d95e93f4bb5f29a5fc89dedb::$prefixLengthsPsr4;
|
264 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitea686a44d95e93f4bb5f29a5fc89dedb::$prefixDirsPsr4;
|
265 |
+
$loader->classMap = ComposerStaticInitea686a44d95e93f4bb5f29a5fc89dedb::$classMap;
|
266 |
|
267 |
}, null, ClassLoader::class);
|
268 |
}
|
wpml-woocommerce.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Text Domain: woocommerce-multilingual
|
9 |
* Requires at least: 4.7
|
10 |
* Tested up to: 5.5
|
11 |
-
* Version: 4.10.
|
12 |
* Plugin Slug: woocommerce-multilingual
|
13 |
* WC requires at least: 3.3.0
|
14 |
* WC tested up to: 4.4
|
@@ -33,7 +33,7 @@ if ( ! $wpml_php_version_check->is_ok() ) {
|
|
33 |
return;
|
34 |
}
|
35 |
|
36 |
-
define( 'WCML_VERSION', '4.10.
|
37 |
define( 'WCML_PLUGIN_PATH', dirname( __FILE__ ) );
|
38 |
define( 'WCML_PLUGIN_FOLDER', basename( WCML_PLUGIN_PATH ) );
|
39 |
define( 'WCML_LOCALE_PATH', WCML_PLUGIN_PATH . '/locale' );
|
8 |
* Text Domain: woocommerce-multilingual
|
9 |
* Requires at least: 4.7
|
10 |
* Tested up to: 5.5
|
11 |
+
* Version: 4.10.1
|
12 |
* Plugin Slug: woocommerce-multilingual
|
13 |
* WC requires at least: 3.3.0
|
14 |
* WC tested up to: 4.4
|
33 |
return;
|
34 |
}
|
35 |
|
36 |
+
define( 'WCML_VERSION', '4.10.1' );
|
37 |
define( 'WCML_PLUGIN_PATH', dirname( __FILE__ ) );
|
38 |
define( 'WCML_PLUGIN_FOLDER', basename( WCML_PLUGIN_PATH ) );
|
39 |
define( 'WCML_LOCALE_PATH', WCML_PLUGIN_PATH . '/locale' );
|