Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit d40c044

Browse files
committed
Merge branch 'release/2.1.10'
2 parents 6a8687f + 964d0e4 commit d40c044

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

includes/class-wp-multilang.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class WP_Multilang {
2121
*
2222
* @var string
2323
*/
24-
public $version = '2.1.9';
24+
public $version = '2.1.10';
2525

2626
/**
2727
* The single instance of the class.

includes/integrations/class-wpm-acf.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ public function update_value_pro( $value, $post_id, $field ) {
196196
return $value;
197197
}
198198

199-
remove_filter( 'acf/load_value', 'wpm_translate_value', 5 );
199+
remove_filter( 'acf/load_value', 'wpm_translate_value', 6 );
200200
$old_value = get_field( $field['name'], $post_id, false );
201-
add_filter( 'acf/load_value', 'wpm_translate_value', 5 );
201+
add_filter( 'acf/load_value', 'wpm_translate_value', 6 );
202202

203203
$value = wpm_set_new_value( $old_value, $value, $acf_field_config );
204204

@@ -258,9 +258,9 @@ public function update_value( $value, $post_id, $field ) {
258258
}
259259

260260
if ( $translate ) {
261-
remove_filter( 'acf/load_value', 'wpm_translate_value', 5 );
261+
remove_filter( 'acf/load_value', 'wpm_translate_value', 6 );
262262
$old_value = get_field( $field['name'], $post_id, false );
263-
add_filter( 'acf/load_value', 'wpm_translate_value', 5 );
263+
add_filter( 'acf/load_value', 'wpm_translate_value', 6 );
264264

265265
if ( ! wpm_is_ml_value( $value ) ) {
266266
$value = wpm_set_new_value( $old_value, $value, $acf_field_config );

readme.txt

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ If you have opened several browser tabs for editing this post in different langu
200200

201201
== Changelog ==
202202

203+
= 2.1.10 =
204+
* fixed filters priority on removing in ACF integration
205+
203206
= 2.1.9 =
204207
* added WC setting 'woocommerce_bacs_accounts' in translate config
205208
* added support region languages

wp-multilang.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
99
* Text Domain: wp-multilang
1010
* Domain Path: /languages
11-
* Version: 2.1.9
11+
* Version: 2.1.10
1212
* Copyright: © 2017-2018 Valentyn Riaboshtan
1313
*
1414
* @package WPM

0 commit comments

Comments
 (0)