Weglot Translate – Translate your WP website - Version 3.8.2

Version Description

(08/11/2022) = * Bug: Update cdn url for pageviews replace cdn-api-weglot.com by cdn-api.weglot.com

Download this release

Release Info

Developer remyb92
Plugin Icon 128x128 Weglot Translate – Translate your WP website
Version 3.8.2
Comparing to
See all releases

Code changes from version 3.8.1 to 3.8.2

changelog.md CHANGED
@@ -3,6 +3,12 @@
3
 
4
  # Change Log
5
 
 
 
 
 
 
 
6
  ##3.8 (11/10/2022) =
7
  * Add: Add ajax checker for woocommerce variations cart popin
8
  * Add: Rework switcher. Generate it direclty on render method
3
 
4
  # Change Log
5
 
6
+ ##3.8.1 (18/10/2022) =
7
+ * Bug: Default is_rtl value for custom_languages
8
+ * Bug: Update render button for gutenberg editor
9
+ * Bug: Improve UI for adding excluded block
10
+ * Add: Update assets for wordpress.org
11
+
12
  ##3.8 (11/10/2022) =
13
  * Add: Add ajax checker for woocommerce variations cart popin
14
  * Add: Rework switcher. Generate it direclty on render method
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: translate, multilingual, language, translation, localization, multilingual
4
  Requires at least: 4.5
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 3.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -210,11 +210,8 @@ See changelog for upgrade changes.
210
 
211
  == Changelog ==
212
 
213
- = 3.8.1 (18/10/2022) =
214
- * Bug: Default is_rtl value for custom_languages
215
- * Bug: Update render button for gutenberg editor
216
- * Bug: Improve UI for adding excluded block
217
- * Add: Update assets for wordpress.org
218
 
219
  = Older versions =
220
 
4
  Requires at least: 4.5
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 3.8.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
210
 
211
  == Changelog ==
212
 
213
+ = 3.8.2 (08/11/2022) =
214
+ * Bug: Update cdn url for pageviews replace cdn-api-weglot.com by cdn-api.weglot.com
 
 
 
215
 
216
  = Older versions =
217
 
