70 changes: 0 additions & 70 deletions .wordpress-org/icon.svg

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,11 @@
##### [Version 2.6.9](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.6.8...v2.6.9) (2023-12-22)

### Bug Fixes
- Fixed compatibility issue with WP 6.4
- Fixed broken templates layout issue on the Safari browser
- Enhanced security
- Fixed compatibility issue with WP-Optimize

##### [Version 2.6.8](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.6.7...v2.6.8) (2023-06-07)

- Fix the Save button Module tab not working
Expand Down
17 changes: 14 additions & 3 deletions README.md
Expand Up @@ -6,9 +6,9 @@
**Author:** Themeisle
**Author URI:** https://themeisle.com/
**Tags:** maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
**Requires at least:** 3.5
**Tested up to:** 6.2
**Stable tag:** 2.6.8
**Requires at least:** 4.7
**Tested up to:** 6.4
**Stable tag:** 2.6.9
**Requires PHP:** 5.6
**License:** GPL-2.0+

Expand Down Expand Up @@ -93,6 +93,17 @@ Notice: `wp-cron.php` is excluded by default.

## Changelog ##

##### [Version 2.6.9](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.6.8...v2.6.9) (2023-12-22)

### Bug Fixes
- Fixed compatibility issue with WP 6.4
- Fixed broken templates layout issue on the Safari browser
- Enhanced security
- Fixed compatibility issue with WP-Optimize




##### [Version 2.6.8](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.6.7...v2.6.8) (2023-06-07)

- Fix the Save button Module tab not working
Expand Down
1 change: 1 addition & 0 deletions assets/css/style-admin.css
Expand Up @@ -177,6 +177,7 @@ label.wpmm-templates-gallery__label {
.wpmm-template-wrap {
width: calc( 100% / 3 - 20px);
max-width: 290px;
height: 100%;
}

.wpmm-template-image-wrap {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "codeinwp/wp-maintenance-mode",
"description": "Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.",
"type": "wordpress-plugin",
"version": "2.6.8",
"version": "2.6.9",
"license": "GPL-2.0+",
"homepage": "https://themeisle.com",
"support": {
Expand Down
73 changes: 22 additions & 51 deletions composer.lock
7 changes: 6 additions & 1 deletion includes/classes/wp-maintenance-mode-admin.php
Expand Up @@ -689,8 +689,13 @@ public function insert_template() {
die( esc_html__( 'The nonce field must not be empty.', 'wp-maintenance-mode' ) );
}

// sanitize source only allow specific sources for further nonce verification.
$source = isset( $_POST['source'] ) && in_array( $_POST['source'], array( 'wizard', 'tab-design' ), true ) ? $_POST['source'] : '';
if ( empty( $source ) ) {
die( esc_html__( 'The source must not be empty.', 'wp-maintenance-mode' ) );
}
// check nonce validation
if ( ! wp_verify_nonce( $_POST['_wpnonce'], $_POST['source'] ) ) {
if ( ! wp_verify_nonce( $_POST['_wpnonce'], $source ) ) {
die( esc_html__( 'Security check.', 'wp-maintenance-mode' ) );
}

Expand Down
6 changes: 5 additions & 1 deletion includes/classes/wp-maintenance-mode.php
Expand Up @@ -8,7 +8,7 @@

class WP_Maintenance_Mode {

const VERSION = '2.6.8';
const VERSION = '2.6.9';

const MAINTENANCE = 'maintenance';
const COMING_SOON = 'coming-soon';
Expand Down Expand Up @@ -98,6 +98,10 @@ private function __construct() {
add_action( 'otter_form_after_submit', array( $this, 'otter_add_subscriber' ) );

if ( isset( $this->plugin_settings['design']['page_id'] ) && get_option( 'wpmm_new_look' ) && get_post_status( $this->plugin_settings['design']['page_id'] ) === 'private' ) {
add_filter( 'wpo_purge_all_cache_on_update', '__return_true' );
if ( function_exists( 'wp_functionality_constants' ) ) {
wp_functionality_constants();
}
wp_publish_post( $this->plugin_settings['design']['page_id'] );
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "wp-maintenance-mode",
"version": "2.6.8",
"version": "2.6.9",
"author": "Themeisle",
"homepage": "https://themeisle.com/",
"license": "GPL-3.0+",
Expand Down
17 changes: 14 additions & 3 deletions readme.txt
Expand Up @@ -6,9 +6,9 @@ Plugin URI: https://themeisle.com/
Author: Themeisle
Author URI: https://themeisle.com/
Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
Requires at least: 3.5
Tested up to: 6.2
Stable tag: 2.6.8
Requires at least: 4.7
Tested up to: 6.4
Stable tag: 2.6.9
Requires PHP: 5.6
License: GPL-2.0+

Expand Down Expand Up @@ -93,6 +93,17 @@ Notice: `wp-cron.php` is excluded by default.

== Changelog ==

##### [Version 2.6.9](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.6.8...v2.6.9) (2023-12-22)

### Bug Fixes
- Fixed compatibility issue with WP 6.4
- Fixed broken templates layout issue on the Safari browser
- Enhanced security
- Fixed compatibility issue with WP-Optimize




##### [Version 2.6.8](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.6.7...v2.6.8) (2023-06-07)

- Fix the Save button Module tab not working
Expand Down
2 changes: 1 addition & 1 deletion wp-maintenance-mode.php
Expand Up @@ -4,7 +4,7 @@
*
* Plugin Name: LightStart - Maintenance Mode, Coming Soon and Landing Page Builder
* 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 or landing page.
* Version: 2.6.8
* Version: 2.6.9
* Author: Themeisle
* Author URI: https://themeisle.com/
* Twitter: themeisle
Expand Down