Skip to content

Commit 982c74e

Browse files
strategiovukvukovich
authored andcommitted
Release 2.2.3
* Adjust jQuery code for WP 5.6 https://onthegosystems.myjetbrains.com/youtrack/issue/wpmlga-783
1 parent e0c2f3c commit 982c74e

4 files changed

Lines changed: 61 additions & 58 deletions

File tree

CHANGELOG.md

Lines changed: 43 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,129 @@
1+
# 2.2.3
2+
3+
## Improvements
4+
5+
- Update jQuery changes.
6+
17
# 2.2.2
28

39
## Improvements
410

5-
* Update deprecated filter.
11+
- Update deprecated filter.
612

713
# 2.2.1
814

915
## Improvements
1016

11-
* Added strings and contexts count.
17+
- Added strings and contexts count.
1218

1319
# 2.2.0
1420

1521
## Improvements
1622

17-
* Added order options by name.
18-
* Added support for "display-as-translated"
23+
- Added order options by name.
24+
- Added support for "display-as-translated"
1925

2026
## Bugfix
2127

22-
* Fixed auto translate strings issue with large number of strings.
28+
- Fixed auto translate strings issue with large number of strings.
2329

2430
# 2.1.0
2531

2632
## Features
2733

28-
* Add shortcode helper.
34+
- Add shortcode helper.
2935

3036
# 2.0.0
3137

3238
## Improvements
3339

34-
* Add a Overview screen which displays loaded configuration and validation errors.
40+
- Add a Overview screen which displays loaded configuration and validation errors.
3541

3642
# 1.4.0
3743

3844
## Improvements
3945

40-
* Add "Copy once" option for custom fields.
46+
- Add "Copy once" option for custom fields.
4147

4248
# 1.3.1
4349

4450
## Bugfix
4551

46-
* Fix attribute parent node.
52+
- Fix attribute parent node.
4753

4854
# 1.3.0
4955

5056
## Features
5157

52-
* Add option for generating shortcodes.
58+
- Add option for generating shortcodes.
5359

5460
## Improvements
5561

56-
* Refactor XML generator code.
62+
- Refactor XML generator code.
5763

5864
# 1.2.3
5965

6066
## Bugfix
6167

62-
* Fix "Translation management" notice
68+
- Fix "Translation management" notice
6369

6470
# 1.2.2
6571

6672
## Improvements
6773

68-
* Update composer file
74+
- Update composer file
6975

7076
# 1.2.1
7177

7278
## Improvements
7379

74-
* Add composer file.
75-
* Changelog style updated.
76-
* Minor content duplication code refactoring
80+
- Add composer file.
81+
- Changelog style updated.
82+
- Minor content duplication code refactoring
7783

7884
## Bugfix
7985

80-
* Fix automatic child selection in generator.
81-
* Fix JS object parsing.
82-
* Fix maximum execution time fatal error.
83-
* Fix duplicate post content special chars conversion.
84-
* Remove alt and title for images in content option.
86+
- Fix automatic child selection in generator.
87+
- Fix JS object parsing.
88+
- Fix maximum execution time fatal error.
89+
- Fix duplicate post content special chars conversion.
90+
- Remove alt and title for images in content option.
8591

8692
# 1.2
8793

8894
## Improvements
8995

90-
* Major code improvements.
91-
* Add notice for successfully saved file in theme folder.
92-
* Add responsive layout.
93-
* Add dropdown for context selection.
94-
* Add dropdown option count.
95-
* Add flags for active languages.
96-
* Add new icon.
96+
- Major code improvements.
97+
- Add notice for successfully saved file in theme folder.
98+
- Add responsive layout.
99+
- Add dropdown for context selection.
100+
- Add dropdown option count.
101+
- Add flags for active languages.
102+
- Add new icon.
97103

98104
# 1.1.2
99105

100106
## Improvements
101107

102-
* Add checkboxes instead of option list when selecting contexts for translation.
103-
* Add "Toggle All" for admin text checkboxes.
104-
* Some code style improvements.
105-
* Checkboxes are now automatically checked on radio button change.
108+
- Add checkboxes instead of option list when selecting contexts for translation.
109+
- Add "Toggle All" for admin text checkboxes.
110+
- Some code style improvements.
111+
- Checkboxes are now automatically checked on radio button change.
106112

107113
## Bugfix
108114

