Weglot Translate – Translate your WP website - Version 3.7.2

Version Description

(20/06/2022) = * Bugfix: Fix bug between apache_get_module() and wpengine.com * Add: Add changelog file into plugin directory

Download this release

Release Info

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

Code changes from version 3.7.1 to 3.7.2

bootstrap.php CHANGED
@@ -134,7 +134,6 @@ abstract class Context_Weglot
134
  */
135
  function weglot_init()
136
  {
137
-
138
  //add filter to prevent load weglot if not needed
139
  $cancel_init = apply_filters( 'weglot_cancel_init', false );
140
 
@@ -142,8 +141,10 @@ function weglot_init()
142
  return;
143
  }
144
 
145
- if (function_exists('apache_get_modules') && !in_array('mod_rewrite', apache_get_modules())) { //phpcs:ignore
146
- add_action('admin_notices', array('\WeglotWP\Notices\Rewrite_Module_Weglot', 'admin_notice'));
 
 
147
  }
148
 
149
  if (!function_exists('curl_version') || !function_exists('curl_exec')) {
134
  */
135
  function weglot_init()
136
  {
 
137
  //add filter to prevent load weglot if not needed
138
  $cancel_init = apply_filters( 'weglot_cancel_init', false );
139
 
141
  return;
142
  }
143
 
144
+ if (function_exists('apache_get_modules') && is_array(apache_get_modules())) { //phpcs:ignore
145
+ if(!in_array('mod_rewrite', apache_get_modules())){
146
+ add_action('admin_notices', array('\WeglotWP\Notices\Rewrite_Module_Weglot', 'admin_notice'));
147
+ }
148
  }
149
 
150
  if (!function_exists('curl_version') || !function_exists('curl_exec')) {
changelog.md ADDED
@@ -0,0 +1,600 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- logo -->
2
+ <img src="https://cdn.weglot.com/logo/logo-hor.png" height="40" />
3
+
4
+ # Change Log
5
+ ##3.7.1 (15/06/2022) =
6
+ * Add: Disable translate pdf and add filter to activate ite
7
+
8
+ ##3.7 (08/06/2022)
9
+ * Add: Translate pdf service
10
+ * Add: Optimize button accessibility
11
+ * Add: Pageviews integration
12
+ * Add: Add switcher editor integration
13
+ * Add: Woocomerce translate all mail
14
+ * Add: Do not translate .eps or .txt
15
+ * Add: Detect if switcher is child of an iframe and if so, don't display it
16
+ * Add: Reduce api call on wp-admin
17
+
18
+ ##3.6.1 (02/03/2022)
19
+ * Bugfix: Fix hide button option on switcher menu
20
+ * Bugfix: Fix bug VE not translated
21
+ * Bugfix: Fix bug add Custom full name for orginal language
22
+
23
+ ##3.6 (23/02/2022)
24
+ * Add: Advance exclude url option
25
+ * Add: Add blocks for gutenberg (wp 5.9)
26
+ * Add: Disable autoswitch for weglot visual editor
27
+ * Add: Add Forminator (plugin de WPMUDEV) compatibility
28
+ * Add: Disable weglot on rankmath sitemap
29
+ * Add: Add hook filter to replace_url method
30
+ * Bugfix: php8 parameters order
31
+ * Bugfix: Refresh destination language list
32
+ * Bugfix: Display hreflang even url have parameters
33
+
34
+ ##3.5 (07/12/2021)
35
+ * Add: Autoswitch work on all page not only on homepage
36
+ * Add: Exclude url doesn't generate redirection
37
+ * Add: Add switcher from switcher editor
38
+ * Add: Call API from cdn to translate
39
+ * Add: Limited call API for deactivate account
40
+ * Bugfix: Problem with gform and multisite
41
+ * Bugfix: Fix hreflang generation with Cyrillic url
42
+ * Bugfix: Weglot search option now works even if we're not on a main_query
43
+
44
+ ##3.4 (15/09/2021)
45
+ * Add: All 404 pages are excluded from translation if you exclude /404 in the Weglot dashboard
46
+ * Improved performance: Files for multilingual compatibility with other plugins are only called when necessary
47
+ * Bugfix: Autoswitch feature now works with custom languages
48
+ * Bugfix: Password reset link in translated emails now works
49
+ * Bugfix: WooCommerce emails are now translated when using custom languages
50
+ * Bugfix: Fixed warning in 404 styles.css.map
51
+ * Bugfix: Autoswitch doesn't redirect when visitor comes from an external link from now on
52
+
53
+ ##3.3.6 (15/06/2021)
54
+ * Add new flag from dashboard
55
+ * Improve hreflang display
56
+ * Dynamise limit languages check
57
+ * Fix bug when excluded URL /cart gives empty URL
58
+ * Fix small bug on multisite where we translated links from / website when located on /subsite
59
+ * Better handle 301 redirect
60
+
61
+ ##3.3.5 (12/04/2021)
62
+ * Add url from canonical if existing
63
+ * Add vip code review
64
+ * Increase timeout when updating setting and disable submit button
65
+ * Adding message to tell user to purge cache from cache plugin after editing translation
66
+
67
+ ##3.3.4 (22/03/2021)
68
+ * Check if curl_exec is enable
69
+ * Fix js problem on admin on preview
70
+ * Optimize plugin size
71
+ * Change screenshot on store
72
+
73
+ ##3.3.3 (08/03/2021)
74
+ * Language repo
75
+ * drag and drop
76
+ * bug greek url
77
+ * bug parsing empty node
78
+
79
+
80
+ ##3.3.2 (15/02/2021)
81
+ * Update settings dropdown
82
+ * Fix rare bug when root equal slug page
83
+
84
+
85
+ ##3.3.1 (01/02/2021)
86
+ * Small fixes following major release
87
+
88
+
89
+ ##3.3.0 (18/01/2021)
90
+ * Full refacto of the code
91
+ * Add: custom language
92
+
93
+
94
+ ##3.2.0 (15/10/2020)
95
+ * Add translate slug option
96
+ * Fix: auto redirect on traditional chinese and brazilian portuguese
97
+ * Fix: admin-ajax bug containing language code in some case
98
+
99
+ ##3.1.9 (06/08/2020)
100
+ * Add flag choice for ZH and TW
101
+ * Update plugin translation files
102
+ * Translate Iframe SRC as external link
103
+ * Fix: Custom URL links (empty base in correspondence table / trailing slash)
104
+ * Fix: Remove "!important" CSS properties on AMP
105
+
106
+ ##3.1.8 (02/07/2020)
107
+ * Exclude URL by languages
108
+ * Translate by default all Woocommerce mails with customer language
109
+ * Update URLs translation, possibility to use custom URLs for hierarchical pages
110
+ * Translate External URLs
111
+ * Add SVG files to media translation
112
+ * Exclude wp-cron.php from translation
113
+ * Fix links translation with custom URLS
114
+
115
+ ##3.1.7 (04/05/2020)
116
+ * Add a Weglot Menu to admin bar
117
+ * Add Woocommerce feature : Translate following mail
118
+ * Better text escaping in Back Office (thanks to @joehoyle and @drvy for contribution)
119
+ * Add attribute to HTML tag if custom code is used for current language
120
+ * Optimize CSS size for AMP
121
+ * Fix: Add compatibility with AMP plugin +1.5
122
+ * Fix: No load Weglot CSS in AMP if option is set to false
123
+ * Fix error on JS script loading (thanks to @joehoyle for contribution)
124
+
125
+ ##3.1.6 (06/02/2020)
126
+ * Add: Use WP core code editor for Weglot custom CSS
127
+ * Add: Add weglot_translate_email filter to control when mail are translated
128
+ * Bugfix: Fixes small minor bugs
129
+
130
+ ##3.1.5 (08/01/2020)
131
+ * Add: weglot_language_code_replace filter to use custom language code
132
+ * Bugfix: Formatter on JSON source for untranslated WooComerce fields
133
+
134
+ ##3.1.4 (12/12/2019)
135
+ * Update back office style for WordPress 5.3
136
+ * Fix: Flags SRC attribute with AMP
137
+ * Fix: Custom URL feature - Revisions
138
+ * Improve compatibility: WP Optimize
139
+ * Improve compatibility: Cache Enabler
140
+ * Add default exclude block for SecuPress plugin and SQLI protect
141
+ * Add default exclude block for plugin query monitor > 3.3.0
142
+ * Remove the "Not allowed" mechanism.
143
+
144
+ ##3.1.3 (29/10/2019)
145
+ * Improve compatibility: Woocommerce with IE 11
146
+ * Improve compatibility: Contact Form 7
147
+ * Improve compatibility: MailOptin
148
+ * Improve compatibility: The Event Calendar
149
+ * Improve compatibility: Font Awesome
150
+ * Add default exclude block: address
151
+ * Bugfix: Do not cache page if API answers error
152
+
153
+ ##3.1.2 (24/09/2019)
154
+ * Bugfix: Custom URL with GET parameters
155
+ * Bugfix: Ninja Forms JSON translate
156
+ * Bugfix: Prevent errors due to call protected method
157
+
158
+ ##3.1.1 (11/09/2019)
159
+ * Add: IE 11 compatibility with languages switcher
160
+ * Add: WP-CLI compatibility
161
+ * Bugfix: admin api call
162
+ * Bugfix: double language when WC + multisite with subdomains
163
+ * Bugfix: do not add language on external links also in JSON
164
+
165
+ ##3.1.0 (29/08/2019)
166
+ * Add: Better JSON compatiblity
167
+ * Bugfix: WC password reset mechanism
168
+
169
+ ##3.0.6 (28/05/2019)
170
+ * Add: Compatibility with WP Forms
171
+ * Add: Reset postdata filter for custom URLs
172
+ * Bugfix: Auto switch fallback
173
+ * Bugfix: Custom url on is_front_page
174
+
175
+ ##3.0.5 (22/05/2019)
176
+ * Bugfix: Prevent array key exists for Gravity Form
177
+ * Bugfix: Save menu Weglot Switcher
178
+ * Bugfix: Check DOM on json-ld and inactive by default
179
+
180
+ ##3.0.4 (10/05/2019)
181
+ * Bugfix: Prevent errors due to the parser of the JSON-LD
182
+
183
+ ##3.0.3 (09/05/2019)
184
+ * Bugfix: Weglot switcher on menu
185
+ * Add : Translate all JSON-LD
186
+
187
+ ##3.0.2 (24/04/2019)
188
+ * Bugfix: Fixed saving custom CSS
189
+ * Bugfix: Auto detection of a bot (google, bing,...)
190
+ * Bugfix: Compatibility with caldera forms
191
+
192
+ ##3.0.1 (17/04/2019)
193
+ * Bugfix: API key check only if it does not exist
194
+ * Bugfix: prevent array_key_exists on private languages for older installations
195
+
196
+ ##3.0.0 (16/04/2019)
197
+ * New major version
198
+ * Link between WordPress options and Weglot dashboard options
199
+ * Bugfix: Fixed an error on the JSON translation
200
+
201
+ ##2.7.0 (18/03/2019)
202
+ * Changed : Improve Compatibility with Caldera Forms
203
+
204
+ ##2.6.0 (06/03/2019)
205
+ * Add : Prevent elementor ajax action on 2.5
206
+ * Add : Compatibility with Caldera Forms
207
+ * Add : Prevent ajax MMP Map
208
+ * Changed: Improved AJAX translation performance
209
+ * Bugfix: No translate link on weglot menu item
210
+ * Bugfix: meta og facebook
211
+ * Bugfix: prevent undefined index on widget
212
+
213
+ ##2.5.0 (07/02/2019)
214
+ * Add : Compatibility with Ninja Forms
215
+ * Add : DOM Checker on input type reset
216
+ * Bugfix : have the same menu switcher on the same page several times
217
+ * Bugfix : Remove no redirect on hreflang
218
+ * Improve DOM Checker meta content image
219
+
220
+ ##2.4.1 (09/01/2019)
221
+ * Bugfix: undefined function if there is no antislash before the function ( \is_rest )
222
+
223
+ ##2.4.0 (09/01/2019)
224
+ * Compatibility PHP 7.3
225
+ * Changed : the language selector for menus
226
+ * Add : Compatibility with the REST API of Contact Form 7
227
+ * Add [BETA] : Be able to translate the keywords of a search
228
+ * Bugfix : translation of the empty cart on WooCommerce
229
+ * Bugfix: correction of options on a multisite
230
+
231
+
232
+ ##2.3.1 (05/12/2018)
233
+ * Bugfix : Button preview fail on migration for private mode
234
+
235
+ ##2.3.0 (05/12/2018)
236
+ * Bugfix : Custom URL on archive page
237
+ * Bugfix : Prevent error on translate AJAX
238
+ * Bugfix : Href lang on custom URLs
239
+ * Improve code quality
240
+ * Compatibility SEOPress : exclude sitemap
241
+ * Improve private languages
242
+ * Add two DOM checkers
243
+
244
+ ##2.2.2 (05/11/2018)
245
+ * Fix bug on change country flag
246
+ * Change load custom css inline
247
+
248
+ ##2.2.1 (01/11/2018)
249
+ * Fix bug when language was not passed on navigation
250
+
251
+ ##2.2.0 (31/10/2018)
252
+ * Added private mode for administrators
253
+ * Addition apply_filters
254
+ * Bugfix : an ajax request
255
+ * Improved compatibility with wpestate
256
+ * Compatibility with mega max menu
257
+
258
+ ##2.1.0 (25/09/2018)
259
+ * New feature: Custom URL
260
+ * Bugfix : Translate AJAX with return JSON on error
261
+ * Bugfix : Backslash on function PHP
262
+ * Bugfix : Replace links href on JSON translate
263
+ * Bugfix : Compatibility with theme use ob_start
264
+
265
+ ##2.0.7 (31/08/2018)
266
+ * Bugfix: Ajax load media library
267
+ * Improve choice original and destination language
268
+
269
+ ##2.0.6 (29/08/2018)
270
+ * Add DOM checker to translate button value and data-value attribute
271
+ * Update Weglot Translate setting page
272
+ * Bugfix : email translation
273
+ * Bugfix : external link with quickpay
274
+ * Prevent auto redirect on homepage translate
275
+
276
+ ##2.0.5 (09/08/2018)
277
+ * Bugfix : Fatal error if use weglot menu custom
278
+
279
+ ##2.0.4 (09/08/2018)
280
+ * Bugfix : lost password email on WooCommerce
281
+ * Bugfix : translate custom login page
282
+ * Bugfix : uniq id on each button selector
283
+ * Bugfix : no translate image on a href html tag with wp-content/uploads src
284
+ * Bugfix : admin-ajax url
285
+
286
+ ##2.0.3 (27/07/2018)
287
+ * Bugfix : Hide shortcode on non translatable URL
288
+ * Bugfix : filter nav_menu_css_class
289
+ * Bugfix : Redirect URL on checkout WooCommerce
290
+ * Bugfix : CSS Flag on dropdown menu
291
+ * Improve AMP compatibility
292
+
293
+ ##2.0.2 (24/07/2018)
294
+ * Bugfix : Hide menu on non translatable URL
295
+ * Bugfix : Hide widget on non translatable URL
296
+ * Improve max file size HTML
297
+
298
+ ##2.0.1 (19/07/2018)
299
+ * Improve flag style
300
+ * Prevent cURL function
301
+ * Solved nav_class warning
302
+
303
+ ##2.0 (18/07/2018)
304
+ * Major changes on the plugin architecture
305
+ * Adding developer functions & filters
306
+ * Refactoring
307
+
308
+ ##1.13.1 (01/06/2018)
309
+ * Bugfix: Error on the encoding of ignored nodes
310
+
311
+ ##1.13 (31/05/2018)
312
+ * Bugfix : Improve filter words_translate to prevent matching part of words
313
+ * BugFix : Bug in parser when ignored node had an attribute
314
+ * BugFix : character limit on chinese paragraphs
315
+ * Add : Update message for version 2.0
316
+
317
+ ##1.12.2 (04/05/2018)
318
+ * Bugfix : Limitation on the number of characters translated at the same time
319
+
320
+ ##1.12.1 (03/05/2018)
321
+ * Bugfix : error for users with a version lower than PHP 5.4 . []> array()
322
+
323
+ ##1.12 (03/05/2018)
324
+ * Bugfix : undefined index on ajax call
325
+ * Bugfix : Redirection checkout payment on WooCommerce
326
+ * Bugfix : Register widget
327
+ * Add option for AMP compatibility
328
+ * Add filter for dynamic string
329
+
330
+ ##1.11 (05/04/2018)
331
+ * Add new languages
332
+ * Add new filters
333
+ * Add Yoast Premium compatibility on redirect
334
+ * Bugfix : Exclusion AMP
335
+ * Bugfix : Redirection checkout order on WooCommerce
336
+
337
+ ##1.10
338
+ * Add new languages + add Oman flag
339
+ * Can potentially translate email sent from admin
340
+ * Add tags to inline elements to ignore when parsing
341
+
342
+ ##1.9.3
343
+ * Remove Freemius
344
+
345
+ ##1.9.2
346
+ * Fix Freemius assets
347
+
348
+ ##1.9.1
349
+ * Fix Freemius error when changing base dir
350
+ * Fix wc translations when special characters.
351
+
352
+ ##1.9
353
+ * Fix login redirection
354
+ * Add translation for Town, cities and other dynamic fields in WC checkout
355
+ * exclude URL now accepts full URL and any blank separator
356
+
357
+ ##1.8.2
358
+ * Fix pb when permalinks has no ending slash
359
+ * Add notif when plugin is not congigured
360
+
361
+
362
+ ##1.8.1
363
+ * Fix redirection on woocommerce
364
+
365
+ ##1.8
366
+ * Add new banner and icon
367
+ * improve wc redirection
368
+ * can now translate email
369
+
370
+
371
+ ##1.7.1
372
+ * Fix redirection bug on cart
373
+
374
+ ##1.7
375
+ * Add 6 languages
376
+ * Translate microdata
377
+ * New element translated
378
+
379
+ ##1.6.1
380
+ * Fix url when non standard characters
381
+ * change freemius image
382
+
383
+ ##1.6
384
+ * Add Freemius
385
+ * Refactor code
386
+ * Replace api ur
387
+ * Add several attributes to translations
388
+
389
+ ##1.5
390
+ * Add data-value, data-title, title attribute support
391
+ * Add links in readme
392
+
393
+ ##1.4.6
394
+ * Add pretty selection of languages
395
+ * Improve flags quality
396
+
397
+ ##1.4.5
398
+ * Add more i18n luv. Now we speak WordPress
399
+ * Add Dutch, English_UK, German, Italian, Portuguese_BR, Russian and Spanish languages
400
+
401
+ ##1.4.4
402
+ * Update i18n and improve strings
403
+
404
+ ##1.4.3
405
+ * Compat with WP Fastest cache, improve RTL translations
406
+
407
+ ##1.4.2
408
+ * PHP 7 compat, add auto redirect feature, no more FA, no more id on switcher
409
+
410
+ ##1.4.1
411
+ * compat AMP, fix url bug on same language code than URL.
412
+
413
+ ##1.4.0
414
+ * compat precaching, URLs
415
+
416
+ ##1.3.3
417
+ * increase compatibility with other plugins and themes.
418
+
419
+ ##1.3.2
420
+ * change support email
421
+ * exclude /amp, admin bar
422
+ * language on starter plan
423
+
424
+ ##1.3.1
425
+ * Fix invalid links
426
+ * Handles multiple weglot_here
427
+
428
+ ##1.3.0
429
+ * rollbackink parsing lib
430
+ * fix srcset, dslash link
431
+
432
+ ##1.2.8
433
+ * parsing lib changed
434
+ * fix several small bugs
435
+
436
+ ##1.2.7
437
+ * Adding Traditional Chinese
438
+ * Fix og:url
439
+ * scrybs
440
+
441
+ ##1.2.6
442
+ * Fix jpeg translated version
443
+ * Fix moreclass and wg-notranslate on list button in menu
444
+ * Fix ajax json with html in it
445
+
446
+ ##1.2.5
447
+ * Add other flags for english, spanish & portugese translations
448
+ * Review style for translation button in menu
449
+ * Add translation exclusion blocks by CSS selectors
450
+
451
+
452
+ ##1.2.4
453
+ * Adding Hindi & Urdu translation languages.
454
+ * Adding version number on scripts.
455
+
456
+ ##1.2.3
457
+ * Code review and optimization
458
+
459
+ ##1.2.2
460
+ * WP Compliance
461
+
462
+ ##1.2.1
463
+ * Fix style on dropdown list
464
+ * Fix link containing "admin" word
465
+
466
+ ##1.2
467
+ * New choice of flags made by professional designers for your translation switch button. Rectangle mat, rectangle bright, square and circle. Enjoy!
468
+ * Add a "Settings" link under Weglot Translate in pugin list.
469
+
470
+ ##1.1
471
+ * Add naviguation menu hook to let user display button in menu.
472
+ * Add possibility to show only flags
473
+ * Show warnings if PHP version is under 5.2 or rewrite rules not activated
474
+ * Rename simple html dom constant and handle no php-mbstring case
475
+ * Fix front page show box when home dir
476
+
477
+ ##1.0
478
+ * Change portugese flag to brazilian, change limit message, starting 1.0 versioning as we reach viable product.
479
+
480
+ ##Older versions
481
+
482
+ ##0.1
483
+ * First version
484
+
485
+ ##0.2
486
+ * Fix label and languages parameters
487
+
488
+ ##0.3
489
+ * SEO now completly taken into account.
490
+
491
+ ##0.4
492
+ * small fix on links
493
+
494
+ ##0.5
495
+ * Fix rules + add url
496
+
497
+ ##0.6
498
+ * Fix rules + new button design
499
+
500
+ ##0.7
501
+ * Add meta translation, + regex eclusion
502
+
503
+ ##0.8
504
+ * Add input button, fix small bug on link
505
+
506
+ ##0.9
507
+ * Check rewrite rules are always here
508
+
509
+ ##0.10
510
+ * Quick fix for PHP 5.3
511
+
512
+ ##0.11
513
+ * Fix ajax, FB compat
514
+
515
+ ##0.12
516
+ * Handle WP_HOME
517
+
518
+ ##0.13
519
+ * General review
520
+
521
+ ##0.14
522
+ * Prepare for localization
523
+
524
+ ##0.15
525
+ * Change link to weglot
526
+
527
+ ##0.16
528
+ * Place button by default
529
+
530
+ ##0.17
531
+ * Fix vc_
532
+
533
+ ##0.18
534
+ * Fix cdata
535
+
536
+ ##0.19
537
+ * Http api integration
538
+
539
+ ##0.20
540
+ * Fix PHP 5.2 compat with anonymous function
541
+
542
+ ##0.21
543
+ * Change ob order for compatibility
544
+
545
+ ##0.22
546
+ * More flexibility in destination language
547
+
548
+ ##0.23
549
+ * Can have multiple youtube video for different languages
550
+
551
+ ##0.24
552
+ * Fix some links that had multiple lang tag
553
+
554
+ ##0.25
555
+ * Fix CSS style + subdirectory WP
556
+
557
+ ##0.26
558
+ * Now support images
559
+
560
+ ##0.27
561
+ * Adding 40+ languages + fix homepage bug
562
+
563
+ ##0.28
564
+ * Change button to customizable widget, also fix bug https+wp_home
565
+
566
+ ##0.29
567
+ * Fix is_html, add US flag possibility, fix link beginning with coutry code.
568
+
569
+ ##0.30
570
+ * Fix style, add on-boarding to help users, add link to dashboard translations.
571
+
572
+ ##0.31
573
+ * Adding ajax support for full html, fix style, fix link with wp_home
574
+
575
+ ##0.32
576
+ * Quick fix on links
577
+
578
+ ##0.33
579
+ * Add ajax for json-html
580
+
581
+ ##0.34
582
+ * Adding chat support to help user set up the plugin
583
+
584
+ ##0.35
585
+ * Rework classes + add search support (form tag)
586
+
587
+ ##0.36
588
+ * Remove trial period, replace by free plan
589
+
590
+ ##0.37
591
+ * More info on errors, translation limit from api
592
+
593
+ ##0.38
594
+ * Fix canonical transated link, support RTL & LTR customization, WG logo to meet Wp standard, translate alt attribute, add possibility to drop button anywhere
595
+
596
+ ##0.39
597
+ * Fix LTR CSS, api v2 transmit strings type, fix regex escaping
598
+
599
+ ##0.40
600
+ * Add PDF translate, fix simple dom limit, uninstall hook, no &lt;/body&gt; case.
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.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -210,8 +210,9 @@ See changelog for upgrade changes.
210
 
211
  == Changelog ==
212
 
213
- = 3.7.1 (15/06/2022) =
214
- * Add: Disable translate pdf and add filter to activate it
 
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.7.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.7.2 (20/06/2022) =
214
+ * Bugfix: Fix bug between apache_get_module() and wpengine.com
215
+ * Add: Add changelog file into plugin directory
216
 
217
  = Older versions =
218
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3df893462ebea7f347bc877b657c06b6::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
34
  'name' => 'weglot/translate-wordpress',
35
  ),
36
  'versions' =>
@@ -69,7 +69,7 @@ private static $installed = array (
69
  'aliases' =>
70
  array (
71
  ),
72
- 'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
73
  ),
74
  'weglot/translation-definitions' =>
75
  array (
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => 'cd55d607d852b2b73c6929e86c770b115c70b029',
34
  'name' => 'weglot/translate-wordpress',
35
  ),
36
  'versions' =>
69
  'aliases' =>
70
  array (
71
  ),
72
+ 'reference' => 'cd55d607d852b2b73c6929e86c770b115c70b029',
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 ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d', '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\ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequireb3f7ccf6e4bc92d8b4155b125d596c2d($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequireb3f7ccf6e4bc92d8b4155b125d596c2d($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 ComposerAutoloaderInit3df893462ebea7f347bc877b657c06b6
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit3df893462ebea7f347bc877b657c06b6', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit3df893462ebea7f347bc877b657c06b6', '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\ComposerStaticInit3df893462ebea7f347bc877b657c06b6::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\ComposerStaticInit3df893462ebea7f347bc877b657c06b6::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire3df893462ebea7f347bc877b657c06b6($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire3df893462ebea7f347bc877b657c06b6($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 ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
@@ -66,10 +66,10 @@ class ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d
66
  public static function getInitializer(ClassLoader $loader)
67
  {
68
  return \Closure::bind(function () use ($loader) {
69
- $loader->prefixLengthsPsr4 = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$prefixLengthsPsr4;
70
- $loader->prefixDirsPsr4 = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$prefixDirsPsr4;
71
- $loader->prefixesPsr0 = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$prefixesPsr0;
72
- $loader->classMap = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$classMap;
73
 
74
  }, null, ClassLoader::class);
75
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3df893462ebea7f347bc877b657c06b6
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 = ComposerStaticInit3df893462ebea7f347bc877b657c06b6::$prefixLengthsPsr4;
70
+ $loader->prefixDirsPsr4 = ComposerStaticInit3df893462ebea7f347bc877b657c06b6::$prefixDirsPsr4;
71
+ $loader->prefixesPsr0 = ComposerStaticInit3df893462ebea7f347bc877b657c06b6::$prefixesPsr0;
72
+ $loader->classMap = ComposerStaticInit3df893462ebea7f347bc877b657c06b6::$classMap;
73
 
74
  }, null, ClassLoader::class);
75
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
10
  'name' => 'weglot/translate-wordpress',
11
  ),
12
  'versions' =>
@@ -45,7 +45,7 @@
45
  'aliases' =>
46
  array (
47
  ),
48
- 'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
49
  ),
50
  'weglot/translation-definitions' =>
51
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'cd55d607d852b2b73c6929e86c770b115c70b029',
10
  'name' => 'weglot/translate-wordpress',
11
  ),
12
  'versions' =>
45
  'aliases' =>
46
  array (
47
  ),
48
+ 'reference' => 'cd55d607d852b2b73c6929e86c770b115c70b029',
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.7.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.7.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.7.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.7.2' );
26
  define( 'WEGLOT_PHP_MIN', '5.6' );
27
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
28
  define( 'WEGLOT_DIR', __DIR__ );