Weglot Translate – Translate your WP website - Version 3.8.3

Version Description

(15/11/2022) = * Bug: Prevent Ajax call from original lang to original lang * Bug: Fix PHP Warning on class-replace-url-service line 192 * Update: Add index 'text' to ld+json translated value

Download this release

Release Info

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

Code changes from version 3.8.2 to 3.8.3

changelog.md CHANGED
@@ -3,6 +3,9 @@
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
3
 
4
  # Change Log
5
 
6
+ ##3.8.2 (08/11/2022) =
7
+ * Bug: Update cdn url for pageviews replace cdn-api-weglot.com by cdn-api.weglot.com
8
+
9
  ##3.8.1 (18/10/2022) =
10
  * Bug: Default is_rtl value for custom_languages
11
  * Bug: Update render button for gutenberg editor
composer.json CHANGED
@@ -22,7 +22,7 @@
22
  }
23
  ],
24
  "require": {
25
- "weglot/weglot-php": "^1.6",
26
  "gmulti/morphism-php": "^0.3.0"
27
  },
28
  "repositories": [
22
  }
23
  ],
24
  "require": {
25
+ "weglot/weglot-php": "^1.6.1",
26
  "gmulti/morphism-php": "^0.3.0"
27
  },
28
  "repositories": [
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.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -210,8 +210,10 @@ See changelog for upgrade changes.
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
 
4
  Requires at least: 4.5
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 3.8.3
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.3 (15/11/2022) =
214
+ * Bug: Prevent Ajax call from original lang to original lang
215
+ * Bug: Fix PHP Warning on class-replace-url-service line 192
216
+ * Update: Add index 'text' to ld+json translated value
217
 
218
  = Older versions =
219
 
src/actions/front/class-translate-page-weglot.php CHANGED
@@ -78,6 +78,12 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
78
  * @since 2.0
79
  */
80
  public function hooks() {
 
 
 
 
 
 
81
  if ( Helper_Is_Admin::is_wp_admin() || 'wp-login.php' === $GLOBALS['pagenow'] ) {
82
  return;
83
  }
@@ -97,9 +103,9 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
97
  }
98
 
99
  /**
 
100
  * @since 2.1.1
101
  *
102
- * @return boolean
103
  */
104
  protected function no_translate_action_ajax() {
105
  $action_ajax_no_translate = apply_filters(
@@ -155,7 +161,7 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
155
 
156
  if ( $this->request_url_services->is_allowed_private() ) {
157
  if ( ! isset( $_COOKIE['weglot_allow_private'] ) ) {
158
- setcookie("weglot_allow_private" , true, time() + 86400 * 2, '/' ); //phpcs:ignore
159
  }
160
  }
161
 
@@ -199,8 +205,10 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
199
  */
200
  public function check_need_to_redirect() {
201
 
202
- $only_home = apply_filters( 'weglot_autoredirect_only_home', false );
 
203
  if (
 
204
  ! wp_doing_ajax() && // no ajax.
205
  ! is_rest() &&
206
  ! Helper_Is_Admin::is_wp_admin() &&
@@ -216,9 +224,9 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
216
  }
217
 
218
  /**
219
- * @since 2.0
220
- * @version 2.1.0
221
  * @return void
 
 
222
  */
223
  public function prepare_request_uri() {
224
  $original_language = $this->language_services->get_original_language();
@@ -251,13 +259,13 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
251
  }
252
 
253
  $_SERVER['REQUEST_URI'] = $this->request_url_services->get_weglot_url()->getPathPrefix() .
254
- $this->request_url_services->get_weglot_url()->getPathAndQuery();
255
  }
256
 
257
  /**
 
258
  * @since 2.0
259
  *
260
- * @return void
261
  */
262
  public function prepare_rtl_language() {
263
  if ( $this->current_language->isRtl() ) {
@@ -268,10 +276,10 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
268
  }
269
 
270
  /**
271
- * @see wp_head
272
  * @since 2.0
273
  * @version 2.3.0
274
- * @return void
275
  */
276
  public function weglot_href_lang() {
277
  $remove_google_translate = apply_filters( 'weglot_remove_google_translate', true );
78
  * @since 2.0
79
  */
80
  public function hooks() {
81
+
82
+ $referer = wp_parse_url( wp_get_referer() );
83
+ if ( wp_is_json_request() && ( str_contains( $referer['query'], 'action=edit' ) ) ) {
84
+ return;
85
+ }
86
+
87
  if ( Helper_Is_Admin::is_wp_admin() || 'wp-login.php' === $GLOBALS['pagenow'] ) {
88
  return;
89
  }
103
  }
104
 
105
  /**
106
+ * @return boolean
107
  * @since 2.1.1
108
  *
 
109
  */
110
  protected function no_translate_action_ajax() {
111
  $action_ajax_no_translate = apply_filters(
161
 
162
  if ( $this->request_url_services->is_allowed_private() ) {
163
  if ( ! isset( $_COOKIE['weglot_allow_private'] ) ) {
164
+ setcookie( "weglot_allow_private", true, time() + 86400 * 2, '/' ); //phpcs:ignore
165
  }
166
  }
167
 
205
  */
206
  public function check_need_to_redirect() {
207
 
208
+ $only_home = apply_filters( 'weglot_autoredirect_only_home', false );
209
+ $skip_redirect = apply_filters( 'weglot_autoredirect_skip', false );
210
  if (
211
+ ! $skip_redirect &&
212
  ! wp_doing_ajax() && // no ajax.
213
  ! is_rest() &&
214
  ! Helper_Is_Admin::is_wp_admin() &&
224
  }
225
 
226
  /**
 
 
227
  * @return void
228
+ * @version 2.1.0
229
+ * @since 2.0
230
  */
231
  public function prepare_request_uri() {
232
  $original_language = $this->language_services->get_original_language();
259
  }
260
 
261
  $_SERVER['REQUEST_URI'] = $this->request_url_services->get_weglot_url()->getPathPrefix() .
262
+ $this->request_url_services->get_weglot_url()->getPathAndQuery();
263
  }
264
 
265
  /**
266
+ * @return void
267
  * @since 2.0
268
  *
 
269
  */
270
  public function prepare_rtl_language() {
271
  if ( $this->current_language->isRtl() ) {
276
  }
277
 
278
  /**
279
+ * @return void
280
  * @since 2.0
281
  * @version 2.3.0
282
+ * @see wp_head
283
  */
284
  public function weglot_href_lang() {
285
  $remove_google_translate = apply_filters( 'weglot_remove_google_translate', true );
src/services/class-replace-url-service-weglot.php CHANGED
@@ -189,7 +189,7 @@ class Replace_Url_Service_Weglot {
189
 
190
  return (
191
  (
192
- ( 'h' === $current_url[0] && $parsed_url['host'] === $server_host ) ||
193
  ( isset( $current_url[0] ) && $current_url[0] === '/' && ( !isset( $current_url[1]) || ( isset( $current_url[1] ) ) && '/' !== $current_url[1] )) //phpcs:ignore
194
  )
195
  && $not_other_site
189
 
190
  return (
191
  (
192
+ ( isset( $current_url[0] ) && 'h' === $current_url[0] && $parsed_url['host'] === $server_host ) ||
193
  ( isset( $current_url[0] ) && $current_url[0] === '/' && ( !isset( $current_url[1]) || ( isset( $current_url[1] ) ) && '/' !== $current_url[1] )) //phpcs:ignore
194
  )
195
  && $not_other_site
src/services/class-translate-service-weglot.php CHANGED
@@ -183,6 +183,8 @@ class Translate_Service_Weglot {
183
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
184
  if ( ! $this->request_url_services->create_url_object( wp_get_referer() )->getForLanguage( $this->request_url_services->get_current_language(), false ) ) {
185
  // do nothing because the ajax referer are not exclude!
 
 
186
  }
187
  } else {
188
  // if type is xml we render the content without treatment.
@@ -202,17 +204,21 @@ class Translate_Service_Weglot {
202
  $extra_keys = apply_filters( 'weglot_add_json_keys', array() );
203
  $translated_content = $parser->translate( $content, $this->original_language, $this->current_language, $extra_keys );
204
  $translated_content = wp_json_encode( $this->replace_url_services->replace_link_in_json( json_decode( $translated_content, true ) ) );
 
205
  return apply_filters( 'weglot_json_treat_page', $translated_content );
206
  case 'xml':
207
  $translated_content = $parser->translate( $content, $this->original_language, $this->current_language, array(), $canonical );
208
  $translated_content = apply_filters( 'weglot_html_treat_page', $translated_content );
 
209
  return apply_filters( 'weglot_xml_treat_page', $translated_content );
210
  case 'html':
211
  $translated_content = $parser->translate( $content, $this->original_language, $this->current_language, array(), $canonical );
212
  $translated_content = apply_filters( 'weglot_html_treat_page', $translated_content );
 
213
  return $this->weglot_render_dom( $translated_content, $canonical );
214
  default:
215
  $name_filter = sprintf( 'weglot_%s_treat_page', $type );
 
216
  return apply_filters( $name_filter, $content, $parser, $this->original_language, $this->current_language );
217
  }
218
  } catch ( ApiError $e ) {
183
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
184
  if ( ! $this->request_url_services->create_url_object( wp_get_referer() )->getForLanguage( $this->request_url_services->get_current_language(), false ) ) {
185
  // do nothing because the ajax referer are not exclude!
186
+ } else {
187
+ return $content;
188
  }
189
  } else {
190
  // if type is xml we render the content without treatment.
204
  $extra_keys = apply_filters( 'weglot_add_json_keys', array() );
205
  $translated_content = $parser->translate( $content, $this->original_language, $this->current_language, $extra_keys );
206
  $translated_content = wp_json_encode( $this->replace_url_services->replace_link_in_json( json_decode( $translated_content, true ) ) );
207
+
208
  return apply_filters( 'weglot_json_treat_page', $translated_content );
209
  case 'xml':
210
  $translated_content = $parser->translate( $content, $this->original_language, $this->current_language, array(), $canonical );
211
  $translated_content = apply_filters( 'weglot_html_treat_page', $translated_content );
212
+
213
  return apply_filters( 'weglot_xml_treat_page', $translated_content );
214
  case 'html':
215
  $translated_content = $parser->translate( $content, $this->original_language, $this->current_language, array(), $canonical );
216
  $translated_content = apply_filters( 'weglot_html_treat_page', $translated_content );
217
+
218
  return $this->weglot_render_dom( $translated_content, $canonical );
219
  default:
220
  $name_filter = sprintf( 'weglot_%s_treat_page', $type );
221
+
222
  return apply_filters( $name_filter, $content, $parser, $this->original_language, $this->current_language );
223
  }
224
  } catch ( ApiError $e ) {
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit326694156ce0e47e88a3aa231c93f560::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
34
  'name' => 'weglot/translate-wordpress',
35
  ),
36
  'versions' =>
@@ -69,7 +69,7 @@ private static $installed = array (
69
  'aliases' =>
70
  array (
71
  ),
72
- 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
73
  ),
74
  'weglot/translation-definitions' =>
75
  array (
@@ -82,12 +82,12 @@ private static $installed = array (
82
  ),
83
  'weglot/weglot-php' =>
84
  array (
85
- 'pretty_version' => '1.6',
86
- 'version' => '1.6.0.0',
87
  'aliases' =>
88
  array (
89
  ),
90
- 'reference' => 'e5fb5b78ecb40219ca86a91c2ed122b1b130bdad',
91
  ),
92
  ),
93
  );
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => '87d16fb87bfae52d0a3617e676624943372f1fb7',
34
  'name' => 'weglot/translate-wordpress',
35
  ),
36
  'versions' =>
69
  'aliases' =>
70
  array (
71
  ),
72
+ 'reference' => '87d16fb87bfae52d0a3617e676624943372f1fb7',
73
  ),
74
  'weglot/translation-definitions' =>
75
  array (
82
  ),
83
  'weglot/weglot-php' =>
84
  array (
85
+ 'pretty_version' => '1.6.1',
86
+ 'version' => '1.6.1.0',
87
  'aliases' =>
88
  array (
89
  ),
90
+ 'reference' => '6cfd2582ecbccd2705a19aae7a1cb541ed86ed5c',
91
  ),
92
  ),
93
  );
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b
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,19 +53,19 @@ class ComposerAutoloaderInit50a5eee53858fb15e6f97fa8644d781b
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;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit326694156ce0e47e88a3aa231c93f560
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit326694156ce0e47e88a3aa231c93f560', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit326694156ce0e47e88a3aa231c93f560', '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\ComposerStaticInit326694156ce0e47e88a3aa231c93f560::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\ComposerStaticInit326694156ce0e47e88a3aa231c93f560::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire326694156ce0e47e88a3aa231c93f560($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire326694156ce0e47e88a3aa231c93f560($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 ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
@@ -66,10 +66,10 @@ class ComposerStaticInit50a5eee53858fb15e6f97fa8644d781b
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
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit326694156ce0e47e88a3aa231c93f560
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 = ComposerStaticInit326694156ce0e47e88a3aa231c93f560::$prefixLengthsPsr4;
70
+ $loader->prefixDirsPsr4 = ComposerStaticInit326694156ce0e47e88a3aa231c93f560::$prefixDirsPsr4;
71
+ $loader->prefixesPsr0 = ComposerStaticInit326694156ce0e47e88a3aa231c93f560::$prefixesPsr0;
72
+ $loader->classMap = ComposerStaticInit326694156ce0e47e88a3aa231c93f560::$classMap;
73
 
74
  }, null, ClassLoader::class);
75
  }
vendor/composer/installed.json CHANGED
@@ -190,17 +190,17 @@
190
  },
191
  {
192
  "name": "weglot/weglot-php",
193
- "version": "1.6",
194
- "version_normalized": "1.6.0.0",
195
  "source": {
196
  "type": "git",
197
  "url": "git@github.com:weglot/weglot-php.git",
198
- "reference": "e5fb5b78ecb40219ca86a91c2ed122b1b130bdad"
199
  },
200
  "dist": {
201
  "type": "zip",
202
- "url": "https://api.github.com/repos/weglot/weglot-php/zipball/e5fb5b78ecb40219ca86a91c2ed122b1b130bdad",
203
- "reference": "e5fb5b78ecb40219ca86a91c2ed122b1b130bdad",
204
  "shasum": ""
205
  },
206
  "require": {
@@ -213,7 +213,7 @@
213
  "codeception/codeception": "^2.4",
214
  "vlucas/phpdotenv": "^2.4"
215
  },
216
- "time": "2022-09-27T14:59:28+00:00",
217
  "type": "library",
218
  "installation-source": "dist",
219
  "autoload": {
190
  },
191
  {
192
  "name": "weglot/weglot-php",
193
+ "version": "1.6.1",
194
+ "version_normalized": "1.6.1.0",
195
  "source": {
196
  "type": "git",
197
  "url": "git@github.com:weglot/weglot-php.git",
198
+ "reference": "6cfd2582ecbccd2705a19aae7a1cb541ed86ed5c"
199
  },
200
  "dist": {
201
  "type": "zip",
202
+ "url": "https://api.github.com/repos/weglot/weglot-php/zipball/6cfd2582ecbccd2705a19aae7a1cb541ed86ed5c",
203
+ "reference": "6cfd2582ecbccd2705a19aae7a1cb541ed86ed5c",
204
  "shasum": ""
205
  },
206
  "require": {
213
  "codeception/codeception": "^2.4",
214
  "vlucas/phpdotenv": "^2.4"
215
  },
216
+ "time": "2022-11-09T13:28:54+00:00",
217
  "type": "library",
218
  "installation-source": "dist",
219
  "autoload": {
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
10
  'name' => 'weglot/translate-wordpress',
11
  ),
12
  'versions' =>
@@ -45,7 +45,7 @@
45
  'aliases' =>
46
  array (
47
  ),
48
- 'reference' => 'aa2e6f61982c460fa8200013fb786e46deb123af',
49
  ),
50
  'weglot/translation-definitions' =>
51
  array (
@@ -58,12 +58,12 @@
58
  ),
59
  'weglot/weglot-php' =>
60
  array (
61
- 'pretty_version' => '1.6',
62
- 'version' => '1.6.0.0',
63
  'aliases' =>
64
  array (
65
  ),
66
- 'reference' => 'e5fb5b78ecb40219ca86a91c2ed122b1b130bdad',
67
  ),
68
  ),
69
  );
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '87d16fb87bfae52d0a3617e676624943372f1fb7',
10
  'name' => 'weglot/translate-wordpress',
11
  ),
