Skip to content

Commit c1ff97f

Browse files
committed
1 parent 3a49215 commit c1ff97f

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.2.2
2+
3+
## Improvements
4+
5+
* Update deprecated filter.
6+
17
# 2.2.1
28

39
## Improvements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Multilingual Tools
22

3-
![Latest Stable Version](https://img.shields.io/badge/stable-2.2.1-green.svg?style=flat-squar)
3+
![Latest Stable Version](https://img.shields.io/badge/stable-2.2.2-green.svg?style=flat-squar)
44
![License](https://img.shields.io/badge/license-GPLv2-red.svg?style=flat-squar)
55

66
Multilingual Tools are set of tools related to [WPML](https://wpml.org) plugin bundle. Created with tendency to ease multilingual testing process, and help out WordPress developers who applied to [GoGlobal Program](https://wpml.org/documentation/theme-compatibility/go-global-program/).

inc/wpml-modify-duplicate-strings.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Class Modify_Duplicate_Strings
55
*
6-
* Example how to use filter icl_duplicate_generic_string
6+
* Example how to use filter wpml_duplicate_generic_string
77
* to modify strings (title, content, terms, custom fields) for duplicates
88
*
99
*/
@@ -15,7 +15,7 @@ class Modify_Duplicate_Strings {
1515
public function __construct( $filter = array(), $template = '[%language_name%] %original_string%' ) {
1616
$this->filter = $filter;
1717
$this->template = $template;
18-
add_filter( 'icl_duplicate_generic_string', array( $this, 'duplicate_generic_string' ), 10, 3 );
18+
add_filter( 'wpml_duplicate_generic_string', array( $this, 'duplicate_generic_string' ), 10, 3 );
1919
}
2020

2121
/**

multilingual-tools.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
Description: Set of tools to test themes and plugins multilingual compatibility.
66
Author: OnTheGoSystems
77
Author URI: https://www.onthegosystems.com/
8-
Version: 2.2.1
8+
Version: 2.2.2
99
*/
1010

11-
define( 'WPML_CTT_VERSION' , '2.2.1' );
11+
define( 'WPML_CTT_VERSION' , '2.2.2' );
1212
define( 'WPML_CTT_PATH' , dirname( __FILE__ ) );
1313
define( 'WPML_CTT_ABS_PATH' , plugin_dir_path( __FILE__ ) );
1414
define( 'WPML_CTT_FOLDER' , basename( WPML_CTT_PATH ) );

0 commit comments

Comments
 (0)