Version Description
(04/09/2014) = * Removed "Author Link" option from General * Countdown - save details fix
Download this release
Release Info
Developer | GeorgeJipa |
Plugin | WP Maintenance Mode |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- includes/classes/wp-maintenance-mode-admin.php +3 -4
- includes/classes/wp-maintenance-mode.php +2 -7
- readme.txt +5 -1
- views/maintenance.php +0 -6
- views/settings.php +0 -10
- wp-maintenance-mode.php +1 -1
includes/classes/wp-maintenance-mode-admin.php
CHANGED
@@ -201,7 +201,6 @@ if (!class_exists('WP_Maintenance_Mode_Admin')) {
|
|
201 |
$_POST['options']['general']['exclude'] = array();
|
202 |
}
|
203 |
$_POST['options']['general']['notice'] = (int) $_POST['options']['general']['notice'];
|
204 |
-
$_POST['options']['general']['author_link'] = (int) $_POST['options']['general']['author_link'];
|
205 |
|
206 |
// delete cache everytime
|
207 |
$this->delete_cache();
|
@@ -256,9 +255,9 @@ if (!class_exists('WP_Maintenance_Mode_Admin')) {
|
|
256 |
$_POST['options']['modules']['countdown_status'] = (int) $_POST['options']['modules']['countdown_status'];
|
257 |
$_POST['options']['modules']['countdown_start'] = sanitize_text_field($_POST['options']['modules']['countdown_start']);
|
258 |
$_POST['options']['modules']['countdown_details'] = array_map('trim', $_POST['options']['modules']['countdown_details']);
|
259 |
-
$_POST['options']['modules']['countdown_details']['days'] =
|
260 |
-
$_POST['options']['modules']['countdown_details']['hours'] =
|
261 |
-
$_POST['options']['modules']['countdown_details']['minutes'] =
|
262 |
if (!empty($_POST['options']['modules']['countdown_color'])) {
|
263 |
$_POST['options']['modules']['countdown_color'] = sanitize_text_field($_POST['options']['modules']['countdown_color']);
|
264 |
$custom_css['countdown_color'] = '.wrap .countdown span { color: ' . $_POST['options']['modules']['countdown_color'] . '; }';
|
201 |
$_POST['options']['general']['exclude'] = array();
|
202 |
}
|
203 |
$_POST['options']['general']['notice'] = (int) $_POST['options']['general']['notice'];
|
|
|
204 |
|
205 |
// delete cache everytime
|
206 |
$this->delete_cache();
|
255 |
$_POST['options']['modules']['countdown_status'] = (int) $_POST['options']['modules']['countdown_status'];
|
256 |
$_POST['options']['modules']['countdown_start'] = sanitize_text_field($_POST['options']['modules']['countdown_start']);
|
257 |
$_POST['options']['modules']['countdown_details'] = array_map('trim', $_POST['options']['modules']['countdown_details']);
|
258 |
+
$_POST['options']['modules']['countdown_details']['days'] = isset($_POST['options']['modules']['countdown_details']['days']) && is_numeric($_POST['options']['modules']['countdown_details']['days']) ? $_POST['options']['modules']['countdown_details']['days'] : 0;
|
259 |
+
$_POST['options']['modules']['countdown_details']['hours'] = isset($_POST['options']['modules']['countdown_details']['hours']) && is_numeric($_POST['options']['modules']['countdown_details']['hours']) ? $_POST['options']['modules']['countdown_details']['hours'] : 1;
|
260 |
+
$_POST['options']['modules']['countdown_details']['minutes'] = isset($_POST['options']['modules']['countdown_details']['minutes']) && is_numeric($_POST['options']['modules']['countdown_details']['minutes']) ? $_POST['options']['modules']['countdown_details']['minutes'] : 0;
|
261 |
if (!empty($_POST['options']['modules']['countdown_color'])) {
|
262 |
$_POST['options']['modules']['countdown_color'] = sanitize_text_field($_POST['options']['modules']['countdown_color']);
|
263 |
$custom_css['countdown_color'] = '.wrap .countdown span { color: ' . $_POST['options']['modules']['countdown_color'] . '; }';
|
includes/classes/wp-maintenance-mode.php
CHANGED
@@ -3,7 +3,7 @@ if (!class_exists('WP_Maintenance_Mode')) {
|
|
3 |
|
4 |
class WP_Maintenance_Mode {
|
5 |
|
6 |
-
const VERSION = '2.0.
|
7 |
|
8 |
protected $plugin_slug = 'wp-maintenance-mode';
|
9 |
protected $plugin_settings;
|
@@ -85,8 +85,7 @@ if (!class_exists('WP_Maintenance_Mode')) {
|
|
85 |
4 => 'wp-admin',
|
86 |
5 => 'wp-admin/admin-ajax.php'
|
87 |
),
|
88 |
-
'notice' => 1
|
89 |
-
'author_link' => 1
|
90 |
),
|
91 |
'design' => array(
|
92 |
'title' => __('Maintenance mode', $this->plugin_slug),
|
@@ -269,10 +268,6 @@ if (!class_exists('WP_Maintenance_Mode')) {
|
|
269 |
$default_options['general']['notice'] = $old_options['notice'];
|
270 |
}
|
271 |
|
272 |
-
if (isset($old_options['link'])) {
|
273 |
-
$default_options['general']['author_link'] = $old_options['link'];
|
274 |
-
}
|
275 |
-
|
276 |
if (!empty($old_options['title'])) {
|
277 |
$default_options['design']['title'] = $old_options['title'];
|
278 |
}
|
3 |
|
4 |
class WP_Maintenance_Mode {
|
5 |
|
6 |
+
const VERSION = '2.0.2';
|
7 |
|
8 |
protected $plugin_slug = 'wp-maintenance-mode';
|
9 |
protected $plugin_settings;
|
85 |
4 => 'wp-admin',
|
86 |
5 => 'wp-admin/admin-ajax.php'
|
87 |
),
|
88 |
+
'notice' => 1
|
|
|
89 |
),
|
90 |
'design' => array(
|
91 |
'title' => __('Maintenance mode', $this->plugin_slug),
|
268 |
$default_options['general']['notice'] = $old_options['notice'];
|
269 |
}
|
270 |
|
|
|
|
|
|
|
|
|
271 |
if (!empty($old_options['title'])) {
|
272 |
$default_options['design']['title'] = $old_options['title'];
|
273 |
}
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Author URI: http://designmodo.com/
|
|
7 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
|
8 |
Requires at least: 3.5
|
9 |
Tested up to: 3.9.2
|
10 |
-
Stable tag: 2.0.
|
11 |
License: GPL-2.0+
|
12 |
|
13 |
Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
|
@@ -64,6 +64,10 @@ WP Maintenance Mode can be unstable due the cache plugins, we recommend to deact
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
|
|
67 |
= 2.0.1 (02/09/2014) =
|
68 |
* Reintroduced some deprecated actions from old version (but still available in next 4 releases, after that will be removed) and replaced with new ones:
|
69 |
- `wm_head` -> `wpmm_head`
|
7 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
|
8 |
Requires at least: 3.5
|
9 |
Tested up to: 3.9.2
|
10 |
+
Stable tag: 2.0.2
|
11 |
License: GPL-2.0+
|
12 |
|
13 |
Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 2.0.2 (04/09/2014) =
|
68 |
+
* Removed "Author Link" option from General
|
69 |
+
* Countdown - save details fix
|
70 |
+
|
71 |
= 2.0.1 (02/09/2014) =
|
72 |
* Reintroduced some deprecated actions from old version (but still available in next 4 releases, after that will be removed) and replaced with new ones:
|
73 |
- `wm_head` -> `wpmm_head`
|
views/maintenance.php
CHANGED
@@ -95,12 +95,6 @@
|
|
95 |
|
96 |
<a class="contact_us" href="javascript:void(0);" data-open="<?php echo esc_attr($open); ?>" data-close="<?php echo esc_attr($close); ?>"><?php _e('Contact us', $this->plugin_slug); ?></a>
|
97 |
<?php } ?>
|
98 |
-
|
99 |
-
<?php if (!empty($this->plugin_settings['general']['author_link']) && $this->plugin_settings['general']['author_link'] == 1) { ?>
|
100 |
-
<div class="author_link">
|
101 |
-
<?php echo sprintf(__('Developed by <a href="%s">Designmodo</a>', $this->plugin_slug), 'http://designmodo.com/' . WPMM_AUTHOR_UTM); ?>
|
102 |
-
</div>
|
103 |
-
<?php } ?>
|
104 |
</div>
|
105 |
|
106 |
<script type='text/javascript'>
|
95 |
|
96 |
<a class="contact_us" href="javascript:void(0);" data-open="<?php echo esc_attr($open); ?>" data-close="<?php echo esc_attr($close); ?>"><?php _e('Contact us', $this->plugin_slug); ?></a>
|
97 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
</div>
|
99 |
|
100 |
<script type='text/javascript'>
|
views/settings.php
CHANGED
@@ -97,16 +97,6 @@
|
|
97 |
<p class="description"><?php _e('Do you want to see notices when maintenance mode is activated?', $this->plugin_slug); ?></p>
|
98 |
</td>
|
99 |
</tr>
|
100 |
-
<tr valign="top">
|
101 |
-
<th scope="row"><label for="options[general][author_link]"><?php _e('Author link', $this->plugin_slug); ?></label></th>
|
102 |
-
<td>
|
103 |
-
<select name="options[general][author_link]">
|
104 |
-
<option value="1" <?php selected($this->plugin_settings['general']['author_link'], 1); ?>><?php _e('Yes', $this->plugin_slug); ?></option>
|
105 |
-
<option value="0" <?php selected($this->plugin_settings['general']['author_link'], 0); ?>><?php _e('No', $this->plugin_slug); ?></option>
|
106 |
-
</select>
|
107 |
-
<p class="description"><?php _e('Do you want to leave a link to the plugin author on your maintenance mode page?', $this->plugin_slug); ?></p>
|
108 |
-
</td>
|
109 |
-
</tr>
|
110 |
</tbody>
|
111 |
</table>
|
112 |
|
97 |
<p class="description"><?php _e('Do you want to see notices when maintenance mode is activated?', $this->plugin_slug); ?></p>
|
98 |
</td>
|
99 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
</tbody>
|
101 |
</table>
|
102 |
|
wp-maintenance-mode.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Plugin Name: WP Maintenance Mode
|
7 |
* Plugin URI: http://designmodo.com/
|
8 |
* Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
|
9 |
-
* Version: 2.0.
|
10 |
* Author: Designmodo
|
11 |
* Author URI: http://designmodo.com/
|
12 |
* Twitter: designmodo
|
6 |
* Plugin Name: WP Maintenance Mode
|
7 |
* Plugin URI: http://designmodo.com/
|
8 |
* Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
|
9 |
+
* Version: 2.0.2
|
10 |
* Author: Designmodo
|
11 |
* Author URI: http://designmodo.com/
|
12 |
* Twitter: designmodo
|