12
  'versions' =>
45
  'aliases' =>
46
  array (
47
  ),
48
+ 'reference' => '87d16fb87bfae52d0a3617e676624943372f1fb7',
49
  ),
50
  'weglot/translation-definitions' =>
51
  array (
58
  ),
59
  'weglot/weglot-php' =>
60
  array (
61
+ 'pretty_version' => '1.6.1',
62
+ 'version' => '1.6.1.0',
63
  'aliases' =>
64
  array (
65
  ),
66
+ 'reference' => '6cfd2582ecbccd2705a19aae7a1cb541ed86ed5c',
67
  ),
68
  ),
69
  );
vendor/weglot/weglot-php/src/Parser/Check/RegexCheckerProvider.php CHANGED
@@ -103,7 +103,7 @@ class RegexCheckerProvider
103
  if(strpos(implode("," , $this->parser->getExcludeBlocks()), 'application/ld+json') === false &&
104
  strpos(implode("," , $this->parser->getExcludeBlocks()), '.wg-ldjson') === false
105
  ) {
106
- $this->addChecker(new RegexChecker("#<script type=('|\")application\/ld\+json('|\")([^\>]+?)?>(.*?)<\/script>#s" , SourceType::SOURCE_JSON, 4 , array( "description" , "name" , "headline" , "articleSection" )));
107
  }
108
 
109
  /* Add HTML template checker */
103
  if(strpos(implode("," , $this->parser->getExcludeBlocks()), 'application/ld+json') === false &&
104
  strpos(implode("," , $this->parser->getExcludeBlocks()), '.wg-ldjson') === false
105
  ) {
106
+ $this->addChecker(new RegexChecker("#<script type=('|\")application\/ld\+json('|\")([^\>]+?)?>(.*?)<\/script>#s" , SourceType::SOURCE_JSON, 4 , array( "description" , "name" , "headline" , "articleSection", "text" )));
107
  }
108
 
109
  /* Add HTML template checker */
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.2
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.2' );
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.3
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.3' );
26
  define( 'WEGLOT_PHP_MIN', '5.6' );
27
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
28
  define( 'WEGLOT_DIR', __DIR__ );