Weglot Translate – Translate your WP website - Version 3.0.6

Version Description

(28/05/2019) = * Add: Compatibility with WP Forms * Add: Reset postdata filter for custom URLs * Bugfix: Auto switch fallback * Bugfix: Custom url on is_front_page

Download this release

Release Info

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

Code changes from version 3.0.5 to 3.0.6

bootstrap.php CHANGED
@@ -34,6 +34,7 @@ abstract class Context_Weglot {
34
 
35
  self::$context = new Bootstrap_Weglot();
36
 
 
37
  $services = [
38
  '\WeglotWP\Services\Button_Service_Weglot',
39
  '\WeglotWP\Services\Request_Url_Service_Weglot',
@@ -54,6 +55,8 @@ abstract class Context_Weglot {
54
  '\WeglotWP\Third\CalderaForms\Caldera_Translate',
55
  '\WeglotWP\Third\CalderaForms\Caldera_Active',
56
  '\WeglotWP\Third\Gravityforms\GF_Active',
 
 
57
  '\WeglotWP\Services\User_Api_Service_Weglot',
58
  '\WeglotWP\Services\Other_Translate_Service_Weglot',
59
  '\WeglotWP\Services\Dom_Checkers_Service_Weglot',
@@ -70,6 +73,7 @@ abstract class Context_Weglot {
70
 
71
  self::$context->set_services( $services );
72
 
 
73
  $actions = [
74
  '\WeglotWP\Actions\Email_Translate_Weglot',
75
  '\WeglotWP\Actions\Register_Widget_Weglot',
34
 
35
  self::$context = new Bootstrap_Weglot();
36
 
37
+ // If PHP > 5.6, it will be possible to autoload the classes without listing them
38
  $services = [
39
  '\WeglotWP\Services\Button_Service_Weglot',
40
  '\WeglotWP\Services\Request_Url_Service_Weglot',
55
  '\WeglotWP\Third\CalderaForms\Caldera_Translate',
56
  '\WeglotWP\Third\CalderaForms\Caldera_Active',
57
  '\WeglotWP\Third\Gravityforms\GF_Active',
58
+ '\WeglotWP\Third\WPForms\WPForms_Active',
59
+ '\WeglotWP\Third\WPForms\WPForms_Translate',
60
  '\WeglotWP\Services\User_Api_Service_Weglot',
61
  '\WeglotWP\Services\Other_Translate_Service_Weglot',
62
  '\WeglotWP\Services\Dom_Checkers_Service_Weglot',
73
 
74
  self::$context->set_services( $services );
75
 
76
+ // If PHP > 5.6, it will be possible to autoload the classes without listing them
77
  $actions = [
78
  '\WeglotWP\Actions\Email_Translate_Weglot',
79
  '\WeglotWP\Actions\Register_Widget_Weglot',
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: remyb92, gmulti, wysija
3
  Tags: translate, multilingual, language, translation, localization
4
  Requires at least: 4.5
5
- Tested up to: 5.1
6
  Requires PHP: 5.4
7
- Stable tag: 3.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -153,6 +153,12 @@ See changelog for upgrade changes.
153
 
154
  == Changelog ==
155
 
 
 
 
 
 
 
156
  = 3.0.5 (22/05/2019) =
157
  * Bugfix: Prevent array key exists for Gravity Form
158
  * Bugfix: Save menu Weglot Switcher
2
  Contributors: remyb92, gmulti, wysija
3
  Tags: translate, multilingual, language, translation, localization
4
  Requires at least: 4.5
5
+ Tested up to: 5.2
6
  Requires PHP: 5.4
7
+ Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
153
 
154
  == Changelog ==
155
 
156
+ = 3.0.6 (28/05/2019) =
157
+ * Add: Compatibility with WP Forms
158
+ * Add: Reset postdata filter for custom URLs
159
+ * Bugfix: Auto switch fallback
160
+ * Bugfix: Custom url on is_front_page
161
+
162
  = 3.0.5 (22/05/2019) =
163
  * Bugfix: Prevent array key exists for Gravity Form
164
  * Bugfix: Save menu Weglot Switcher
src/actions/admin/class-options-weglot.php CHANGED
@@ -209,10 +209,6 @@ class Options_Weglot implements Hooks_Interface_Weglot {
209
  $options['excluded_blocks'] = [];
210
  }
211
 
212
- if ( ! isset( $options['auto_switch_fallback'] ) ) {
213
- $options['auto_switch_fallback'] = 'en';
214
- }
215
-
216
  return $options;
217
  }
218
  }
209
  $options['excluded_blocks'] = [];
210
  }
211
 
 
 
 
 
212
  return $options;
213
  }
214
  }
src/services/class-custom-url-service-weglot.php CHANGED
@@ -28,6 +28,11 @@ class Custom_Url_Service_Weglot {
28
  * @return string
29
  */
30
  public function get_link( $key_code, $add_no_redirect = true ) {
 
 
 
 
 
31
  global $post;
32
  $weglot_url = $this->request_url_services->get_weglot_url();
33
  $request_without_language = array_filter( explode( '/', $weglot_url->getPath() ), 'strlen' );
@@ -36,7 +41,7 @@ class Custom_Url_Service_Weglot {
36
  $url_lang = $weglot_url->getForLanguage( $key_code );
37
  $original_language = weglot_get_original_language();
38
 
39
- $condition_test_custom_url = isset( $request_without_language[ $index_entries ] ) && ! is_admin() && ! empty( $custom_urls ) && ! is_post_type_archive() && ! is_category() && ! is_tax() && ! is_archive();
40
 
41
  if ( apply_filters( 'weglot_condition_test_custom_url', $condition_test_custom_url, $url_lang, $key_code ) ) {
42
  $slug_in_work = $request_without_language[ $index_entries ];
@@ -54,7 +59,6 @@ class Custom_Url_Service_Weglot {
54
  }
55
  }
56
  }
57
-
58
  $link_button = apply_filters( 'weglot_link_language', $url_lang, $key_code );
59
 
60
  if (
28
  * @return string
29
  */
30
  public function get_link( $key_code, $add_no_redirect = true ) {
31
+
32
+ if( apply_filters( 'weglot_need_reset_postdata', false ) ) {
33
+ wp_reset_postdata();
34
+ }
35
+
36
  global $post;
37
  $weglot_url = $this->request_url_services->get_weglot_url();
38
  $request_without_language = array_filter( explode( '/', $weglot_url->getPath() ), 'strlen' );
41
  $url_lang = $weglot_url->getForLanguage( $key_code );
42
  $original_language = weglot_get_original_language();
43
 
44
+ $condition_test_custom_url = isset( $request_without_language[ $index_entries ] ) && ! is_admin() && ! empty( $custom_urls ) && ! is_post_type_archive() && ! is_category() && ! is_tax() && ! is_archive() && ! is_front_page() && ! is_home();
45
 
46
  if ( apply_filters( 'weglot_condition_test_custom_url', $condition_test_custom_url, $url_lang, $key_code ) ) {
47
  $slug_in_work = $request_without_language[ $index_entries ];
59
  }
60
  }
61
  }
 
62
  $link_button = apply_filters( 'weglot_link_language', $url_lang, $key_code );
63
 
64
  if (
src/services/class-option-service-weglot.php CHANGED
@@ -33,7 +33,7 @@ class Option_Service_Weglot {
33
  'language_from' => 'en',
34
  'languages' => [],
35
  'auto_switch' => false,
36
- 'auto_switch_fallback' => 'en',
37
  'excluded_blocks' => [],
38
  'excluded_paths' => [],
39
  'custom_settings' => [
33
  'language_from' => 'en',
34
  'languages' => [],
35
  'auto_switch' => false,
36
+ 'auto_switch_fallback' => null,
37
  'excluded_blocks' => [],
38
  'excluded_paths' => [],
39
  'custom_settings' => [
src/services/class-translate-service-weglot.php CHANGED
@@ -28,6 +28,7 @@ class Translate_Service_Weglot {
28
  $this->wc_active_services = weglot_get_service( 'WC_Active_Weglot' );
29
  $this->ninja_active_services = weglot_get_service( 'Ninja_Active_Weglot' );
30
  $this->caldera_active_services = weglot_get_service( 'Caldera_Active' );
 
31
  $this->other_translate_services = weglot_get_service( 'Other_Translate_Service_Weglot' );
32
  $this->translate_json_service = weglot_get_service( 'Translate_Json_Service' );
33
  $this->generate_switcher_service = weglot_get_service( 'Generate_Switcher_Service_Weglot' );
@@ -118,6 +119,10 @@ class Translate_Service_Weglot {
118
  // Improve this with multiple service
119
  $translated_content = weglot_get_service( 'Caldera_Translate' )->translate_words( $translated_content );
120
  }
 
 
 
 
121
 
122
  if( apply_filters( 'weglot_translate_json_ld', false ) ) {
123
  $translated_content = $this->translate_json_ld_services->handle( $translated_content );
28
  $this->wc_active_services = weglot_get_service( 'WC_Active_Weglot' );
29
  $this->ninja_active_services = weglot_get_service( 'Ninja_Active_Weglot' );
30
  $this->caldera_active_services = weglot_get_service( 'Caldera_Active' );
31
+ $this->wpforms_active_services = weglot_get_service( 'WPForms_Active' );
32
  $this->other_translate_services = weglot_get_service( 'Other_Translate_Service_Weglot' );
33
  $this->translate_json_service = weglot_get_service( 'Translate_Json_Service' );
34
  $this->generate_switcher_service = weglot_get_service( 'Generate_Switcher_Service_Weglot' );
119
  // Improve this with multiple service
120
  $translated_content = weglot_get_service( 'Caldera_Translate' )->translate_words( $translated_content );
121
  }
122
+ if ( $this->wpforms_active_services->is_active() ) {
123
+ // Improve this with multiple service
124
+ $translated_content = weglot_get_service( 'WPForms_Translate' )->translate_words( $translated_content );
125
+ }
126
 
127
  if( apply_filters( 'weglot_translate_json_ld', false ) ) {
128
  $translated_content = $this->translate_json_ld_services->handle( $translated_content );
src/third/gravityforms/class-gf-filter-urls.php CHANGED
@@ -42,9 +42,10 @@ class GF_Filter_Urls implements Hooks_Interface_Weglot {
42
  * @return array
43
  */
44
  public function weglot_gform_confirmation( $data ) {
45
- if( !is_array( $data ) ){
46
- return $data;
47
- }
 
48
  if( ! array_key_exists( 'redirect', $data ) ){
49
  return $data;
50
  }
42
  * @return array
43
  */
44
  public function weglot_gform_confirmation( $data ) {
45
+ if( ! is_array( $data ) ){
46
+ return $data;
47
+ }
48
+
49
  if( ! array_key_exists( 'redirect', $data ) ){
50
  return $data;
51
  }
src/third/wpforms/class-wpforms-active.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\WPForms;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+
10
+ use WeglotWP\Models\Third_Active_Interface_Weglot;
11
+
12
+
13
+
14
+ /**
15
+ * WPForms_Active
16
+ *
17
+ * @since 3.0.5
18
+ */
19
+ class WPForms_Active implements Third_Active_Interface_Weglot {
20
+
21
+ /**
22
+ * @since 3.0.5
23
+ * @return boolean
24
+ */
25
+ public function is_active() {
26
+ if ( ! function_exists( 'is_plugin_active' ) ) {
27
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
28
+ }
29
+
30
+ $active = true;
31
+
32
+ if ( ! is_plugin_active( 'wpforms-lite/wpforms.php' ) ) {
33
+ $active = false;
34
+ }
35
+
36
+ return apply_filters( 'weglot_wpforms_is_active', $active );
37
+ }
38
+ }
src/third/wpforms/class-wpforms-translate.php ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\WPForms;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+
10
+ use WeglotWP\Helpers\Helper_Json_Inline_Weglot;
11
+
12
+ use Weglot\Client\Api\WordEntry;
13
+ use Weglot\Client\Api\Enum\WordType;
14
+ use Weglot\Client\Client;
15
+ use Weglot\Client\Endpoint\Translate;
16
+ use Weglot\Client\Api\TranslateEntry;
17
+ use Weglot\Client\Api\Enum\BotType;
18
+
19
+ /**
20
+ * WPForms_Translate
21
+ *
22
+ * @since 3.0.5
23
+ */
24
+ class WPForms_Translate {
25
+
26
+ /**
27
+ * @since 3.0.5
28
+ */
29
+ public function __construct() {
30
+ $this->parser_services = weglot_get_service( 'Parser_Service_Weglot' );
31
+ }
32
+
33
+ /**
34
+ * @since 3.0.5
35
+ * @param array $all_words
36
+ * @return array
37
+ */
38
+ protected function translate_entries( $all_words ) {
39
+ // TranslateEntry
40
+ $params = [
41
+ 'language_from' => weglot_get_original_language(),
42
+ 'language_to' => weglot_get_current_language(),
43
+ 'request_url' => weglot_get_current_full_url(),
44
+ 'bot' => BotType::HUMAN,
45
+ ];
46
+
47
+ $translate = new TranslateEntry( $params );
48
+
49
+ $word_collection = $translate->getInputWords();
50
+ foreach ( $all_words as $value ) {
51
+ $value = Helper_Json_Inline_Weglot::format_for_api( $value );
52
+ $word_collection->addOne( new WordEntry( $value, WordType::TEXT ) );
53
+ }
54
+
55
+ $client = $this->parser_services->get_client();
56
+ $translate = new Translate( $translate, $client );
57
+
58
+ return $translate->handle();
59
+ }
60
+
61
+
62
+ /**
63
+ * @since 3.0.5
64
+ * @param string $content
65
+ * @return array
66
+ */
67
+ protected function translate_json_inline( $content ) {
68
+ $regex = apply_filters( 'weglot_wpforms_match_form_fields', '#wpforms_settings(.*)(\s*)\/\* ]]> \*\/#' );
69
+ preg_match( $regex, $content, $match );
70
+
71
+ if ( ! isset( $match[1] ) ) {
72
+ return $content;
73
+ }
74
+
75
+ $regex = apply_filters( 'weglot_wpforms_translate_json_inline', '#(val_required|val_url|val_email|val_email_suggestion|val_email_suggestion_title|val_number|val_confirm|val_fileextension|val_filesize|val_time12h|val_time24h|val_requiredpayment|val_creditcard|val_smart_phone|val_post_max_size|val_checklimit|val_checklimit)":"(.*?)",#' );
76
+ preg_match_all( $regex, $match[1], $all );
77
+ if ( empty( $all[1] ) ) {
78
+ return $content;
79
+ }
80
+
81
+ $object = $this->translate_entries( $all[2] );
82
+
83
+ foreach ( $object->getInputWords() as $key => $input_word ) {
84
+ $from_input_encoding = apply_filters( 'weglot_wpforms_translate_need_json_encode', true );
85
+ $to_output_encoding = apply_filters( 'weglot_wpforms_translate_need_json_encode', true );
86
+ $from_input = $input_word->getWord();
87
+ $to_output = $object->getOutputWords()[ $key ]->getWord();
88
+ if ( '' === $from_input ) {
89
+ continue;
90
+ }
91
+
92
+ if ( $from_input_encoding ) {
93
+ $from_input = Helper_Json_Inline_Weglot::need_json_encode_api( $from_input );
94
+ }
95
+ if ( $to_output_encoding ) {
96
+ $to_output = Helper_Json_Inline_Weglot::need_json_encode_api( $to_output );
97
+ }
98
+
99
+ $content = str_replace( '"' . $from_input . '"', '"' . $to_output . '"', $content );
100
+ }
101
+
102
+ return $content;
103
+ }
104
+
105
+ /**
106
+ * @since 2.5.0
107
+ * @param string $content
108
+ * @return string
109
+ */
110
+ public function translate_words( $content ) {
111
+ $content = $this->translate_json_inline( $content );
112
+
113
+ return $content;
114
+ }
115
+ }
templates/admin/pages/tabs/custom-urls.php CHANGED
@@ -56,7 +56,6 @@ use Weglot\WeglotContext;
56
  $('.custom-url').on('keyup', function(e){
57
  const key = $(this).data('key')
58
  const lang = $(this).data('lang')
59
- console.log(key)
60
  $('.base-url-' + key).attr('name', 'weglot-translate[custom_urls][' + lang + '][' + e.target.value + ']')
61
  })
62
 
56
  $('.custom-url').on('keyup', function(e){
57
  const key = $(this).data('key')
58
  const lang = $(this).data('lang')
 
59
  $('.base-url-' + key).attr('name', 'weglot-translate[custom_urls][' + lang + '][' + e.target.value + ']')
60
  })
61
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5a48b6a52756caca80d21143021a26b9::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitb9057a853289224ea9fa1d5dcedb206d::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5a48b6a52756caca80d21143021a26b9
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit5a48b6a52756caca80d21143021a26b9
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit5a48b6a52756caca80d21143021a26b9', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit5a48b6a52756caca80d21143021a26b9', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit5a48b6a52756caca80d21143021a26b9::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit5a48b6a52756caca80d21143021a26b9
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit5a48b6a52756caca80d21143021a26b9::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire5a48b6a52756caca80d21143021a26b9($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire5a48b6a52756caca80d21143021a26b9($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitb9057a853289224ea9fa1d5dcedb206d
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitb9057a853289224ea9fa1d5dcedb206d', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitb9057a853289224ea9fa1d5dcedb206d', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitb9057a853289224ea9fa1d5dcedb206d::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInitb9057a853289224ea9fa1d5dcedb206d::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequireb9057a853289224ea9fa1d5dcedb206d($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequireb9057a853289224ea9fa1d5dcedb206d($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit5a48b6a52756caca80d21143021a26b9
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
@@ -71,10 +71,10 @@ class ComposerStaticInit5a48b6a52756caca80d21143021a26b9
71
  public static function getInitializer(ClassLoader $loader)
72
  {
73
  return \Closure::bind(function () use ($loader) {
74
- $loader->prefixLengthsPsr4 = ComposerStaticInit5a48b6a52756caca80d21143021a26b9::$prefixLengthsPsr4;
75
- $loader->prefixDirsPsr4 = ComposerStaticInit5a48b6a52756caca80d21143021a26b9::$prefixDirsPsr4;
76
- $loader->prefixesPsr0 = ComposerStaticInit5a48b6a52756caca80d21143021a26b9::$prefixesPsr0;
77
- $loader->classMap = ComposerStaticInit5a48b6a52756caca80d21143021a26b9::$classMap;
78
 
79
  }, null, ClassLoader::class);
80
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitb9057a853289224ea9fa1d5dcedb206d
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
71
  public static function getInitializer(ClassLoader $loader)
72
  {
73
  return \Closure::bind(function () use ($loader) {
74
+ $loader->prefixLengthsPsr4 = ComposerStaticInitb9057a853289224ea9fa1d5dcedb206d::$prefixLengthsPsr4;
75
+ $loader->prefixDirsPsr4 = ComposerStaticInitb9057a853289224ea9fa1d5dcedb206d::$prefixDirsPsr4;
76
+ $loader->prefixesPsr0 = ComposerStaticInitb9057a853289224ea9fa1d5dcedb206d::$prefixesPsr0;
77
+ $loader->classMap = ComposerStaticInitb9057a853289224ea9fa1d5dcedb206d::$classMap;
78
 
79
  }, null, ClassLoader::class);
80
  }
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.0.5
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.0.5');
26
  define('WEGLOT_PHP_MIN', '5.4');
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.0.6
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.0.6');
26
  define('WEGLOT_PHP_MIN', '5.4');
27
  define('WEGLOT_BNAME', plugin_basename(__FILE__));
28
  define('WEGLOT_DIR', __DIR__ );