Under Construction - Version 3.93

Version Description

  • 2022/04/13
  • Fix for escaping HTML that shouldn't be escaped
Download this release

Release Info

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

Code changes from version 3.92 to 3.93

Files changed (3) hide show
  1. css/ucp-admin.css +1 -1
  2. readme.txt +6 -2
  3. under-construction.php +6 -6
css/ucp-admin.css CHANGED
@@ -4,7 +4,7 @@
4
  * (c) Web factory Ltd, 2015 - 2022
5
  */
6
 
7
- @import url('//fonts.googleapis.com/css?family=Roboto:900');
8
 
9
  .settings_page_ucp .button-primary,
10
  .settings_page_ucp .button.button-primary {
4
  * (c) Web factory Ltd, 2015 - 2022
5
  */
6
 
7
+ @import url('//fonts.googleapis.com/css?family=Roboto:400,500,600,900');
8
 
9
  .settings_page_ucp .button-primary,
10
  .settings_page_ucp .button.button-primary {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: WebFactory
3
  Tags: coming soon page, under construction mode, under construction, under construction page, coming soon, maintenance mode, maintenance page, launch page, coming soon mode, maintenance mode page, offline page, maintenance, landing page
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
- Tested up to: 5.9
7
- Stable tag: 3.92
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -135,6 +135,10 @@ Or if needed, upload manually;
135
 
136
  == Changelog ==
137
 
 
 
 
 
138
  = 3.92 =
139
  * 2022/01/13
140
  * Google Analytics fix
3
  Tags: coming soon page, under construction mode, under construction, under construction page, coming soon, maintenance mode, maintenance page, launch page, coming soon mode, maintenance mode page, offline page, maintenance, landing page
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
+ Tested up to: 6.1
7
+ Stable tag: 3.93
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
135
 
136
  == Changelog ==
137
 
138
+ = 3.93 =
139
+ * 2022/04/13
140
+ * Fix for escaping HTML that shouldn't be escaped
141
+
142
  = 3.92 =
143
  * 2022/01/13
144
  * Google Analytics fix
under-construction.php CHANGED
@@ -4,10 +4,10 @@
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.92
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
- Tested up to: 5.8
11
  Author URI: https://www.webfactoryltd.com/
12
  Text Domain: under-construction-page
13
 
@@ -24,7 +24,7 @@
24
 
25
  You should have received a copy of the GNU General Public License
26
  along with this program; if not, write to the Free Software
27
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
  */
29
 
30
  // this is an include only WP file
@@ -147,7 +147,7 @@ class UCP
147
  // display error message if WP version is too low
148
  static function notice_min_wp_version()
149
  {
150
- echo '<div class="error"><p>' . sprintf(esc_attr__('UnderConstruction plugin <b>requires WordPress version 4.0</b> or higher to function properly. You are using WordPress version %s. Please <a href="%s">update it</a>.', 'under-construction-page'), get_bloginfo('version'), admin_url('update-core.php')) . '</p></div>';
151
  } // notice_min_wp_version_error
152
 
153
 
@@ -781,7 +781,7 @@ class UCP
781
  !self::is_construction_mode_enabled(false)
782
  )
783
  // keeping everything inline due to minimal CSS
784
- echo '<div style="background-color: #333; line-height: 140%; font-size: 14px; position: fixed; display: block; top: 50px; z-index: 99999; color: #fefefe; padding: 20px 35px 20px 20px; width: 500px; border: thin solid #fefefe; left: -1px;"><a style="color: #ea1919; font-weight: 900; text-decoration: none; position: absolute; top: 7px; right: 10px;" href="' . esc_url($dismiss_url) . '" alt="Dismiss notice" onclick="window.location.href = \'' . esc_url($dismiss_url) . '\'; return false;" title="Dismiss notice">X</a><b>' . esc_attr__('<b>Under Construction Mode is enabled</b> but you are whitelisted so you see the normal site.', 'under-construction-page') . '<br><a href="' . esc_url(get_home_url()) . '/?ucp_preview" style="text-decoration: underline; color: #fefefe;">' . esc_attr__('Preview UnderConstructionPage', 'under-construction-page') . '</a><br><a href="' . esc_url(admin_url('options-general.php?page=ucp')) . '" style="text-decoration: underline; color: #fefefe;">' . esc_attr__('Configure UnderConstructionPage', 'under-construction-page') . '</a></div>';
785
  } // whitelisted_notification
786
 
787
 
@@ -1059,7 +1059,7 @@ class UCP
1059
  static function login_message($message)
1060
  {
1061
  if (self::is_construction_mode_enabled(true)) {
1062
- $message .= '<div class="message">' . esc_attr__('Under Construction Mode is <b>enabled</b>.', 'under-construction-page') . '</div>';
1063
  }
1064
 
1065
  return $message;
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.93
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
+ Tested up to: 6.0
11
  Author URI: https://www.webfactoryltd.com/
12
  Text Domain: under-construction-page
13
 
24
 
25
  You should have received a copy of the GNU General Public License
26
  along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
  */
29
 
30
  // this is an include only WP file
147
  // display error message if WP version is too low
148
  static function notice_min_wp_version()
149
  {
150
+ echo '<div class="error"><p>' . sprintf(__('UnderConstruction plugin <b>requires WordPress version 4.0</b> or higher to function properly. You are using WordPress version %s. Please <a href="%s">update it</a>.', 'under-construction-page'), get_bloginfo('version'), admin_url('update-core.php')) . '</p></div>';
151
  } // notice_min_wp_version_error
152
 
153
 
781
  !self::is_construction_mode_enabled(false)
782
  )
783
  // keeping everything inline due to minimal CSS
784
+ echo '<div style="background-color: #333; line-height: 140%; font-size: 14px; position: fixed; display: block; top: 50px; z-index: 99999; color: #fefefe; padding: 20px 35px 20px 20px; width: 500px; border: thin solid #fefefe; left: -1px;"><a style="color: #ea1919; font-weight: 900; text-decoration: none; position: absolute; top: 7px; right: 10px;" href="' . esc_url($dismiss_url) . '" alt="Dismiss notice" onclick="window.location.href = \'' . esc_url($dismiss_url) . '\'; return false;" title="Dismiss notice">X</a>' . __('<b>Under Construction Mode is enabled</b> but you are whitelisted so you see the normal site.', 'under-construction-page') . '<br><a href="' . esc_url(get_home_url()) . '/?ucp_preview" style="text-decoration: underline; color: #fefefe;">' . esc_attr__('Preview UnderConstructionPage', 'under-construction-page') . '</a><br><a href="' . esc_url(admin_url('options-general.php?page=ucp')) . '" style="text-decoration: underline; color: #fefefe;">' . esc_attr__('Configure UnderConstructionPage', 'under-construction-page') . '</a></div>';
785
  } // whitelisted_notification
786
 
787
 
1059
  static function login_message($message)
1060
  {
1061
  if (self::is_construction_mode_enabled(true)) {
1062
+ $message .= '<div class="message">' . __('Under Construction Mode is <b>enabled</b>.', 'under-construction-page') . '</div>';
1063
  }
1064
 
1065
  return $message;