Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | WP Maintenance Mode |
Version | 2.5.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.3 to 2.5.4
- CHANGELOG.md +5 -0
- README.md +9 -1
- assets/js/scripts.js +2 -2
- assets/js/scripts.min.js +1 -1
- includes/classes/wp-maintenance-mode-admin.php +5 -2
- includes/classes/wp-maintenance-mode.php +1 -1
- readme.txt +9 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +2 -2
- vendor/composer/installed.php +4 -4
- views/settings.php +25 -25
- wp-maintenance-mode.php +1 -1
CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
|
2 |
|
3 |
* Fix wrong template loaded when the current post template is empty.
|
1 |
+
##### [Version 2.5.4](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.3...v2.5.4) (2022-10-10)
|
2 |
+
|
3 |
+
* Fix subscribers entry export for legacy forms.
|
4 |
+
* Fix PHP notice showing up on edge cases new installs.
|
5 |
+
|
6 |
##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
|
7 |
|
8 |
* Fix wrong template loaded when the current post template is empty.
|
README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
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:** 6.0
|
10 |
-
**Stable tag:** 2.5.
|
11 |
**Requires PHP:** 5.6
|
12 |
**License:** GPL-2.0+
|
13 |
|
@@ -91,6 +91,14 @@ Notice: `wp-cron.php` is excluded by default.
|
|
91 |
|
92 |
## Changelog ##
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
|
95 |
|
96 |
* Fix wrong template loaded when the current post template is empty.
|
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:** 6.0
|
10 |
+
**Stable tag:** 2.5.4
|
11 |
**Requires PHP:** 5.6
|
12 |
**License:** GPL-2.0+
|
13 |
|
91 |
|
92 |
## Changelog ##
|
93 |
|
94 |
+
##### [Version 2.5.4](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.3...v2.5.4) (2022-10-10)
|
95 |
+
|
96 |
+
* Fix subscribers entry export for legacy forms.
|
97 |
+
* Fix PHP notice showing up on edge cases new installs.
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
|
103 |
|
104 |
* Fix wrong template loaded when the current post template is empty.
|
assets/js/scripts.js
CHANGED
@@ -38,7 +38,7 @@ jQuery(function($) {
|
|
38 |
submitHandler: function(form) {
|
39 |
var subscribe_form_data = 'action=wpmm_add_subscriber&' + subscribe_form.serialize();
|
40 |
|
41 |
-
$.post(
|
42 |
if (!response.success) {
|
43 |
alert(response.data);
|
44 |
return false;
|
@@ -73,7 +73,7 @@ jQuery(function($) {
|
|
73 |
submitHandler: function(form) {
|
74 |
var contact_form_data = 'action=wpmm_send_contact&' + contact_form.serialize();
|
75 |
|
76 |
-
$.post(
|
77 |
if (!response.success) {
|
78 |
alert(response.data);
|
79 |
return false;
|
38 |
submitHandler: function(form) {
|
39 |
var subscribe_form_data = 'action=wpmm_add_subscriber&' + subscribe_form.serialize();
|
40 |
|
41 |
+
$.post(wpmmVars.ajaxURL, subscribe_form_data, function(response) {
|
42 |
if (!response.success) {
|
43 |
alert(response.data);
|
44 |
return false;
|
73 |
submitHandler: function(form) {
|
74 |
var contact_form_data = 'action=wpmm_send_contact&' + contact_form.serialize();
|
75 |
|
76 |
+
$.post(wpmmVars.ajaxURL, contact_form_data, function(response) {
|
77 |
if (!response.success) {
|
78 |
alert(response.data);
|
79 |
return false;
|
assets/js/scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(a){var t=a(".countdown");if(t.length>0){var n=new Date(t.data("end"));t.countdown({until:n,compact:!0,layout:'<span class="day">{dn}</span> <span class="separator">:</span> <span class="hour">{hnn}</span> <span class="separator">:</span> <span class="minutes">{mnn}</span> <span class="separator">:</span> <span class="seconds">{snn}</span>'})}var s=a(".social");s.length>0&&(1==s.data("target")&&s.find("a").attr("target","_blank"));var c=a(".subscribe_form");if(c.length>0&&c.validate({submitHandler:function(t){var n="action=wpmm_add_subscriber&"+c.serialize();return a.post(
|
1 |
+
jQuery(function(a){var t=a(".countdown");if(t.length>0){var n=new Date(t.data("end"));t.countdown({until:n,compact:!0,layout:'<span class="day">{dn}</span> <span class="separator">:</span> <span class="hour">{hnn}</span> <span class="separator">:</span> <span class="minutes">{mnn}</span> <span class="separator">:</span> <span class="seconds">{snn}</span>'})}var s=a(".social");s.length>0&&(1==s.data("target")&&s.find("a").attr("target","_blank"));var c=a(".subscribe_form");if(c.length>0&&c.validate({submitHandler:function(t){var n="action=wpmm_add_subscriber&"+c.serialize();return a.post(wpmmVars.ajaxURL,n,function(t){if(!t.success)return alert(t.data),!1;a(".subscribe_wrapper").html(t.data)},"json"),!1}}),a(".contact").length>0){a("body").on("click",".contact_us",function(){var t=a(this).data("open"),n=a(this).data("close");a(".contact").fadeIn(700),a("."+t).addClass(n)});var e=a(".contact_form");e.validate({submitHandler:function(t){var n="action=wpmm_send_contact&"+e.serialize();return a.post(wpmmVars.ajaxURL,n,function(t){if(!t.success)return alert(t.data),!1;e.parent().append('<div class="response">'+t.data+"</div>"),e.hide(),setTimeout(function(){a(".contact").hide(),e.parent().find(".response").remove(),e.trigger("reset"),e.show()},2e3)},"json"),!1}}),a(".close-contact_form").on("click",function(t){a(".contact").fadeOut(200)}),a("body").on("click",".contact",function(t){if(a(t.target).hasClass("contact")){var n=a(".contact_us").data("close");a(".form",a(this)).removeClass(n),a(this).fadeOut(200)}})}a(".wrap h2").fitVids({customSelector:'iframe[src*="dailymotion.com"]'})});
|
includes/classes/wp-maintenance-mode-admin.php
CHANGED
@@ -385,8 +385,11 @@ if ( ! class_exists( 'WP_Maintenance_Mode_Admin' ) ) {
|
|
385 |
} else {
|
386 |
$_POST['options']['general']['exclude'] = array();
|
387 |
}
|
388 |
-
$_POST['options']['general']['notice']
|
389 |
-
|
|
|
|
|
|
|
390 |
|
391 |
// delete cache when is already activated, when is activated and when is deactivated
|
392 |
if (
|
385 |
} else {
|
386 |
$_POST['options']['general']['exclude'] = array();
|
387 |
}
|
388 |
+
$_POST['options']['general']['notice'] = (int) $_POST['options']['general']['notice'];
|
389 |
+
|
390 |
+
if ( ! empty( $_POST['options']['general']['admin_link'] ) ) {
|
391 |
+
$_POST['options']['general']['admin_link'] = (int) $_POST['options']['general']['admin_link'];
|
392 |
+
}
|
393 |
|
394 |
// delete cache when is already activated, when is activated and when is deactivated
|
395 |
if (
|
includes/classes/wp-maintenance-mode.php
CHANGED
@@ -8,7 +8,7 @@ if ( ! class_exists( 'WP_Maintenance_Mode' ) ) {
|
|
8 |
|
9 |
class WP_Maintenance_Mode {
|
10 |
|
11 |
-
const VERSION = '2.5.
|
12 |
|
13 |
protected $plugin_slug = 'wp-maintenance-mode';
|
14 |
protected $plugin_settings;
|
8 |
|
9 |
class WP_Maintenance_Mode {
|
10 |
|
11 |
+
const VERSION = '2.5.4';
|
12 |
|
13 |
protected $plugin_slug = 'wp-maintenance-mode';
|
14 |
protected $plugin_settings;
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Author URI: https://themeisle.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: 6.0
|
10 |
-
Stable tag: 2.5.
|
11 |
Requires PHP: 5.6
|
12 |
License: GPL-2.0+
|
13 |
|
@@ -91,6 +91,14 @@ Notice: `wp-cron.php` is excluded by default.
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
|
95 |
|
96 |
* Fix wrong template loaded when the current post template is empty.
|
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: 6.0
|
10 |
+
Stable tag: 2.5.4
|
11 |
Requires PHP: 5.6
|
12 |
License: GPL-2.0+
|
13 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
##### [Version 2.5.4](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.3...v2.5.4) (2022-10-10)
|
95 |
+
|
96 |
+
* Fix subscribers entry export for legacy forms.
|
97 |
+
* Fix PHP notice showing up on edge cases new installs.
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
|
103 |
|
104 |
* Fix wrong template loaded when the current post template is empty.
|
vendor/autoload.php
CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
-
return
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
+
return ComposerAutoloaderInit1ad26631cc37ba838dd69e8e763012dc::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,18 +22,18 @@ class ComposerAutoloaderInit8a7b1839e60b923aa52327f250618296
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
require __DIR__ . '/autoload_static.php';
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
|
32 |
$loader->register(true);
|
33 |
|
34 |
-
$includeFiles = \Composer\Autoload\
|
35 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
36 |
-
|
37 |
}
|
38 |
|
39 |
return $loader;
|
@@ -45,7 +45,7 @@ class ComposerAutoloaderInit8a7b1839e60b923aa52327f250618296
|
|
45 |
* @param string $file
|
46 |
* @return void
|
47 |
*/
|
48 |
-
function
|
49 |
{
|
50 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
51 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit1ad26631cc37ba838dd69e8e763012dc
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit1ad26631cc37ba838dd69e8e763012dc', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit1ad26631cc37ba838dd69e8e763012dc', 'loadClassLoader'));
|
28 |
|
29 |
require __DIR__ . '/autoload_static.php';
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit1ad26631cc37ba838dd69e8e763012dc::getInitializer($loader));
|
31 |
|
32 |
$loader->register(true);
|
33 |
|
34 |
+
$includeFiles = \Composer\Autoload\ComposerStaticInit1ad26631cc37ba838dd69e8e763012dc::$files;
|
35 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
36 |
+
composerRequire1ad26631cc37ba838dd69e8e763012dc($fileIdentifier, $file);
|
37 |
}
|
38 |
|
39 |
return $loader;
|
45 |
* @param string $file
|
46 |
* @return void
|
47 |
*/
|
48 |
+
function composerRequire1ad26631cc37ba838dd69e8e763012dc($fileIdentifier, $file)
|
49 |
{
|
50 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
51 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7c3f92ec501ce72fe4f09265dc506991' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|
@@ -17,7 +17,7 @@ class ComposerStaticInit8a7b1839e60b923aa52327f250618296
|
|
17 |
public static function getInitializer(ClassLoader $loader)
|
18 |
{
|
19 |
return \Closure::bind(function () use ($loader) {
|
20 |
-
$loader->classMap =
|
21 |
|
22 |
}, null, ClassLoader::class);
|
23 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit1ad26631cc37ba838dd69e8e763012dc
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7c3f92ec501ce72fe4f09265dc506991' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|
17 |
public static function getInitializer(ClassLoader $loader)
|
18 |
{
|
19 |
return \Closure::bind(function () use ($loader) {
|
20 |
+
$loader->classMap = ComposerStaticInit1ad26631cc37ba838dd69e8e763012dc::$classMap;
|
21 |
|
22 |
}, null, ClassLoader::class);
|
23 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'codeinwp/wp-maintenance-mode',
|
4 |
-
'pretty_version' => '2.5.
|
5 |
-
'version' => '2.5.
|
6 |
'reference' => NULL,
|
7 |
'type' => 'wordpress-plugin',
|
8 |
'install_path' => __DIR__ . '/../../',
|
@@ -20,8 +20,8 @@
|
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'codeinwp/wp-maintenance-mode' => array(
|
23 |
-
'pretty_version' => '2.5.
|
24 |
-
'version' => '2.5.
|
25 |
'reference' => NULL,
|
26 |
'type' => 'wordpress-plugin',
|
27 |
'install_path' => __DIR__ . '/../../',
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'codeinwp/wp-maintenance-mode',
|
4 |
+
'pretty_version' => '2.5.4',
|
5 |
+
'version' => '2.5.4.0',
|
6 |
'reference' => NULL,
|
7 |
'type' => 'wordpress-plugin',
|
8 |
'install_path' => __DIR__ . '/../../',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'codeinwp/wp-maintenance-mode' => array(
|
23 |
+
'pretty_version' => '2.5.4',
|
24 |
+
'version' => '2.5.4.0',
|
25 |
'reference' => NULL,
|
26 |
'type' => 'wordpress-plugin',
|
27 |
'install_path' => __DIR__ . '/../../',
|
views/settings.php
CHANGED
@@ -762,34 +762,34 @@ if ( ! isset( $this->plugin_settings['design']['page_id'] ) ) {
|
|
762 |
</tbody>
|
763 |
</table>
|
764 |
<?php } ?>
|
|
|
|
|
765 |
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
<
|
773 |
-
|
774 |
-
|
775 |
-
<?php
|
776 |
-
$subscribers_no = wpmm_get_subscribers_count();
|
777 |
-
|
778 |
-
/* translators: number of subscribers */
|
779 |
-
echo esc_html( sprintf( _nx( 'You have %d subscriber', 'You have %d subscribers', $subscribers_no, 'settings page', 'wp-maintenance-mode' ), $subscribers_no ) );
|
780 |
|
781 |
-
|
782 |
-
|
783 |
-
<div class="buttons">
|
784 |
-
<a class="button button-primary" id="subscribers-export" href="javascript:void(0);"><?php esc_html_e( 'Export as CSV', 'wp-maintenance-mode' ); ?></a>
|
785 |
-
<a class="button button-secondary" id="subscribers-empty-list" href="javascript:void(0);"><?php esc_html_e( 'Empty subscribers list', 'wp-maintenance-mode' ); ?></a>
|
786 |
-
</div>
|
787 |
-
<?php } ?>
|
788 |
-
</td>
|
789 |
-
</tr>
|
790 |
-
</tbody>
|
791 |
-
</table>
|
792 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
793 |
<h3>» <?php esc_html_e( 'Google Analytics', 'wp-maintenance-mode' ); ?></h3>
|
794 |
|
795 |
<table class="form-table">
|
762 |
</tbody>
|
763 |
</table>
|
764 |
<?php } ?>
|
765 |
+
<?php if ( get_option( 'wpmm_new_look' ) ) { ?>
|
766 |
+
<h3>» <?php esc_html_e( 'Subscribe', 'wp-maintenance-mode' ); ?></h3>
|
767 |
|
768 |
+
<table class="form-table">
|
769 |
+
<tbody>
|
770 |
+
<tr valign="top">
|
771 |
+
<th scope="row">
|
772 |
+
<label for="options[modules][stats]"><?php esc_html_e( 'Stats', 'wp-maintenance-mode' ); ?></label>
|
773 |
+
</th>
|
774 |
+
<td id="subscribers_wrap">
|
775 |
+
<?php
|
776 |
+
$subscribers_no = wpmm_get_subscribers_count();
|
|
|
|
|
|
|
|
|
|
|
777 |
|
778 |
+
/* translators: number of subscribers */
|
779 |
+
echo esc_html( sprintf( _nx( 'You have %d subscriber', 'You have %d subscribers', $subscribers_no, 'settings page', 'wp-maintenance-mode' ), $subscribers_no ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
780 |
|
781 |
+
if ( current_user_can( wpmm_get_capability( 'subscribers' ) ) && $subscribers_no > 0 ) {
|
782 |
+
?>
|
783 |
+
<div class="buttons">
|
784 |
+
<a class="button button-primary" id="subscribers-export" href="javascript:void(0);"><?php esc_html_e( 'Export as CSV', 'wp-maintenance-mode' ); ?></a>
|
785 |
+
<a class="button button-secondary" id="subscribers-empty-list" href="javascript:void(0);"><?php esc_html_e( 'Empty subscribers list', 'wp-maintenance-mode' ); ?></a>
|
786 |
+
</div>
|
787 |
+
<?php } ?>
|
788 |
+
</td>
|
789 |
+
</tr>
|
790 |
+
</tbody>
|
791 |
+
</table>
|
792 |
+
<?php } ?>
|
793 |
<h3>» <?php esc_html_e( 'Google Analytics', 'wp-maintenance-mode' ); ?></h3>
|
794 |
|
795 |
<table class="form-table">
|
wp-maintenance-mode.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Plugin Name: WP Maintenance Mode & Coming Soon
|
6 |
* 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.
|
7 |
-
* Version: 2.5.
|
8 |
* Author: Themeisle
|
9 |
* Author URI: https://themeisle.com/
|
10 |
* Twitter: themeisle
|
4 |
*
|
5 |
* Plugin Name: WP Maintenance Mode & Coming Soon
|
6 |
* 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.
|
7 |
+
* Version: 2.5.4
|
8 |
* Author: Themeisle
|
9 |
* Author URI: https://themeisle.com/
|
10 |
* Twitter: themeisle
|