Under Construction - Version 3.91

Version Description

  • 2022/01/12
  • fix for Weglot integration
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Under Construction
Version 3.91
Comparing to
See all releases

Code changes from version 3.90 to 3.91

Files changed (2) hide show
  1. readme.txt +6 -2
  2. under-construction.php +3 -4
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: coming soon page, under construction mode, under construction, under const
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.8
7
- Stable tag: 3.90
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -23,7 +23,7 @@ A simple, no-nonsense under construction plugin for all those situations when yo
23
 
24
  Thanks to our partnership with <a href="https://wordpress.org/plugins/weglot/">Weglot</a>, UCP is fully multilanguage ready and you can instantly translate your under construction page to 100+ languages with one click.
25
 
26
- If you're having problems with SSL or HTTPS try our free <a href="https://wordpress.org/plugins/wp-force-ssl/">WP Force SSL</a> plugin. It's a great plugin to enable SSL.
27
 
28
  **Options**
29
 
@@ -135,6 +135,10 @@ Or if needed, upload manually;
135
 
136
  == Changelog ==
137
 
 
 
 
 
138
  = 3.90 =
139
  * 2022/01/05
140
  * security fixes
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.8
7
+ Stable tag: 3.91
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
23
 
24
  Thanks to our partnership with <a href="https://wordpress.org/plugins/weglot/">Weglot</a>, UCP is fully multilanguage ready and you can instantly translate your under construction page to 100+ languages with one click.
25
 
26
+ If you're having problems with SSL or HTTPS try our free <a href="https://wordpress.org/plugins/wp-force-ssl/">WP Force SSL</a> plugin. It's a great plugin to enable SSL and fix SSL problems.
27
 
28
  **Options**
29
 
135
 
136
  == Changelog ==
137
 
138
+ = 3.91 =
139
+ * 2022/01/12
140
+ * fix for Weglot integration
141
+
142
  = 3.90 =
143
  * 2022/01/05
144
  * security fixes
under-construction.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: https://underconstructionpage.com/
5
  Description: Put your site behind a great looking under construction, coming soon, maintenance mode or landing page.
6
  Author: WebFactory Ltd
7
- Version: 3.90
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.8
@@ -1522,14 +1522,13 @@ class UCP
1522
  $active_languages = weglot_get_destination_languages();
1523
  $languages = weglot_get_languages_available();
1524
  $original_language = weglot_get_original_language();
1525
-
1526
  echo '<p>Your under construction page is currently available in the following languages.<br>To add more languages and configure translations open <a href="' . esc_url(admin_url('admin.php?page=weglot-settings')) . '">Weglot settings</a>.</p>';
1527
  echo '<ul class="ucp-list">';
1528
  foreach ($languages as $language) {
1529
- if ($language->getIso639() == $original_language) {
1530
  $tmp = '<li>' . esc_html($language->getEnglishName()) . ' - original language</li>' . $tmp;
1531
  }
1532
- if (in_array($language->getIso639(), $active_languages, true)) {
1533
  $tmp .= '<li>' . esc_html($language->getLocalName()) . '</li>';
1534
  }
1535
  } // foreach language
4
  Plugin URI: https://underconstructionpage.com/
5
  Description: Put your site behind a great looking under construction, coming soon, maintenance mode or landing page.
6
  Author: WebFactory Ltd
7
+ Version: 3.91
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.8
1522
  $active_languages = weglot_get_destination_languages();
1523
  $languages = weglot_get_languages_available();
1524
  $original_language = weglot_get_original_language();
 
1525
  echo '<p>Your under construction page is currently available in the following languages.<br>To add more languages and configure translations open <a href="' . esc_url(admin_url('admin.php?page=weglot-settings')) . '">Weglot settings</a>.</p>';
1526
  echo '<ul class="ucp-list">';
1527
  foreach ($languages as $language) {
1528
+ if ($language->getExternalCode() == $original_language) {
1529
  $tmp = '<li>' . esc_html($language->getEnglishName()) . ' - original language</li>' . $tmp;
1530
  }
1531
+ if (in_array($language->getExternalCode(), $active_languages, true)) {
1532
  $tmp .= '<li>' . esc_html($language->getLocalName()) . '</li>';
1533
  }
1534
  } // foreach language