Version Description
- Avoid minification of Google Translate javascript library by LiteSpeed Cache and WP Rocket cache plugins in the free version
Download this release
Release Info
Developer | edo888 |
Plugin | Translate WordPress with GTranslate |
Version | 2.9.3 |
Comparing to | |
See all releases |
Code changes from version 2.9.2 to 2.9.3
- gtranslate.php +17 -1
- readme.txt +4 -1
gtranslate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: https://gtranslate.io/?xyz=998
|
5 |
Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://wordpress.org/support/plugin/gtranslate">GTranslate Support</a>.
|
6 |
-
Version: 2.9.
|
7 |
Author: Translate AI Multilingual Solutions
|
8 |
Author URI: https://gtranslate.io
|
9 |
Text Domain: gtranslate
|
@@ -2558,4 +2558,20 @@ if($data['enterprise_version']) {
|
|
2558 |
}
|
2559 |
|
2560 |
add_filter('allowed_redirect_hosts', 'gt_allowed_redirect_hosts');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2561 |
}
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: https://gtranslate.io/?xyz=998
|
5 |
Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://wordpress.org/support/plugin/gtranslate">GTranslate Support</a>.
|
6 |
+
Version: 2.9.3
|
7 |
Author: Translate AI Multilingual Solutions
|
8 |
Author URI: https://gtranslate.io
|
9 |
Text Domain: gtranslate
|
2558 |
}
|
2559 |
|
2560 |
add_filter('allowed_redirect_hosts', 'gt_allowed_redirect_hosts');
|
2561 |
+
}
|
2562 |
+
|
2563 |
+
// exclude javascript minification by cache plugins for free version
|
2564 |
+
if(($data['enterprise_version'] or $data['pro_version']) == false) {
|
2565 |
+
function cache_exclude_js_gtranslate($excluded_js) {
|
2566 |
+
if(is_array($excluded_js) or empty($excluded_js))
|
2567 |
+
$excluded_js[] = 'translate.google.com/translate_a/element.js';
|
2568 |
+
|
2569 |
+
return $excluded_js;
|
2570 |
+
}
|
2571 |
+
|
2572 |
+
// LiteSpeed Cache
|
2573 |
+
add_filter('litespeed_optimize_js_excludes', 'cache_exclude_js_gtranslate');
|
2574 |
+
|
2575 |
+
// WP Rocket
|
2576 |
+
add_filter('rocket_exclude_js', 'cache_exclude_js_gtranslate');
|
2577 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Author: Translate AI Multilingual Solutions
|
|
4 |
Tags: translate, translate wordpress, multilingual, translation, translate language, bilingual, localization, translation proxy, localisation, multilanguage, google translate
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 2.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Donate link: https://gtranslate.io/?xyz=998#pricing
|
@@ -251,6 +251,9 @@ If you want us to translate your website professionally or provide you a proofre
|
|
251 |
8. User Dashboard
|
252 |
|
253 |
== Changelog ==
|
|
|
|
|
|
|
254 |
= 2.9.2 =
|
255 |
* Smoother scrolling for Nice dropdown with flags language selector widget look
|
256 |
|
4 |
Tags: translate, translate wordpress, multilingual, translation, translate language, bilingual, localization, translation proxy, localisation, multilanguage, google translate
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 2.9.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Donate link: https://gtranslate.io/?xyz=998#pricing
|
251 |
8. User Dashboard
|
252 |
|
253 |
== Changelog ==
|
254 |
+
= 2.9.3 =
|
255 |
+
* Avoid minification of Google Translate javascript library by LiteSpeed Cache and WP Rocket cache plugins in the free version
|
256 |
+
|
257 |
= 2.9.2 =
|
258 |
* Smoother scrolling for Nice dropdown with flags language selector widget look
|
259 |
|