Minimal Coming Soon & Maintenance Mode - Version 1.87

Version Description

  • 2018-11-27
  • wp_redirect() vulnerability fix
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Minimal Coming Soon & Maintenance Mode
Version 1.87
Comparing to
See all releases

Code changes from version 1.85 to 1.87

framework/admin/init.php CHANGED
@@ -21,12 +21,62 @@ function csmm_add_menu() {
21
 
22
  // Loading the JS conditionally
23
  add_action( 'load-' . $signals_csmm_menu, 'csmm_load_scripts' );
24
- add_action( 'admin_action_csmm_install_mailoptin', 'csmm_install_mailoptin');
25
  }
26
 
27
  }
28
  add_action( 'admin_menu', 'csmm_add_menu' );
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  // disabled till further notice
32
  function csmm_chat_available() {
@@ -183,6 +233,8 @@ function csmm_plugin_admin_init() {
183
 
184
  add_action('admin_action_csmm_activate_theme', 'csmm_activate_theme');
185
  add_action('admin_action_csmm_export_settings', 'csmm_export_settings');
 
 
186
  } // csmm_plugin_admin_init
187
 
188
  add_action( 'init', 'csmm_plugin_admin_init' );
@@ -323,9 +375,9 @@ function csmm_activate_theme() {
323
  }
324
 
325
  if (!empty($_GET['redirect'])) {
326
- wp_redirect($_GET['redirect']);
327
  } else {
328
- wp_redirect(admin_url());
329
  }
330
 
331
  exit;
21
 
22
  // Loading the JS conditionally
23
  add_action( 'load-' . $signals_csmm_menu, 'csmm_load_scripts' );
24
+ add_action( 'admin_action_csmm_install_mailoptin', 'csmm_install_mailoptin' );
25
  }
26
 
27
  }
28
  add_action( 'admin_menu', 'csmm_add_menu' );
29
 
30
+ function csmm_featured_plugins_tab($args) {
31
+ add_filter('plugins_api_result', 'csmm_plugins_api_result', 10, 3);
32
+
33
+ return $args;
34
+ } // featured_plugins_tab
35
+
36
+ function csmm_add_plugin_favs($plugin_slug, $res) {
37
+ if (is_array($res->plugins)) {
38
+ foreach ($res->plugins as $plugin) {
39
+ if ($plugin->slug == $plugin_slug) {
40
+ return $res;
41
+ }
42
+ } // foreach
43
+ }
44
+
45
+ if ($plugin_info = get_transient('wf-plugin-info-' . $plugin_slug)) {
46
+ $res->plugins[] = $plugin_info;
47
+ } else {
48
+ $plugin_info = plugins_api('plugin_information', array(
49
+ 'slug' => $plugin_slug,
50
+ 'is_ssl' => is_ssl(),
51
+ 'fields' => array(
52
+ 'banners' => true,
53
+ 'reviews' => true,
54
+ 'downloaded' => true,
55
+ 'active_installs' => true,
56
+ 'icons' => true,
57
+ 'short_description' => true,
58
+ )
59
+ ));
60
+ if (!is_wp_error($plugin_info)) {
61
+ $res->plugins[] = $plugin_info;
62
+ set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7);
63
+ }
64
+ }
65
+
66
+ return $res;
67
+ } // csmm_add_plugins_favs
68
+
69
+
70
+ // add our plugins to recommended list
71
+ function csmm_plugins_api_result($res, $action, $args) {
72
+ remove_filter('plugins_api_result', 'csmm_plugins_api_result', 10, 3);
73
+
74
+ $res = csmm_add_plugin_favs('mailoptin', $res);
75
+ $res = csmm_add_plugin_favs('security-ninja', $res);
76
+
77
+ return $res;
78
+ } // plugins_api_result
79
+
80
 
81
  // disabled till further notice
