Releases: codesnippetspro/code-snippets
Releases · codesnippetspro/code-snippets
Version 3.1.1 (13 Jun 2022)
- Fixed: Download snippets feature not including snippet content.
- Fixed: Alignment of 'opens externally' dashicon.
- Improved: Added additional parameters to
code_snippets/export/filename
filter.
Version 3.1.0 (17 May 2022)
- Fixed: Caching inconsistencies preventing snippets and settings from refreshing on sites with persistent object caching.
- Improved: Simplified database queries.
- Added: More comprehensive cache coverage, including for active snippets.
- Added: Icon to 'Go Pro' button indicating it opens an external tab.
- Improved: Allow display styles in snippet descriptions.
Version 3.0.1 (14 May 2022)
- Fixed: Incompatibility issue with earlier versions of PHP.
Version 3.0.0 (14 May 2022)
Added
- Added: HTML content snippets for displaying as shortcodes or including in the page head or footer area.
- Added: Notice reminding users to upgrade unsupported PHP versions.
- Added: Visual settings to add attributes to shortcodes.
- Added: Shortcode buttons to the post and page content editors.
- Added: Basic REST API endpoints.
- Added: Snippet type column to the snippets table.
- Added: Snippet type badges to Edit and Add New Snippet pages.
- Added: Setting to control whether the current line of the code editor is highlighted.
- Added: Display a warning when saving a snippet with missing title or code.
- Added: Add suffix to title of cloned snippets.
Changed
- Improved: Updated plugin code to use namespaces, preventing name collisions with other plugins.
- Improved: Added key for the 'active' and 'scope' database table columns to speed up queries.
- Improved: Redirect from edit menu if not editing a valid snippet.
- Improved: Moved activation switch into its own table column.
- Improved: Updated code documentation according to WordPress standards.
- Improved: Added snippet type labels to the tabs on the Snippets page.
- Improved: Split settings page into tabs.
- Improved: Use the version of CodeMirror included with WordPress where possible to inherit the additional built-in features.
- Improved: Added hover effect to priority settings in the snippets table to show that they are editable.
- Fixed: Snippets table layout on smaller screens.
Deprecated
- Removed: Deprecated functions and compatibility code for unsupported PHP versions.
- Removed: Option to disable snippet scopes.
New in Pro
- Added: CSS style snippets for the site front-end and admin area.
- Added: JavaScript snippets for the site head and body area on the front-end.
- Added: Browser cache versioning for CSS and JavaScript snippets.
- Added: Support for exporting and downloading CSS and JavaScript snippets.
- Added: Support for highlighting code on the front-end.
- Added: Editor syntax highlighting for CSS, JavaScript and HTML snippets.
- Added: Button to preview full file when editing CSS or JavaScript snippets.
- Added: Option to minify CSS and JavaScript snippets.
- Added: Gutenberg editor block for displaying content snippets.
- Added: Gutenberg editor block for displaying snippet source code.
- Added: Elementor widget for displaying content snippets.
- Added: Elementor widget for displaying snippet source code.
Version 2.14.6 (13 May 2022)
- Fixed: Issue with processing uploaded import files.
- Fixed: Issue with processing tag filters.
Version 2.14.5 (10 May 2022)
- Fixed: Incompatibility issue with older versions of PHP.
Version 2.14.4
- Fixed: Prevent array key errors when loading the snippet table with unknown order values.
Version 2.14.3 (10 Dec 2021)
- Fixed: Potential security issue outputting snippets-safe-mode query variable value as-is. Thanks to Krzysztof Zając for reporting.
Version 2.14.2 (9 Sep 2021)
- Fixed: Prevent network snippets table from being created on single-site installs.
- Added translations:
- Spanish by Ibidem Group
- Urdu by Samuel Badree
- Greek by Toni Bishop from Jrop
- Added: Support for
:class
syntax to the code validator. - Added: PHP8 support to the code linter.
- Added: Color picker feature to the code editor.
- Added: Failsafe to prevent multiple versions of Code Snippets from running simultaneously.
Version 2.14.1 (10 Mar 2021)
- Added: Czech translation by Lukáš Tesař.
- Fixed: Code validator now supports
function_exists
andclass_exists
checks. - Fixed: Code validator now supports anonymous functions.
- Fixed: Issue with saving the hidden columns setting.
- Fixed: Replaced the outdated tag-it library with tagger for powering the snippet tags editor.
- Added: Code direction setting for RTL users.
- Updated CodeMirror to version 5.59.4.
- Added: Additional action hooks and search API thanks to @Spreeuw.