Version Description
- Cross-site scripting (XSS) vulnerability fixed: Only possible for sub-domain, sub-directory paid options with hreflang tags enabled: An attacker can generate a malicious link and if followed by a victim then javascript code can be executed on victim's computer
Download this release
Release Info
| Developer | edo888 |
| Plugin | |
| Version | 6.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 6.0.4 to 6.0.5
- google-language-translator.php +7 -7
- readme.txt +5 -1
google-language-translator.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/*
|
| 3 |
Plugin Name: Google Language Translator
|
| 4 |
Plugin URI: https://gtranslate.io/?xyz=3167
|
| 5 |
-
Version: 6.0.
|
| 6 |
Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
|
| 7 |
Author: Translate AI Multilingual Solutions
|
| 8 |
Author URI: https://gtranslate.io
|
|
@@ -2240,11 +2240,11 @@ if($glt_seo_active == '1' and ($glt_url_structure == 'sub_directory' or $glt_url
|
|
| 2240 |
if($current_url !== false) {
|
| 2241 |
// adding default language
|
| 2242 |
if($default_language === 'iw')
|
| 2243 |
-
echo '<link rel="alternate" hreflang="he" href="'
|
| 2244 |
elseif($default_language === 'jw')
|
| 2245 |
-
echo '<link rel="alternate" hreflang="jv" href="'
|
| 2246 |
else
|
| 2247 |
-
echo '<link rel="alternate" hreflang="'.$default_language.'" href="'
|
| 2248 |
|
| 2249 |
// adding enabled languages
|
| 2250 |
foreach($enabled_languages as $lang) {
|
|
@@ -2258,11 +2258,11 @@ if($glt_seo_active == '1' and ($glt_url_structure == 'sub_directory' or $glt_url
|
|
| 2258 |
|
| 2259 |
if(!empty($href) and $lang != $default_language) {
|
| 2260 |
if($lang === 'iw')
|
| 2261 |
-
echo '<link rel="alternate" hreflang="he" href="'
|
| 2262 |
elseif($lang === 'jw')
|
| 2263 |
-
echo '<link rel="alternate" hreflang="jv" href="'
|
| 2264 |
else
|
| 2265 |
-
echo '<link rel="alternate" hreflang="'.$lang.'" href="'
|
| 2266 |
}
|
| 2267 |
}
|
| 2268 |
}
|
| 2 |
/*
|
| 3 |
Plugin Name: Google Language Translator
|
| 4 |
Plugin URI: https://gtranslate.io/?xyz=3167
|
| 5 |
+
Version: 6.0.5
|
| 6 |
Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
|
| 7 |
Author: Translate AI Multilingual Solutions
|
| 8 |
Author URI: https://gtranslate.io
|
| 2240 |
if($current_url !== false) {
|
| 2241 |
// adding default language
|
| 2242 |
if($default_language === 'iw')
|
| 2243 |
+
echo '<link rel="alternate" hreflang="he" href="'.esc_url($current_url).'" />'."\n";
|
| 2244 |
elseif($default_language === 'jw')
|
| 2245 |
+
echo '<link rel="alternate" hreflang="jv" href="'.esc_url($current_url).'" />'."\n";
|
| 2246 |
else
|
| 2247 |
+
echo '<link rel="alternate" hreflang="'.$default_language.'" href="'.esc_url($current_url).'" />'."\n";
|
| 2248 |
|
| 2249 |
// adding enabled languages
|
| 2250 |
foreach($enabled_languages as $lang) {
|
| 2258 |
|
| 2259 |
if(!empty($href) and $lang != $default_language) {
|
| 2260 |
if($lang === 'iw')
|
| 2261 |
+
echo '<link rel="alternate" hreflang="he" href="'.esc_url($href).'" />'."\n";
|
| 2262 |
elseif($lang === 'jw')
|
| 2263 |
+
echo '<link rel="alternate" hreflang="jv" href="'.esc_url($href).'" />'."\n";
|
| 2264 |
else
|
| 2265 |
+
echo '<link rel="alternate" hreflang="'.$lang.'" href="'.esc_url($href).'" />'."\n";
|
| 2266 |
}
|
| 2267 |
}
|
| 2268 |
}
|
readme.txt
CHANGED
|
@@ -6,7 +6,7 @@ Author URI: https://gtranslate.io/?xyz=3167
|
|
| 6 |
Tags: translate wordpress, translate, translator, translation, language, multi language
|
| 7 |
Requires at least: 2.9
|
| 8 |
Tested up to: 5.3
|
| 9 |
-
Stable tag: 6.0.
|
| 10 |
|
| 11 |
Translate WordPress with Google Language Translator multilanguage plugin which allows to insert Google Translate widget anywhere on your website.
|
| 12 |
|
|
@@ -152,6 +152,10 @@ If you want us to translate your website professionally or provide you a proofre
|
|
| 152 |
Yes! Add the "notranslate" class to the HTML element containing your text. For example, the following text will be excluded from translation: <span class="notranslate">Hello World!</span>
|
| 153 |
|
| 154 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
= 6.0.4 =
|
| 156 |
* Missing closing li tag issue fixed in flags only language switcher
|
| 157 |
* Readme updated
|
| 6 |
Tags: translate wordpress, translate, translator, translation, language, multi language
|
| 7 |
Requires at least: 2.9
|
| 8 |
Tested up to: 5.3
|
| 9 |
+
Stable tag: 6.0.5
|
| 10 |
|
| 11 |
Translate WordPress with Google Language Translator multilanguage plugin which allows to insert Google Translate widget anywhere on your website.
|
| 12 |
|
| 152 |
Yes! Add the "notranslate" class to the HTML element containing your text. For example, the following text will be excluded from translation: <span class="notranslate">Hello World!</span>
|
| 153 |
|
| 154 |
== Changelog ==
|
| 155 |
+
= 6.0.5 =
|
| 156 |
+
* Cross-site scripting (XSS) vulnerability fixed: Only possible for sub-domain, sub-directory paid options with hreflang tags enabled:
|
| 157 |
+
An attacker can generate a malicious link and if followed by a victim then javascript code can be executed on victim's computer
|
| 158 |
+
|
| 159 |
= 6.0.4 =
|
| 160 |
* Missing closing li tag issue fixed in flags only language switcher
|
| 161 |
* Readme updated
|
