Skip to main content

Changelog

Follow new updates and improvements to MainWP.

Custom Dashboard 5.2

  • Added: MainWP abilities to view snippet status, validate PHP, and preview or apply PHP, CSS, and JavaScript snippet changes.

  • Updated: Saving a snippet now warns when someone else has changed it and keeps your draft available before you reload.

  • Fixed: PHP validation rejects malformed snippets without running them.

Custom Dashboard 5.1

  • 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.