109-
* WP Options with 'autoload' set as 'no' were not listed on configuration generator screen.
110-
* Escaped special characters in mt-script.js
111-
* Remove notice, checked strings inputs are remembered.
115+
- WP Options with 'autoload' set as 'no' were not listed on configuration generator screen.
116+
- Escaped special characters in mt-script.js
117+
- Remove notice, checked strings inputs are remembered.
112118

113119
# 1.1.1
114120

115121
## Improvements
116122

117-
* Add necessary sanitization & validation.
123+
- Add necessary sanitization & validation.
118124

119125
# 1.1
120126

121127
## Features
122128

123-
* Add option for generating wpml-config.xml files.
129+
- Add option for generating wpml-config.xml files.

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
# Multilingual Tools
22

3-
![Latest Stable Version](https://img.shields.io/badge/stable-2.2.2-green.svg?style=flat-squar)
3+
![Latest Stable Version](https://img.shields.io/badge/stable-2.2.3-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/).
77

8-
98
## Key features
109

11-
- Auto generate strings for translations
12-
- Add language information to post duplicate
13-
- Generate WPML config file ( wpml-config.xml )
14-
10+
- Auto generate strings for translations
11+
- Add language information to post duplicate
12+
- Generate WPML config file ( wpml-config.xml )
1513

1614
## Requirements
1715

1816
For this plugin to work you will need:
1917

20-
- WPML Multilingual CMS
21-
- WPML String Translation
22-
- WPML Translation Management
18+
- WPML Multilingual CMS
19+
- WPML String Translation
20+
- WPML Translation Management
2321

2422
All plugins can be downloaded from [WPML.org](https://wpml.org)
2523

26-
2724
## Contribute
2825

2926
If you spot any bug or have idea for useful feature feel free to contribute via [GitHub](https://github.com/OnTheGoSystems/multilingual-tools).

multilingual-tools.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
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.2
8+
Version: 2.2.3
99
*/
1010

11-
define( 'WPML_CTT_VERSION' , '2.2.2' );
12-
define( 'WPML_CTT_PATH' , dirname( __FILE__ ) );
13-
define( 'WPML_CTT_ABS_PATH' , plugin_dir_path( __FILE__ ) );
14-
define( 'WPML_CTT_FOLDER' , basename( WPML_CTT_PATH ) );
15-
define( 'WPML_CTT_PLUGIN_URL', plugins_url( basename( dirname( __FILE__ ) ) ) );
11+
define('WPML_CTT_VERSION', '2.2.3');
12+
define('WPML_CTT_PATH', dirname(__FILE__));
13+
define('WPML_CTT_ABS_PATH', plugin_dir_path(__FILE__));
14+
define('WPML_CTT_FOLDER', basename(WPML_CTT_PATH));
15+
define('WPML_CTT_PLUGIN_URL', plugins_url(basename(dirname(__FILE__))));
1616

1717
require WPML_CTT_PATH . '/inc/wpml-compatibility-test-tools-messages.class.php';
1818
require WPML_CTT_PATH . '/inc/wpml-compatibility-test-tools.functions.php';
@@ -26,10 +26,10 @@
2626
require_once WPML_CTT_PATH . '/inc/class-mltools-xml-helper.php';
2727

2828
// Disable informations about ICanLocalize.
29-
if ( !defined( 'ICL_DONT_PROMOTE' ) ) {
30-
define( 'ICL_DONT_PROMOTE', true );
29+
if (!defined('ICL_DONT_PROMOTE')) {
30+
define('ICL_DONT_PROMOTE', true);
3131
}
3232

3333
$WPML_Compatibility_Test_Tools = new WPML_Compatibility_Test_Tools();
3434

35-
add_action( 'mltools_loaded', 'mltools_shortcode_helper_add_hooks' );
35+
add_action('mltools_loaded', 'mltools_shortcode_helper_add_hooks');

res/js/mt-script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jQuery(document).ready(function () {
1+
jQuery(function () {
22

33
var option = [],
44
result = jQuery('#result'),
@@ -62,7 +62,7 @@ jQuery(document).ready(function () {
6262
};
6363

6464
jQuery.post(mt_data.ajax_url, data, function (response) {
65-
var output, data = jQuery.parseJSON(response);
65+
var output, data = JSON.parse(response);
6666

6767
output = '<ul id="tree">';
6868
jQuery.each(data, generateList);

0 commit comments

Comments
 (0)