Under Construction - Version 3.87

Version Description

  • 2021/01/30
  • removed promo for WF plugins
Download this release

Release Info

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

Code changes from version 3.86 to 3.87

Files changed (3) hide show
  1. readme.txt +9 -9
  2. under-construction.php +2 -68
  3. wf-flyout/config.php +2 -2
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.6
7
- Stable tag: 3.86
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -13,26 +13,23 @@ Easy to use Under Construction Page & Coming Soon Page. Enable Under Constructio
13
 
14
  == Description ==
15
 
16
- Create an Under Construction Page, Maintenance Mode Page, Coming Soon Page or a Landing Page that takes **less than a minute to install & configure**. Under Construction won't waste your time! It's simple, fast, efficient & user-friendly with <a href="https://underconstructionpage.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=great-designs#designs">great templates</a> users love.
17
 
18
  [youtube https://www.youtube.com/watch?v=fqqWrQENSDc]
19
 
20
- > **PRO** version offers more than 50 extra features and options including the drag&drop builder, over a million hi-res searchable images, 200+ templates, affiliate&traffic tracking, advanced access control, MailChimp, Zapier & universal autoresponder integration, white-label license mode and priority support. Find out more on the <a href="https://underconstructionpage.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=official-site">official plugin site</a>.
21
 
22
- A simple, no-nonsense under construction plugin for all those situations when you have to hide the site behind an Under Construction page for a while. Live examples are available on the <a href="https://underconstructionpage.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=website">Under Construction website</a>. Give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a> or check out the <a href="https://youtu.be/fqqWrQENSDc">video</a>.
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
- Let <a href="https://wordpress.org/plugins/security-ninja/">Security Ninja</a> take care of your site's security from day one! Run over 50 security tests with one click. Get a detailed report and automatically fix security issues. Download it from the official wp.org repo for free.
27
-
28
- Web accessibility is not an option in 2021! Making your site accessible to visitors with disabilities will save you from hefty fines and instantly grow your audience. That's why we've partnered with <a href="https://wordpress.org/plugins/accessibe/">accessiBe</a> - the fully automated AI service for web accessibility. Download their free plugin, connect to the service, and make your site fully accessible in a few clicks.
29
 
30
  **Options**
31
 
32
  * Under construction mode - on / off
33
  * Automatic End date & time - automatically disable under construction mode on a set date
34
  * Google Analytics Tracking ID - enable tracking via Google Analytics
35
- * Theme - <a href="https://underconstructionpage.com/templates/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=available-themes">test all available themes (200+)</a>
36
  * Custom CSS - adjust any part of the page to fit your needs
37
  * Title - page title, for SEO
38
  * Description - page description, for SEO
@@ -68,7 +65,6 @@ Under Construction Page is compatible with the following caching plugins: W3 Tot
68
  * <a href="https://www.webhostingsecretrevealed.net/blog/blogging-tips/how-to-grow-your-blog-before-it-is-born/">WHSR</a> wrote an in-depth guide on how to "Grow Your Blog Before It Is Born" featuring Under Construction Page
69
  * John Fraskos from <a href="https://codestag.com/setting-wordpress-theme-easily-create-construction-page/">Codestag</a> says it's "very friendly and easy to use"
70
  * <a href="http://wppluginsify.com/interface-elements/professional-construction-page/">WP Pluginsify</a> wrote a review
71
- * <a href="https://www.wpmayor.com/set-construction-page-wordpress/">WP Major</a> wrote a review too
72
  * Erik from <a href="http://nopassiveincome.com/under-construction-page-plugin-review/">NoPassiveIncome</a> points out: "plugin is so easy and quick to use"
73
  * <a href="https://planetwp.com/underconstruction-page-plugin/">Planet WP</a> gave it 5/5 stars
74
  * <a href="https://firstsiteguide.com/under-construction-page-review/">FirstSiteGuide</a> says: "a perfect choice"
@@ -138,6 +134,10 @@ Or if needed, upload manually;
138
 
139
  == Changelog ==
140
 
 
 
 
 
141
  = 3.86 =
142
  * 2021/01/20
143
  * security fixes
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.6
7
+ Stable tag: 3.87
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
13
 
14
  == Description ==
15
 
16
+ Create an Under Construction Page, Maintenance Mode Page, Coming Soon Page or a Landing Page that takes **less than a minute to install & configure**. Under Construction won't waste your time! It's simple, fast, efficient & user-friendly with <a href="https://underconstructionpage.com/#designs">great templates</a> users love.
17
 
18
  [youtube https://www.youtube.com/watch?v=fqqWrQENSDc]
19
 
20
+ > **PRO** version offers more than 50 extra features and options including the drag&drop builder, over a million hi-res searchable images, 200+ templates, affiliate&traffic tracking, advanced access control, MailChimp, Zapier & universal autoresponder integration, white-label license mode and priority support. Find out more on the <a href="https://underconstructionpage.com/">official plugin site</a>.
21
 
22
+ A simple, no-nonsense under construction plugin for all those situations when you have to hide the site behind an Under Construction page for a while. Live examples are available on the <a href="https://underconstructionpage.com/">Under Construction website</a>. Give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a> or check out the <a href="https://youtu.be/fqqWrQENSDc">video</a>.
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
 
27
  **Options**
28
 
29
  * Under construction mode - on / off
30
  * Automatic End date & time - automatically disable under construction mode on a set date
31
  * Google Analytics Tracking ID - enable tracking via Google Analytics
32
+ * Theme - <a href="https://underconstructionpage.com/templates/">test all available themes (200+)</a>
33
  * Custom CSS - adjust any part of the page to fit your needs
34
  * Title - page title, for SEO
35
  * Description - page description, for SEO
65
  * <a href="https://www.webhostingsecretrevealed.net/blog/blogging-tips/how-to-grow-your-blog-before-it-is-born/">WHSR</a> wrote an in-depth guide on how to "Grow Your Blog Before It Is Born" featuring Under Construction Page
66
  * John Fraskos from <a href="https://codestag.com/setting-wordpress-theme-easily-create-construction-page/">Codestag</a> says it's "very friendly and easy to use"
67
  * <a href="http://wppluginsify.com/interface-elements/professional-construction-page/">WP Pluginsify</a> wrote a review
 
68
  * Erik from <a href="http://nopassiveincome.com/under-construction-page-plugin-review/">NoPassiveIncome</a> points out: "plugin is so easy and quick to use"
69
  * <a href="https://planetwp.com/underconstruction-page-plugin/">Planet WP</a> gave it 5/5 stars
70
  * <a href="https://firstsiteguide.com/under-construction-page-review/">FirstSiteGuide</a> says: "a perfect choice"
134
 
135
  == Changelog ==
136
 
137
+ = 3.87 =
138
+ * 2021/01/30
139
+ * removed promo for WF plugins
140
+
141
  = 3.86 =
142
  * 2021/01/20
143
  * 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.86
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.6
@@ -102,9 +102,6 @@ class UCP {
102
  add_action('wp_ajax_ucp_dismiss_survey', array(__CLASS__, 'dismiss_survey_ajax'));
103
  add_action('wp_ajax_ucp_submit_survey', array(__CLASS__, 'submit_survey_ajax'));
104
  add_action('wp_ajax_ucp_submit_support_message', array(__CLASS__, 'submit_support_message_ajax'));
105
-
106
- add_filter('install_plugins_table_api_args_featured', array(__CLASS__, 'featured_plugins_tab'));
107
- add_filter('install_plugins_table_api_args_recommended', array(__CLASS__, 'featured_plugins_tab'));
108
  } else {
109
  // main plugin logic
110
  add_action('wp', array(__CLASS__, 'display_construction_page'), 0, 1);
@@ -1188,7 +1185,7 @@ class UCP {
1188
  break;
1189
  case 'heading1':
1190
  case 'content':
1191
- $options[$key] = wp_kses(trim($value), wp_kses_allowed_html('post'));
1192
  break;
1193
  case 'custom_css':
1194
  case 'social_facebook':
@@ -2518,69 +2515,6 @@ class UCP {
2518
  } // is_weglot_setup
2519
 
2520
 
2521
- // helper function for adding plugins to fav list
2522
- static function featured_plugins_tab($args) {
2523
- add_filter('plugins_api_result', array(__CLASS__, 'plugins_api_result'), 10, 3);
2524
-
2525
- return $args;
2526
- } // featured_plugins_tab
2527
-
2528
-
2529
- // add single plugin to list of favs
2530
- static function add_plugin_favs($plugin_slug, $res) {
2531
- if (!isset($res->plugins) || !is_array($res->plugins)) {
2532
- return $res;
2533
- }
2534
-
2535
- if (!empty($res->plugins) && is_array($res->plugins)) {
2536
- foreach ($res->plugins as $plugin) {
2537
- if (is_object($plugin) && !empty($plugin->slug) && $plugin->slug == $plugin_slug) {
2538
- return $res;
2539
- }
2540
- } // foreach
2541
- }
2542
-
2543
- $plugin_info = get_transient('wf-plugin-info-' . $plugin_slug);
2544
-
2545
- if (!$plugin_info) {
2546
- $plugin_info = plugins_api('plugin_information', array(
2547
- 'slug' => $plugin_slug,
2548
- 'is_ssl' => is_ssl(),
2549
- 'fields' => array(
2550
- 'banners' => true,
2551
- 'reviews' => true,
2552
- 'downloaded' => true,
2553
- 'active_installs' => true,
2554
- 'icons' => true,
2555
- 'short_description' => true,
2556
- )
2557
- ));
2558
- if (!is_wp_error($plugin_info)) {
2559
- set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7);
2560
- }
2561
- }
2562
-
2563
- if ($plugin_info && !is_wp_error($plugin_info)) {
2564
- array_unshift($res->plugins, $plugin_info);
2565
- }
2566
-
2567
- return $res;
2568
- } // add_plugin_favs
2569
-
2570
-
2571
- // add our plugins to recommended list
2572
- static function plugins_api_result($res, $action, $args) {
2573
- remove_filter('plugins_api_result', array(__CLASS__, 'plugins_api_result'), 10, 3);
2574
-
2575
- $res = self::add_plugin_favs('eps-301-redirects', $res);
2576
- $res = self::add_plugin_favs('simple-author-box', $res);
2577
- $res = self::add_plugin_favs('security-ninja', $res);
2578
- $res = self::add_plugin_favs('accessibe', $res);
2579
-
2580
- return $res;
2581
- } // plugins_api_result
2582
-
2583
-
2584
  // reset pointers on activation
2585
  static function activate() {
2586
  self::reset_pointers();
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.87
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.6
102
  add_action('wp_ajax_ucp_dismiss_survey', array(__CLASS__, 'dismiss_survey_ajax'));
103
  add_action('wp_ajax_ucp_submit_survey', array(__CLASS__, 'submit_survey_ajax'));
104
  add_action('wp_ajax_ucp_submit_support_message', array(__CLASS__, 'submit_support_message_ajax'));
 
 
 
105
  } else {
106
  // main plugin logic
107
  add_action('wp', array(__CLASS__, 'display_construction_page'), 0, 1);
1185
  break;
1186
  case 'heading1':
1187
  case 'content':
1188
+ $options[$key] = trim(wp_kses($value, wp_kses_allowed_html('post')));
1189
  break;
1190
  case 'custom_css':
1191
  case 'social_facebook':
2515
  } // is_weglot_setup
2516
 
2517
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2518
  // reset pointers on activation
2519
  static function activate() {
2520
  self::reset_pointers();
wf-flyout/config.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  $config['plugin_screen'] = 'settings_page_ucp';
3
  $config['icon_border'] = '2px solid #ff7900';
4
- $config['icon_right'] = '35px';
5
- $config['icon_bottom'] = '35px';
6
  $config['icon_image'] = 'ucp.png';
7
  $config['icon_padding'] = '6px';
8
  $config['icon_size'] = '55px';
1
  <?php
2
  $config['plugin_screen'] = 'settings_page_ucp';
3
  $config['icon_border'] = '2px solid #ff7900';
4
+ $config['icon_right'] = '40px';
5
+ $config['icon_bottom'] = '30px';
6
  $config['icon_image'] = 'ucp.png';
7
  $config['icon_padding'] = '6px';
8
  $config['icon_size'] = '55px';