4 versions
MainWP - Code Snippets Extension history.
Every release of MainWP - Code Snippets Extension is archived here with its changelog, file size, and security scan result. Use the archive to roll back to a stable release or audit what changed between updates.
3 of 4 releases scanned clean·1 flagged
v5.1.1Latest
June 16, 2026285.6 KBScanned
Fixed
- Corrected the Code Snippets table installer to always define the auto-increment ID as a primary key.
June 8, 2026285.4 KBScanned
Other
- Security: Improved code snippet database handling with prepared queries, sanitized values, and stricter user scoping.
- Security: Strengthened AJAX input and output handling to improve protection against malformed or unsafe requests.
- Dev: Refactored core database methods, including install, update_codesnippet, get_codesnippet_by, and remove_codesnippet, for safer and more consistent data handling.
- Dev: Refactored the extension structure with clearer return semantics, improved docblocks, singleton patterns, and updated build files for better maintainability.
Fixed
- Corrected formatting of default snippet code.
- Ensured default snippet descriptions and data are properly migrated during upgrades.
Added
- Code folding UI and fold keymap support.
- Autocompletion and automatic bracket closing in the code editor.
- Natural Tab indentation support in the code editor.
- PHP pre-save syntax validation to help catch common syntax errors before saving snippets.
- Added a new clients column to the Code Snippets database table to support client-based snippet organization.
Improved
- Reworked the snippet editor layout with a cleaner, more modern interface.
- Moved snippet settings above the code editor for easier access while editing snippets.
- Compacted snippet action buttons to reduce visual clutter in the editor area.
- Replaced the snippet type radio buttons with a pill-style selector for a clearer editing experience.
- Improved the saved snippets table by combining snippet titles and descriptions into a single, more readable column.
- Replaced plain text snippet type indicators with colored labels for better visibility in the saved snippets table.
- Refined multiple text strings for clearer and more consistent wording.
- Improved snippet options handling, selection normalization, and snippet type validation for better reliability.
- Improved snippet run UI rendering for a cleaner and more consistent user experience.
- Replaced the legacy CodeMirror 5 editor with a new CodeMirror 6 bundle.
- Improved internal utility handling with a safer rand_string method and a more user-friendly time_elapsed_string helper.
v5.0.4Unavailable
November 30, 2024472.3 KBSuspicious
Fixed
- An issue with saving the snippets table state.
Added
- Localization support.
Improved
- Removed excessive navigation menu on the extension page.
v5.0.3Unavailable
June 27, 2024451.3 KBScanned
Fixed
- An issue with sorting snippets table by the last modified date
Why archive
Sometimes the latest release isn't the one you need. The archive lets you pin MainWP - Code Snippets Extension to a known-good version, or roll back while a bug is investigated. Every release stays scanned and reachable.