Releases: codesnippetspro/code-snippets
Version 3.6.6
Changed
- Improved compatability with modern versions of PHP.
- Extended welcome API to include admin notices.
- Action hook
code_snippets/update_snippetnow only includes the snippet ID instead of the full snippet object. - Action hook
code_snippets/admin/managenow includes the currently viewed type.
Fixed
- Memory issue from checking aggregate posts while loading front-end syntax highlighter.
- Translation functions being called too early on upgrade, resulting in localisation loading errors.
- Bug preventing the 'share on network' status of network snippets from correctly updating.
- Incorrect logic controlling when to display 'Save Changes' or 'Save Changes and Activate' buttons.
- Old notices persisting when switching between editing and creating snippets.
Version 3.6.5 (2024-05-24)
Added
- New admin menu providing useful resources and updates on the Code Snippets plugin and community.
Version 3.6.4 (2024-03-15)
Added
- AI generation for all snippet types: HTML, CSS, JS. (PRO)
- Button to create a cloud connection directly from the Snippets menu when disconnected. (PRO)
Changed
- Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO)
- UX in generate dialog, such as allowing 'Enter' to submit the form. (PRO)
Fixed
- Minor type compatibility issue with newer versions of PHP.
- Undefined array key issue when initiating cloud sync. (PRO)
- Bug preventing downloading a single snippet from a bundle. (PRO)
- Translations not loading for strings in JavaScript files.
Version 3.6.3 (2023-11-13)
Added
- Added debug action for resetting snippets caches.
Fixed
- Import error when initialising cloud sync configuration. (PRO)
Version 3.6.2 (11 Nov 2023)
- Fixed: Error when attempting to save shared network snippets marked as active.
- Fixed: Type error when rendering checkbox fields without a stored or default value.
- Fixed: Removed automatic encoding of code content.
- Fixed: Label for snippet sharing input incorrectly linked to input field.
- Fixed: Error when attempting to download export files from Edit menu.
- Fixed: Issue loading Freemius string overrides too early. (PRO)
- Fixed: Fix redirect URL when connecting with OAuth on subdirectory or HTTPS sites. (PRO)
- Fixed: Import error when attempting to completely uninstall the plugin.
Version 3.6.1 (07 Nov 2023)
- Fixed: Issue accessing fields on Snippets class.
Version 3.6.0 (07 Nov 2023)
-
Updated minimum PHP requirement to 7.4.
-
Added: Ability to authenticate with Code Snippets Cloud using OAuth. (PRO)
-
Added: Integration with GPT AI for generating snippets. (PRO)
-
Added: Ability to generate line-by-line descriptions of snippet code with GPT AI. (PRO)
-
Added: Ability to generate tags and description text from existing snippet code with GPT AI. (PRO)
-
Improved: Ensure that the URL of the edit snippet page changes when adding a new snippet.
-
Improved: Snippet tags will automatically be added when focus is lost on the tags field.
-
Improved: Added debug settings menu for manually performing problem-solving actions.
-
Fixed: Moved active status border on edit name field to left-hand side.
-
Added: Filter to disable scroll-into-view functionality for edit page notices.
-
Fixed: New notices will not scroll if already at top of page.
-
Fixed: Potential CSRF vulnerability allowing an authenticated user to reset settings.
Version 3.5.1 (15 Sep 2023)
- Fixed: Undefined array key error when accessing plugin settings page. (PRO)
- Fixed: Issue registering API endpoints affecting edit post screen. (PRO)
- Fixed: Snippet ID instead of snippet object being passed to
code_snippets/update_snippetaction hook.
Version 3.5.0 (13 Sep 2023)
- Added: Support for the Code Snippets Cloud API.
- Added: Search and download public snippets.
- Added: Codevault back-up and synchronisation. (PRO)
- Added: Synchronised local snippets are automatically updated in Cloud. (PRO)
- Added: Bulk actions - 'update' and 'download'.
- Added: Download snippets from public and private codevaults. (PRO)
- Added: Search and download any publicly viewable snippet in Code Snippet Cloud by keyword or name of codevault. (PRO)
- Added: Deploy snippets to plugin from Code Snippets Cloud app. (PRO)
- Added: Bundles of Joy! Search and download Snippet Bundles in one go direct from Code Snippets Cloud. (PRO)
- Fixed: Error when attempting to update network shared snippets after saving. [#]
- Improved: Redirect to snippets table when deleting snippet from the edit menu.
- Improved: Scroll new notices into view on edit menu.