82
  function csmm_chat_available() {
233
 
234
  add_action('admin_action_csmm_activate_theme', 'csmm_activate_theme');
235
  add_action('admin_action_csmm_export_settings', 'csmm_export_settings');
236
+
237
+ add_filter('install_plugins_table_api_args_featured', 'csmm_featured_plugins_tab');
238
  } // csmm_plugin_admin_init
239
 
240
  add_action( 'init', 'csmm_plugin_admin_init' );
375
  }
376
 
377
  if (!empty($_GET['redirect'])) {
378
+ wp_safe_redirect($_GET['redirect']);
379
  } else {
380
+ wp_safe_redirect(admin_url());
381
  }
382
 
383
  exit;
framework/admin/views/settings-design.php CHANGED
@@ -236,7 +236,7 @@ array('val' => '-1', 'label' => ' rollIn'));
236
  <div class="signals-form-group">
237
  <label for="animation" class="signals-strong">Content Intro Animation<sup>PRO</sup></label>
238
  <select name="animation" id="animation" class="skip-save pro-option">
239
- <?php echo csmm_create_select_options($animations, $signals_csmm_options['animation']); ?>
240
  </select>
241
  <p class="signals-form-help-block">When the page loads, the content will be animated on to the page with the selected animation. Use the <a href="https://comingsoonwp.com/content-animations/" target="_blank">animation previews</a> for easier picking. This is a <a href="#pro" class="csmm-change-tab">PRO feature</a>.</p>
242
  </div>
236
  <div class="signals-form-group">
237
  <label for="animation" class="signals-strong">Content Intro Animation<sup>PRO</sup></label>
238
  <select name="animation" id="animation" class="skip-save pro-option">
239
+ <?php echo csmm_create_select_options($animations, @$signals_csmm_options['animation']); ?>
240
  </select>
241
  <p class="signals-form-help-block">When the page loads, the content will be animated on to the page with the selected animation. Use the <a href="https://comingsoonwp.com/content-animations/" target="_blank">animation previews</a> for easier picking. This is a <a href="#pro" class="csmm-change-tab">PRO feature</a>.</p>
242
  </div>
