Version Description
Download this release
Release Info
| Developer | themeisle |
| Plugin | |
| Version | 2.4.6 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4.5 to 2.4.6
- CHANGELOG.md +4 -0
- README.md +8 -1
- includes/classes/wp-maintenance-mode-admin.php +1 -1
- includes/classes/wp-maintenance-mode.php +3 -3
- readme.txt +8 -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
- wp-maintenance-mode.php +1 -1
CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
##### [Version 2.4.5](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.4...v2.4.5) (2022-06-15)
|
| 2 |
|
| 3 |
* Harden security and improve release process
|
| 1 |
+
##### [Version 2.4.6](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.5...v2.4.6) (2022-06-15)
|
| 2 |
+
|
| 3 |
+
* Improve data sanitizations for custom css and contact module
|
| 4 |
+
|
| 5 |
##### [Version 2.4.5](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.4...v2.4.5) (2022-06-15)
|
| 6 |
|
| 7 |
* Harden security and improve release process
|
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.4.
|
| 11 |
**Requires PHP:** 5.6
|
| 12 |
**License:** GPL-2.0+
|
| 13 |
|
|
@@ -91,6 +91,13 @@ Notice: `wp-cron.php` is excluded by default.
|
|
| 91 |
|
| 92 |
## Changelog ##
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
##### [Version 2.4.5](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.4...v2.4.5) (2022-06-15)
|
| 95 |
|
| 96 |
* Harden security and improve release process
|
| 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.4.6
|
| 11 |
**Requires PHP:** 5.6
|
| 12 |
**License:** GPL-2.0+
|
| 13 |
|
| 91 |
|
| 92 |
## Changelog ##
|
| 93 |
|
| 94 |
+
##### [Version 2.4.6](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.5...v2.4.6) (2022-06-15)
|
| 95 |
+
|
| 96 |
+
* Improve data sanitizations for custom css and contact module
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
##### [Version 2.4.5](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.4...v2.4.5) (2022-06-15)
|
| 102 |
|
| 103 |
* Harden security and improve release process
|
includes/classes/wp-maintenance-mode-admin.php
CHANGED
|
@@ -341,7 +341,7 @@ if ( ! class_exists( 'WP_Maintenance_Mode_Admin' ) ) {
|
|
| 341 |
$_POST['options']['design']['bg_predefined'] = sanitize_text_field( $_POST['options']['design']['bg_predefined'] );
|
| 342 |
|
| 343 |
// Other
|
| 344 |
-
$_POST['options']['design']['other_custom_css'] =
|
| 345 |
|
| 346 |
// Delete cache when is activated
|
| 347 |
if ( ! empty( $this->plugin_settings['general']['status'] ) && $this->plugin_settings['general']['status'] === 1 ) {
|
| 341 |
$_POST['options']['design']['bg_predefined'] = sanitize_text_field( $_POST['options']['design']['bg_predefined'] );
|
| 342 |
|
| 343 |
// Other
|
| 344 |
+
$_POST['options']['design']['other_custom_css'] = sanitize_textarea_field( $_POST['options']['design']['other_custom_css'] );
|
| 345 |
|
| 346 |
// Delete cache when is activated
|
| 347 |
if ( ! empty( $this->plugin_settings['general']['status'] ) && $this->plugin_settings['general']['status'] === 1 ) {
|
includes/classes/wp-maintenance-mode.php
CHANGED
|
@@ -6,7 +6,7 @@ if ( ! class_exists( 'WP_Maintenance_Mode' ) ) {
|
|
| 6 |
|
| 7 |
class WP_Maintenance_Mode {
|
| 8 |
|
| 9 |
-
const VERSION = '2.4.
|
| 10 |
|
| 11 |
protected $plugin_slug = 'wp-maintenance-mode';
|
| 12 |
protected $plugin_settings;
|
|
@@ -947,7 +947,7 @@ if ( ! class_exists( 'WP_Maintenance_Mode' ) ) {
|
|
| 947 |
|
| 948 |
// "Design > Other > Custom CSS"
|
| 949 |
if ( ! empty( $this->plugin_settings['design']['other_custom_css'] ) ) {
|
| 950 |
-
$css_rules['design.other_custom_css'] =
|
| 951 |
}
|
| 952 |
|
| 953 |
if ( empty( $css_rules ) ) {
|
|
@@ -1049,7 +1049,7 @@ if ( ! class_exists( 'WP_Maintenance_Mode' ) ) {
|
|
| 1049 |
try {
|
| 1050 |
$name = isset( $_POST['name'] ) ? sanitize_text_field( $_POST['name'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
|
| 1051 |
$email = isset( $_POST['email'] ) ? sanitize_email( $_POST['email'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
|
| 1052 |
-
$content = isset( $_POST['content'] ) ?
|
| 1053 |
// checks
|
| 1054 |
if ( empty( $name ) || empty( $email ) || empty( $content ) ) {
|
| 1055 |
throw new Exception( __( 'All fields required.', 'wp-maintenance-mode' ) );
|
| 6 |
|
| 7 |
class WP_Maintenance_Mode {
|
| 8 |
|
| 9 |
+
const VERSION = '2.4.6';
|
| 10 |
|
| 11 |
protected $plugin_slug = 'wp-maintenance-mode';
|
| 12 |
protected $plugin_settings;
|
| 947 |
|
| 948 |
// "Design > Other > Custom CSS"
|
| 949 |
if ( ! empty( $this->plugin_settings['design']['other_custom_css'] ) ) {
|
| 950 |
+
$css_rules['design.other_custom_css'] = sanitize_textarea_field( $this->plugin_settings['design']['other_custom_css'] );
|
| 951 |
}
|
| 952 |
|
| 953 |
if ( empty( $css_rules ) ) {
|
| 1049 |
try {
|
| 1050 |
$name = isset( $_POST['name'] ) ? sanitize_text_field( $_POST['name'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
|
| 1051 |
$email = isset( $_POST['email'] ) ? sanitize_email( $_POST['email'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
|
| 1052 |
+
$content = isset( $_POST['content'] ) ? sanitize_textarea_field( $_POST['content'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
|
| 1053 |
// checks
|
| 1054 |
if ( empty( $name ) || empty( $email ) || empty( $content ) ) {
|
| 1055 |
throw new Exception( __( 'All fields required.', 'wp-maintenance-mode' ) );
|
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.4.
|
| 11 |
Requires PHP: 5.6
|
| 12 |
License: GPL-2.0+
|
| 13 |
|
|
@@ -91,6 +91,13 @@ Notice: `wp-cron.php` is excluded by default.
|
|
| 91 |
|
| 92 |
== Changelog ==
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
##### [Version 2.4.5](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.4...v2.4.5) (2022-06-15)
|
| 95 |
|
| 96 |
* Harden security and improve release process
|
| 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.4.6
|
| 11 |
Requires PHP: 5.6
|
| 12 |
License: GPL-2.0+
|
| 13 |
|
| 91 |
|
| 92 |
== Changelog ==
|
| 93 |
|
| 94 |
+
##### [Version 2.4.6](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.5...v2.4.6) (2022-06-15)
|
| 95 |
+
|
| 96 |
+
* Improve data sanitizations for custom css and contact module
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
##### [Version 2.4.5](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.4.4...v2.4.5) (2022-06-15)
|
| 102 |
|
| 103 |
* Harden security and improve release process
|
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 ComposerAutoloaderInitf69145d00ee4cc75331087fa8e1d13e6::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 ComposerAutoloaderInit383529faf90372f3292c8600c9dbe834
|
|
| 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 ComposerAutoloaderInit383529faf90372f3292c8600c9dbe834
|
|
| 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 ComposerAutoloaderInitf69145d00ee4cc75331087fa8e1d13e6
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
+
spl_autoload_register(array('ComposerAutoloaderInitf69145d00ee4cc75331087fa8e1d13e6', 'loadClassLoader'), true, true);
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
| 27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitf69145d00ee4cc75331087fa8e1d13e6', 'loadClassLoader'));
|
| 28 |
|
| 29 |
require __DIR__ . '/autoload_static.php';
|
| 30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitf69145d00ee4cc75331087fa8e1d13e6::getInitializer($loader));
|
| 31 |
|
| 32 |
$loader->register(true);
|
| 33 |
|
| 34 |
+
$includeFiles = \Composer\Autoload\ComposerStaticInitf69145d00ee4cc75331087fa8e1d13e6::$files;
|
| 35 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 36 |
+
composerRequiref69145d00ee4cc75331087fa8e1d13e6($fileIdentifier, $file);
|
| 37 |
}
|
| 38 |
|
| 39 |
return $loader;
|
| 45 |
* @param string $file
|
| 46 |
* @return void
|
| 47 |
*/
|
| 48 |
+
function composerRequiref69145d00ee4cc75331087fa8e1d13e6($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 ComposerStaticInit383529faf90372f3292c8600c9dbe834
|
|
| 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 ComposerStaticInitf69145d00ee4cc75331087fa8e1d13e6
|
| 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 = ComposerStaticInitf69145d00ee4cc75331087fa8e1d13e6::$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.4.
|
| 5 |
-
'version' => '2.4.
|
| 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.4.
|
| 24 |
-
'version' => '2.4.
|
| 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.4.6',
|
| 5 |
+
'version' => '2.4.6.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.4.6',
|
| 24 |
+
'version' => '2.4.6.0',
|
| 25 |
'reference' => NULL,
|
| 26 |
'type' => 'wordpress-plugin',
|
| 27 |
'install_path' => __DIR__ . '/../../',
|
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.4.
|
| 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.4.6
|
| 8 |
* Author: Themeisle
|
| 9 |
* Author URI: https://themeisle.com/
|
| 10 |
* Twitter: themeisle
|
