=== EffortLess Maintenance Mode ===

Contributors:      	domclic
Stable tag: 		1.0.33
Requires at least: 6.2
Tested up to:      	7.0
Requires PHP: 7.4
License: 		GPLv2 or later
License URI: 		https://www.gnu.org/licenses/gpl-2.0.html
Tags:              	effortless, maintenance, mode, wp

Easily enable and customize a maintenance page for your WordPress site.

== Description ==

EffortLess Maintenance Mode allows you to easily enable and customize a maintenance page while your site is under development or maintenance. This plugin provides a simple interface for adding custom HTML content to your maintenance page, ensuring that visitors know your site is temporarily unavailable. The maintenance page will show if the current user is not logged in or does not have admin capabilities.

== Installation ==

= Installation from within WordPress =

1. Visit **Plugins > Add New**.
2. Search for **Plugin Check**.
3. Install and activate the Plugin Check plugin.

= Manual installation =

1. Upload the entire `plugin-check` folder to the `/wp-content/plugins/` directory.
2. Visit **Plugins**.
3. Activate the Plugin Check plugin.

== Frequently Asked Questions ==

= How do I customize the maintenance page? =

You can customize the maintenance page by navigating to Tools > Maintenance Mode in the WordPress admin dashboard. Here, you can modify the HTML content displayed to visitors.

= Can I use custom HTML for the maintenance page? =

Yes! The plugin allows you to enter any HTML code to create a personalized maintenance message.

= Will the plugin affect the site's performance? =

No, this plugin is lightweight and will not significantly impact your site's performance. It is designed to be efficient and effective.

= How do I deactivate the maintenance mode? =

To deactivate maintenance mode, simply go back to Tools > Maintenance Mode and uncheck the "Enable Maintenance Mode" option, then save your changes.

== Changelog ==

= 1.0.33 =
* Feature: "Enable Maintenance Mode" checkbox now auto-saves via AJAX on click — no page reload required.
* Feature: "Save Changes" button renamed to "Save custom HTML" and only persists the custom HTML textarea.

= 1.0.32 =
* Feature: donate notice now renders inline at the top of the settings page (below the title) instead of in the generic admin-notice area.

= 1.0.31 =
* Fix: PHPCS — correct file comment style in index.php stubs; add docblock header to scripts.js; end all inline JS comments with full stops.

= 1.0.30 =
* Fix: donate notice now also hooks network_admin_notices so it appears on Network Admin pages (multisite).

= 1.0.29 =
* Feature: multisite network support — one toggle now controls all sites; settings stored as network options.
* Feature: menu moved from Tools to Settings (single site) and Network Admin > Settings (multisite).
* Fix: object-cache layer now correctly distinguishes a cache miss from a stored falsy value using the $found parameter.
* Fix: cache is now invalidated immediately on save — the Settings API was bypassing the cache wrapper on every option update.
* Fix: wp_cache_flush() replaced with targeted key deletion to avoid evicting other plugins' cached data.
* Fix: admin JS now loads only on the plugin's own settings page, not on every admin screen.
* Fix: REST API, XML-RPC, and WP-Cron requests now bypass the maintenance page so background jobs and authenticated tooling are not disrupted.
* Fix: removed redundant unverified nonce field; settings form now uses a single nonce verified manually.
* Code: removed dead functions emmp_enqueue_styles(), emmp_update_cached_option(), emmp_clear_cache() and unused EMMP_COMPANY constant.

= 1.0.28 =
* Improvement: added dismissible donate notice on the plugin settings screen.
* Improvement: added Donate link header field and includes/class-donate-notice.php.

= 1.0.27 =

* Fix: Remove deprecated load_plugin_textdomain() call (not needed for wordpress.org-hosted plugins since WP 4.6)
* Fix: Add Requires PHP header to plugin file to match readme.txt
* Fix: Prefix global variables in uninstall.php with emmp_ to meet naming conventions

= 1.0.25 =

* Minor update

= 1.0.24 =

* Fix some issues

= 1.0.22 =

* Update cache fonctionnality 

= 1.0.21 =

* Not showing maintenance page if you're logged as administrator
* Add a notice for logged administrator

= 1.0.20 =

* Add cache purge after change

= 1.0.19 =

* Optimize the css file
* Fix the alert message not working

= 1.0.18 =

* Changes emm_ to emmp_ to comply wordpress.org advice

= 1.0.17 =

* Fix minor bugs 

= 1.0.16 =

* Add languages Italian and Portuguese

= 1.0.16 =

* Add default maintenance message if the textarea is empty

= 1.0.15 =

* Improved Naming Consistency: Renamed get_cached_option() to cmm_get_cached_option() for better consistency and conflict prevention.
* Escaping and Sanitization: Used esc_html__(), esc_textarea(), and esc_js() functions more consistently.
* Commenting: Added comments before each function for clarity.
* Spacing and Alignment: Reformatted spacing and alignment to match WordPress coding standards, such as placing spaces before function parameters and between operators.

= 1.0.14 =

* Fix uninstall.php

= 1.0.13 =

* Add company variable
* Fix issue with variables

= 1.0.12 =

* New versioning

== Upgrade Notice ==

= 1.0.25 =

* Minor update

== Screenshots ==

1. Screenshot of the settings page.
2. Example of the maintenance page.

== Reviews ==

We appreciate your feedback! Please leave a review.


