Plugin Name: MainWP Custom Dashboard Extension
Plugin URI: https://mainwp.com
Description: The purpose of this plugin is to contain your customisation snippets for your MainWP Dashboard.
Version: 5.1
Author: MainWP
Author URI: https://mainwp.com
Documentation URI: https://docs.mainwp.com/add-ons/development/mainwp-custom-dashboard-extension

== Changelog ==

= 5.1 - 6-2-2026 =

* Security: Improved escaping and sanitization across several admin outputs and request-handling areas.
* Fixed: Failed save messages are now visibly shown in the UI.
* Fixed: Corrected missing and incorrect text domains.
* Fixed: Corrected multiple typos throughout the extension.
* Added: One Dark editor theme for improved code editor readability.
* Added: Code folding UI and fold keymap support.
* Added: Autocompletion and automatic bracket closing in the code editor.
* Added: Natural Tab indentation support in the code editor.
* Added: PHP pre-save syntax validation to help catch common syntax errors before saving snippets.
* Added: Validation to reject PHP opening and closing tags in snippets.
* Added: Safer raw snippet storage handling with per-snippet storage flags to preserve existing saved snippets.
* Updated: CodeMirror library to version 6.
* Updated: PHP editor mode now uses plain PHP mode for tagless snippets.
* Updated: AJAX save responses now use `wp_send_json_success()` and `wp_send_json_error()` for improved WordPress compatibility.
* Updated: Custom JS snippets now load only on MainWP pages, matching the existing Custom CSS behavior.
* Updated: Save handling now supports both WordPress JSON responses and the previous legacy success format.

= 5.0.1 - 5-29-2024 =

* Updated: CodeMirror library to the latest version

= 5.0 - 2-27-2024 =

* Updated: MainWP 5.0 compatibility

= 4.1.2 - 16-11-2022 =

* Updated: Theme settings removed and moved to core

= 4.1.1 - 21-7-2022 =

* Updated: Pusher element background color for the Dark theme
* Updated: Sites filter input field text color for the Dark theme
* Updated: Improved checkbox element visibility for the Dark theme

= 4.1 - 20-7-2022 =

* Added: Option to create and apply custom MainWP Dashboard themes
* Added: MainWP Dashboard Dark theme
* Added: MainWP Dashboard WP Admin theme
* Added: MainWP Dashboard Minimalistic theme
* Updated: The CodeMirror library

= 4.0.2 - 11-19-2020 =

* Fixed: An issue with generating empty space at the beginning of the first line
* Fixed: An issue with CSS and JS code being executed outside MainWP Dashboard pages

= 4.0.1 - 9-10-2020 =

* Updated: MainWP Dashboard 4.1 compatiblity

= 4.0 - 9-17-2019 =

* Initial release