framework/init.php CHANGED
@@ -97,7 +97,7 @@ class CSMM {
97
  // change status via admin bar
98
  static function change_status() {
99
  if (empty($_GET['new_status'])) {
100
- wp_redirect(admin_url());
101
  exit;
102
  }
103
 
@@ -112,9 +112,9 @@ class CSMM {
112
  update_option('signals_csmm_options', $options);
113
 
114
  if (!empty($_GET['redirect'])) {
115
- wp_redirect($_GET['redirect']);
116
  } else {
117
- wp_redirect(admin_url());
118
  }
119
 
120
  exit;
@@ -146,4 +146,4 @@ add_action('init', array('csmm_license', 'init'));
146
  $out = $base_url . $page . '?' . http_build_query($parts, '', '&amp;') . $anchor;
147
 
148
  return $out;
149
- } // generate_web_link
97
  // change status via admin bar
98
  static function change_status() {
99
  if (empty($_GET['new_status'])) {
100
+ wp_safe_redirect(admin_url());
101
  exit;
102
  }
103
 
112
  update_option('signals_csmm_options', $options);
113
 
114
  if (!empty($_GET['redirect'])) {
115
+ wp_safe_redirect($_GET['redirect']);
116
  } else {
117
+ wp_safe_redirect(admin_url());
118
  }
119
 
120
  exit;
146
  $out = $base_url . $page . '?' . http_build_query($parts, '', '&amp;') . $anchor;
147
 
148
  return $out;
149
+ } // generate_web_link
minimal-coming-soon-maintenance-mode.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Minimal Coming Soon & Maintenance Mode
4
  * Plugin URI: https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/
5
  * Description: Simply awesome coming soon & maintenance mode plugin. Super-simple to use. MailChimp support built-in.
6
- * Version: 1.85
7
  * Author: WebFactory
8
  * Author URI: https://www.webfactoryltd.com
9
  * License: GPLv3
3
  * Plugin Name: Minimal Coming Soon & Maintenance Mode
4
  * Plugin URI: https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/
5
  * Description: Simply awesome coming soon & maintenance mode plugin. Super-simple to use. MailChimp support built-in.
6
+ * Version: 1.87
7
  * Author: WebFactory
8
  * Author URI: https://www.webfactoryltd.com
9
  * License: GPLv3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.0
7
- Stable tag: 1.85
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -14,7 +14,7 @@ Beautiful Coming Soon, Maintenance Mode & Landing Page - easy to use! GDPR compl
14
  == Description ==
15
  The <a href="https://comingsoonwp.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=top">Minimal Coming Soon & Maintenance Mode</a> plugin allows you to **quickly & easily** set up a Coming Soon, Maintenance Mode, Landing Page or Launch Page for your website.
16
 
17
- It's simple + flexible and works with any WordPress theme & plugin. You'll have full control over the frontend of the website and can modify almost every aspect of the Coming Soon or Maintenance Mode page per your needs. Easily connects with MailChimp API so that you can **collect emails** from visitors and it's fully GDPR compliant.
18
 
19
  You can collect leads and subscribers via optin boxes or via optin popups thanks to our integration with <a href="https://wordpress.org/plugins/mailoptin/">MailOptin</a>. A great, free plugin that connects to Aweber, Constant Contact and numerous other autoresponder services allowing you to easily collect emails from the moment your coming soon page is up.
20
 
@@ -74,13 +74,21 @@ Yes and no. When activated it enables itself across the entire WP-MU network.
74
  == Screenshots ==
75
 
76
  1. Fast & intuitive interface lets you create coming soon pages in minutes
77
- 2. Simple maintenance page
78
- 3. Minimal Coming soon page
79
- 4. Fully responsive design
80
- 5. Get support from within the plugin
 
 
 
81
 
82
 
83
  == Changelog ==
 
 
 
 
 
84
  = 1.85 =
85
  * 2018-11-15
86
  * minor bug fixes
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.0
7
+ Stable tag: 1.87
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
14
  == Description ==
15
  The <a href="https://comingsoonwp.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=top">Minimal Coming Soon & Maintenance Mode</a> plugin allows you to **quickly & easily** set up a Coming Soon, Maintenance Mode, Landing Page or Launch Page for your website.
16
 
17
+ It's simple + flexible and works with any WordPress theme & plugin. You'll have full control over the frontend of the website and can modify almost every aspect of the Coming Soon or Maintenance Mode page per your needs. Easily connects with MailChimp API so that you can **collect emails** from visitors and it's fully GDPR compliant. Have a look at the <a href="https://comingsoonwp.com/documentation-free/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=official-documentation">official documentation</a> for more info.
18
 
19
  You can collect leads and subscribers via optin boxes or via optin popups thanks to our integration with <a href="https://wordpress.org/plugins/mailoptin/">MailOptin</a>. A great, free plugin that connects to Aweber, Constant Contact and numerous other autoresponder services allowing you to easily collect emails from the moment your coming soon page is up.
20
 
74
  == Screenshots ==
75
 
76
  1. Fast & intuitive interface lets you create coming soon pages in minutes
77
+ 2. Create beautiful coming soon pages in minutes
78
+ 3. Easily collect emails
79
+ 4. Adjust the page to fit any brand or business
80
+ 5. Simple maintenance page
81
+ 6. Minimal Coming soon page
82
+ 7. Fully responsive design
83
+ 8. Get support from within the plugin
84
 
85
 
86
  == Changelog ==
87
+
88
+ = 1.87 =
89
+ * 2018-11-27
90
+ * wp_redirect() vulnerability fix
91
+
92
  = 1.85 =
93
  * 2018-11-15
94
  * minor bug fixes