src/actions/front/class-front-enqueue-weglot.php CHANGED
@@ -51,7 +51,7 @@ class Front_Enqueue_Weglot implements Hooks_Interface_Weglot {
51
  ?>
52
  <script>
53
  var request = new XMLHttpRequest();
54
- var url = 'ht' + 'tps:' + '//' + 'cdn-api-weglot.com/' + 'pageviews?api_key=' + '<?php echo esc_js( $options['api_key'] )?>';
55
  var data = JSON.stringify({
56
  url: location.protocol + '//' + location.host + location.pathname,
57
  language: document.getElementsByTagName('html')[0].getAttribute('lang'),
51
  ?>
52
  <script>
53
  var request = new XMLHttpRequest();
54
+ var url = 'ht' + 'tps:' + '//' + 'cdn-api.weglot.com/' + 'pageviews?api_key=' + '<?php echo esc_js( $options['api_key'] )?>';
55
  var data = JSON.stringify({
56
  url: location.protocol + '//' + location.host + location.pathname,
57
  language: document.getElementsByTagName('html')[0].getAttribute('lang'),
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit753bf99e8a5ed4ce5a7a253c0afabbbf::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => '62e0e7596e7c037102987515cefbb74c2a941253',
34
  'name' => 'weglot/translate-wordpress',
35
  ),
36
  'versions' =>
@@ -69,7 +69,7 @@ private static $installed = array (
69
  'aliases' =>
70
  array (
71
  ),
72
- 'reference' => '62e0e7596e7c037102987515cefbb74c2a941253',
73
  ),
74
  'weglot/translation-definitions' =>
75
  array (
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
34
  'name' => 'weglot/translate-wordpress',
35
  ),
36
  'versions' =>
69
  'aliases' =>
70
  array (
71
  ),
72
+ 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
73
  ),
74
  'weglot/translation-definitions' =>
75
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit753bf99e8a5ed4ce5a7a253c0afabbbf
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit753bf99e8a5ed4ce5a7a253c0afabbbf
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit753bf99e8a5ed4ce5a7a253c0afabbbf', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit753bf99e8a5ed4ce5a7a253c0afabbbf', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit753bf99e8a5ed4ce5a7a253c0afabbbf
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire753bf99e8a5ed4ce5a7a253c0afabbbf($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire753bf99e8a5ed4ce5a7a253c0afabbbf($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire50a5eee53858fb15e6f97fa8644d781b($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire50a5eee53858fb15e6f97fa8644d781b($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
@@ -66,10 +66,10 @@ class ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf
66
  public static function getInitializer(ClassLoader $loader)
67
  {
68
  return \Closure::bind(function () use ($loader) {
69
- $loader->prefixLengthsPsr4 = ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf::$prefixLengthsPsr4;
70
- $loader->prefixDirsPsr4 = ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf::$prefixDirsPsr4;
71
- $loader->prefixesPsr0 = ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf::$prefixesPsr0;
72
- $loader->classMap = ComposerStaticInit753bf99e8a5ed4ce5a7a253c0afabbbf::$classMap;
73
 
74
  }, null, ClassLoader::class);
75
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
66
  public static function getInitializer(ClassLoader $loader)
67
  {
68
  return \Closure::bind(function () use ($loader) {
69
+ $loader->prefixLengthsPsr4 = ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b::$prefixLengthsPsr4;
70
+ $loader->prefixDirsPsr4 = ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b::$prefixDirsPsr4;
71
+ $loader->prefixesPsr0 = ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b::$prefixesPsr0;
72
+ $loader->classMap = ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b::$classMap;
73
 
74
  }, null, ClassLoader::class);
75
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '62e0e7596e7c037102987515cefbb74c2a941253',
10
  'name' => 'weglot/translate-wordpress',
11
  ),
12
  'versions' =>
@@ -45,7 +45,7 @@
45
  'aliases' =>
46
  array (
47
  ),
48
- 'reference' => '62e0e7596e7c037102987515cefbb74c2a941253',
49
  ),
50
  'weglot/translation-definitions' =>
51
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
10
  'name' => 'weglot/translate-wordpress',
11
  ),
12
  'versions' =>
45
  'aliases' =>
46
  array (
47
  ),
48
+ 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
49
  ),
50
  'weglot/translation-definitions' =>
51
  array (
weglot.php CHANGED
@@ -7,7 +7,7 @@ Author: Weglot Translate team
7
  Author URI: https://weglot.com/
8
  Text Domain: weglot
9
  Domain Path: /languages/
10
- Version: 3.8.1
11
  */
12
 
13
  /**
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  define( 'WEGLOT_NAME', 'Weglot' );
23
  define( 'WEGLOT_SLUG', 'weglot-translate' );
24
  define( 'WEGLOT_OPTION_GROUP', 'group-weglot-translate' );
25
- define( 'WEGLOT_VERSION', '3.8.1' );
26
  define( 'WEGLOT_PHP_MIN', '5.6' );
27
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
28
  define( 'WEGLOT_DIR', __DIR__ );
7
  Author URI: https://weglot.com/
8
  Text Domain: weglot
9
  Domain Path: /languages/
10
+ Version: 3.8.2
11
  */
12
 
13
  /**
22
  define( 'WEGLOT_NAME', 'Weglot' );
23
  define( 'WEGLOT_SLUG', 'weglot-translate' );
24
  define( 'WEGLOT_OPTION_GROUP', 'group-weglot-translate' );
25
+ define( 'WEGLOT_VERSION', '3.8.2' );
26
  define( 'WEGLOT_PHP_MIN', '5.6' );
27
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
28
  define( 'WEGLOT_DIR', __DIR__ );