PluginProbe
Code Snippets / trunk
Code Snippets vtrunk
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
← All changes | readme.txt +89 -208 3.9.6 → trunk View file →
@@ -1,12 +1,14 @@
1 1 === Code Snippets ===
2 -Contributors: bungeshea, ver3, lightbulbman, 0aksmith, johnpixle, louiswol94, carolinaop
2 +Contributors: bungeshea, ver3, lightbulbman, 0aksmith, johnpixle, carolinaop, tallblokeuk
3 3 Donate link: https://codesnippets.pro
4 4 Tags: code, snippets, multisite, php, css
5 5 License: GPL-2.0-or-later
6 6 License URI: license.txt
7 -Stable tag: 3.9.6
8 -Tested up to: 6.9
7 +Stable tag: 3.10.2
8 +Requires at least: 5.5
9 +Tested up to: 7.1
10 +Requires PHP: 7.4
9 11
10 12 An easy, clean, and simple way to enhance your site with code snippets.
11 13
12 14 == Description ==
@@ -39,9 +41,9 @@
39 41 🌍 We'd like to thank the wonderful people who have helped contribute translations to allow Code Snippets to be used in different languages. [You can find a full list here](https://github.com/codesnippetspro/code-snippets/blob/core/CREDITS.md#translators).
40 42
41 43 == Installation ==
42 44
43 -= Automatic installation =
45 += Automatic Installation =
44 46
45 47 1. Log into your WordPress admin
46 48 2. Click __Plugins__
47 49
@@ -51,9 +53,9 @@
51 53
52 54 5. Click __Install Now__ under "Code Snippets"
53 55 6. Activate the plugin
54 56
55 -= Manual installation =
57 += Manual Installation =
56 58
57 59 1. Download the plugin
58 60 2. Extract the contents of the zip file
59 61 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation
@@ -103,60 +105,121 @@
103 105 4. Importing snippets from an export file
104 106
105 107 == Changelog ==
106 108
107 -= 3.9.6 (2026-04-28) =
109 += 3.10.2 (2026-09-01) =
108 110
111 +__Added__
112 +
113 +* Added a confirmation flow for run-once snippet execution and hardened the handler to prevent failed or confusing actions.
114 +
109 115 __Changed__
110 116
111 -* tweak: improve snippets rest api
117 +* Snippet names now respect the row truncation Screen Option in the admin list for better readability.
118 +* Version switching AJAX requests now validate the correct nonce, improving reliability when updating snippet versions.
112 119
113 -__Removed__
120 +__Fixed__
114 121
115 -* remove redundant comments
122 +* Fixed safe mode fatal errors caused by an undefined wp_get_current_user() call.
123 +* Fixed PHP validation being triggered incorrectly when activating snippets in bulk.
124 +* Fixed saving issues after a user session expires.
125 +* Fixed warnings caused by aliased field names when reading modified snippet fields.
126 +* Fixed vendor autoloader issues by stripping unprefixed namespace references.
127 +* Resolved issues where snippet names and version switches could behave inconsistently in the admin UI.
116 128
129 += 3.10.1 (2026-08-28) =
130 +
131 +__Changed__
132 +
133 +* Enhanced active-link visibility in the toolbar with border-based styling.
134 +
117 135 __Fixed__
118 136
119 -* site admin cannot toggle shared network snippets status
137 +* Fixed a fatal error affecting snippets that use a `namespace` or `declare` statement.
138 +* Fixed the snippets page rendering blank when another plugin's screen settings filter returned an invalid value.
139 +* Fixed snippet saving on hosts that block REST API `PUT` and `PATCH` requests, by sending writes as `POST` with a method override.
140 +* Fixed the Snippets List Order setting not being applied to the snippets list.
141 +* Fixed admin bar snippet scripts failing to load on the free version, including on the site front end.
142 +* Fixed snippet modified dates being sent without the correct UTC offset.
143 +* Fixed the row truncation screen option not persisting across sessions.
144 +* Fixed inconsistent sidebar label sizes.
145 +* Fixed the sticky editor sidebar showing an unwanted horizontal scrollbar.
120 146
121 -= 3.9.5 (2026-02-05) =
147 += 3.10.0 (2026-08-24) =
122 148
123 149 __Added__
124 150
125 -* Confirmed WordPress 6.9 compatability
151 +* New admin interface for managing snippets, with a cleaner layout, faster interactions, and a more consistent experience across plugin screens.
152 +* Card view for browsing snippets, with a view switcher on the snippets table and Community Cloud.
153 +* Snippet preview modal for viewing snippet code from the snippets table without opening the editor.
154 +* Automatic hiding of unrelated admin notices from other plugins on Code Snippets screens.
155 +* Admin bar snippet drawer, based on the Deckerweb Snippets workflow, for quick access to snippets and Safe Mode from the WordPress admin bar.
156 +* Snippet locking to help prevent accidental edits or deletion of important snippets. Props to https://github.com/mgiannopoulos24.
157 +* Improved screen options on the main snippets table, including controls for visible columns and truncating long snippet names or descriptions.
158 +* Bulk actions and bulk code download support in the redesigned snippets table.
159 +* Featured snippets and improved browsing in Community Cloud.
160 +* WordPress modern theme admin styling compatibility.
161 +* Clearer accessibility labels, headings, tab markup, table checkboxes, sort buttons, copy buttons, and drag-and-drop upload controls.
126 162
127 163 __Changed__
128 164
129 -* Improved nonce handling for cloud snippet download and update actions to for enhanced security
165 +* Redesigned the main snippets table with improved search, filtering, sorting, pagination, row actions, and bulk selection.
166 +* Improved the snippet import and migration experience, including clearer file upload handling and third-party plugin migration flows.
167 +* Improved snippet error handling so activation failures, validation errors, and stack traces are easier to understand.
168 +* Improved Community Cloud search and filtering, including server-side filters, better result loading, and clearer empty states.
169 +* Updated the welcome screen, toolbar, import screen, and cloud screens to match the new admin experience.
170 +* Updated internal plugin architecture to a cleaner PSR-4 structure for better long-term maintainability.
171 +* Improved accessibility across the snippets table, import screen, migration flow, Community Cloud, welcome screen, toolbar, dialogs, tooltips, and code editor.
172 +* Improved colour contrast and reduced-motion support across admin screens.
130 173
174 +__Fixed__
175 +
176 +* Fixed REST API server error responses on missing snippets.
177 +* Fixed redundant frontend logic, improving overall performance.
178 +* Fixed Community Cloud search results and pagination to respect WordPress screen options.
179 +* Fixed snippet saving and activation feedback to improve validation and runtime error display.
180 +* Fixed downloaded Community Cloud snippets appearing as not downloaded after a page reload.
181 +* Fixed network snippet lookups using the wrong database table on multisite.
182 +* Fixed the inactive snippets count including trashed snippets.
183 +* Fixed featured Community Cloud snippets failing to load with some cloud API responses.
184 +
185 += 3.9.6 (2026-04-28) =
186 +
187 +__Fixed__
188 +
189 +* Improved permissions handling with snippets REST API.
190 +* Site admin cannot toggle shared network snippets status.
191 +
192 += 3.9.5 (2026-02-05) =
193 +
194 +__Fixed__
195 +
196 +* Improved security when handling actions for downloading and updating cloud snippets.
197 +
131 198 = 3.9.4 (2026-01-14) =
132 199
133 200 __Added__
134 201
135 -* New import functionality to migrate snippets from file uploads with drag-and-drop interface
136 -* Support for importing snippets from other popular plugins (Header Footer Code Manager, Insert Headers and Footers, Insert PHP Code Snippet)
137 -* Enhanced file based execution support with improved multisite mode compatibility
202 +* New import functionality to migrate snippets from file uploads with drag-and-drop interface.
203 +* Support for importing snippets from other popular plugins (Header Footer Code Manager, Insert Headers and Footers, Insert PHP Code Snippet).
204 +* Enhanced file based execution support with improved multisite mode compatibility.
138 205
139 -__Changed__
140 -
141 -* Updated links to more recent documentation pages
142 -
143 206 __Fixed__
144 207
145 -* Fixed multisite capability checks in Plugin class
146 -* Fixed snippet execution logic for multisite support by centralizing trashed snippet handling
147 -* Fixed multisite snippet handling to ensure local snippets use correct table and filter out trashed snippets
208 +* Fixed multisite capability checks in Plugin class.
209 +* Fixed snippet execution logic for multisite support by centralizing trashed snippet handling.
210 +* Fixed multisite snippet handling to ensure local snippets use correct table and filter out trashed snippets.
148 211
149 212 = 3.9.3 (2025-12-03) =
150 213
151 214 __Added__
152 215
153 -* Enhanced end-to-end tests to verify the toggle visual state in the snippets list page, improving UI verification and test reliability
216 +* End-to-end tests to verify the toggle visual state in the snippets list page, improving UI verification and test reliability.
154 217
155 218 __Fixed__
156 219
157 -* Fix missing import of common/direction in src/css/manage.scss to restore correct styling and direction-aware layout
158 -* Fix toggle activation check to ensure the correct transformation value is used when detecting active/inactive state
220 +* Restored missing styles styling and direction-aware layout from Manage menu.
221 +* Ensure correct transformation value is used when detecting state of activation toggle.
159 222
160 223 = 3.9.2 (2025-11-17) =
161 224
162 225 __Changed__
@@ -280,188 +343,6 @@
280 343
281 344 __Fixed__
282 345
283 346 * Fixed errors in bundle iteration by adding a check for the bundles array before iterating.
284 -
285 -= 3.6.8 (2025-02-14) =
286 -
287 -__Added__
288 -
289 -* `code_snippets/hide_welcome_banner` filter hook for hiding welcome banner in dashboard.
290 -
291 -__Changed__
292 -
293 -* Updated Freemius SDK to the latest version. (PRO)
294 -
295 -__Removed__
296 -
297 -* Functionality allowing `[code_snippet]` shortcodes to be embedded recursively – it will be re-added in a future version.
298 -
299 -__Fixed__
300 -
301 -* Shortcodes embedded within `[code_snippet]` shortcodes not evaluating correctly.
302 -* Translation functions being called too early in some instances when loading plugin settings.
303 -* 'Generate' button not appearing on some sites. (PRO)
304 -* Incorrect arrow entity used in cloud list table (props to [brandonjp]).
305 -* Removed reference to missing plugins.css file in core plugin version.
306 -
307 -= 3.6.7 (2025-01-24) =
308 -
309 -__Added__
310 -
311 -* Generated snippet shortcode tags will include the snippet name, for easier identification.
312 -* Admin notices will dismiss automatically after five seconds. ([#208](https://github.com/codesnippetspro/code-snippets/issues/208))
313 -
314 -__Changed__
315 -
316 -* Updated CSS to use latest Sass features.
317 -* Moved theme selector to just above editor preview on settings page (thanks to brandonjp). ([#206](https://github.com/codesnippetspro/code-snippets/issues/206))
318 -* `[code_snippet]` shortcodes can now be nested within each other. ([#198](https://github.com/codesnippetspro/code-snippets/issues/198))
319 -
320 -__Fixed__
321 -
322 -* Save buttons above editor did not follow usual validation process in Pro. (PRO) ([#197](https://github.com/codesnippetspro/code-snippets/issues/197))
323 -* Minor inconsistencies in consistent UI elements between Core and Pro.
324 -* Tags input not allowing input. ([#211](https://github.com/codesnippetspro/code-snippets/issues/211))
325 -* Issue with Elementor source code widget. (PRO) ([#205](https://github.com/codesnippetspro/code-snippets/issues/205))
326 -* Snippet descriptions not visible when viewing cloud search results.
327 -* Snippet import page not displaying number of successfully imported snippets.
328 -* Use UTC time when deciding when to display campaign notices.
329 -
330 -= 3.6.6.1 (2024-11-27) =
331 -
332 -__Fixed__
333 -
334 -* Redeployment of v3.6.6 to overcome issue with initial build.
335 -* Type issue when caching cloud links. (PRO)
336 -
337 -= 3.6.6 (2024-11-27) =
338 -
339 -__Changed__
340 -
341 -* Improved compatability with modern versions of PHP.
342 -* Extended welcome API to include admin notices.
343 -
344 -__Fixed__
345 -
346 -* Memory issue from checking aggregate posts while loading front-end syntax highlighter.
347 -* Translation functions being called too early on upgrade, resulting in localisation loading errors.
348 -* Bug preventing the 'share on network' status of network snippets from correctly updating.
349 -* Incorrect logic controlling when to display 'Save Changes' or 'Save Changes and Activate' buttons.
350 -* Old notices persisting when switching between editing and creating snippets.
351 -
352 -= 3.6.5.1 (2024-05-24) =
353 -
354 -* Redeployment of v3.6.5 to overcome issue with initial build.
355 -
356 -= 3.6.5 (2024-05-24) =
357 -
358 -__Added__
359 -
360 -* New admin menu providing useful resources and updates on the Code Snippets plugin and community.
361 -
362 -= 3.6.4 (2024-03-15) =
363 -
364 -__Added__
365 -
366 -* AI generation for all snippet types: HTML, CSS, JS. (PRO)
367 -* Button to create a cloud connection directly from the Snippets menu when disconnected. (PRO)
368 -
369 -__Changed__
370 -
371 -* Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO)
372 -* UX in generate dialog, such as allowing 'Enter' to submit the form. (PRO)
373 -
374 -__Fixed__
375 -
376 -* Minor type compatability issue with newer versions of PHP.
377 -* Undefined array key issue when initiating cloud sync. (PRO)
378 -* Bug preventing downloading a single snippet from a bundle. (PRO)
379 -* Translations not loading for strings in JavaScript files.
380 -
381 -= 3.6.3 (2023-11-13) =
382 -
383 -__Added__
384 -
385 -* Added debug action for resetting snippets caches.
386 -
387 -__Fixed__
388 -
389 -* Import error when initialising cloud sync configuration. (PRO)
390 -
391 -= 3.6.2 (2023-11-11) =
392 -
393 -__Removed__
394 -
395 -* Removed automatic encoding of code content.
396 -
397 -__Fixed__
398 -
399 -* Error when attempting to save shared network snippets marked as active.
400 -* Type error when rendering checkbox fields without a stored or default value.
401 -* Label for snippet sharing input incorrectly linked to input field.
402 -* Error when attempting to download export files from Edit menu.
403 -* Issue loading Freemius string overrides too early. (PRO)
404 -* Fix redirect URL when connecting with OAuth on subdirectory or HTTPS sites. (PRO)
405 -* Import error when attempting to completely uninstall the plugin.
406 -
407 -= 3.6.1 (2023-11-07) =
408 -
409 -__Fixed__
410 -
411 -* Issue accessing fields on Snippets class.
412 -
413 -= 3.6.0 (2023-11-07) =
414 -
415 -__Added__
416 -
417 -* Ability to authenticate with Code Snippets Cloud using OAuth. (PRO)
418 -* Integration with GPT AI for generating snippets. (PRO)
419 -* Ability to generate line-by-line descriptions of snippet code with GPT AI. (PRO)
420 -* Ability to generate tags and description text from existing snippet code with GPT AI. (PRO)
421 -* Added debug settings menu for manually performing problem-solving actions.
422 -* Filter to disable scroll-into-view functionality for edit page notices.
423 -
424 -__Changed__
425 -
426 -* Updated minimum PHP requirement to 7.4.
427 -* Ensure that the URL of the edit snippet page changes when adding a new snippet.
428 -* Snippet tags will automatically be added when focus is lost on the tags field.
429 -
430 -__Fixed__
431 -
432 -* Moved active status border on edit name field to left-hand side.
433 -* New notices will not scroll if already at top of page.
434 -* Potential CSRF vulnerability allowing an authenticated user to reset settings.
435 -
436 -= 3.5.1 (2023-09-15) =
437 -
438 -__Fixed__
439 -
440 -* Undefined array key error when accessing plugin settings page. (PRO)
441 -* Issue registering API endpoints affecting edit post screen. (PRO)
442 -* Snippet ID instead of snippet object being passed to `code_snippets/update_snippet` action hook.
443 -
444 -= 3.5.0 (2023-09-13) =
445 -
446 -__Added__
447 -
448 -* Support for the Code Snippets Cloud API.
449 -* Search and download public snippets.
450 -* Codevault back-up and synchronisation. (PRO)
451 -* Synchronised local snippets are automatically updated in Cloud. (PRO)
452 -* Bulk actions - 'update' and 'download'.
453 -* Download snippets from public and private codevaults. (PRO)
454 -* Search and download any publicly viewable snippet in Code Snippet Cloud by keyword or name of codevault. (PRO)
455 -* Deploy snippets to plugin from Code Snippets Cloud app. (PRO)
456 -* Bundles of Joy! Search and download Snippet Bundles in one go direct from Code Snippets Cloud. (PRO)
457 -
458 -__Changed__
459 -
460 -* Redirect to snippets table when deleting snippet from the edit menu.
461 -* Scroll new notices into view on edit menu.
462 -
463 -__Fixed__
464 -
465 -* Error when attempting to update network shared snippets after saving. [[#](https://wordpress.org/support/topic/activating-snippets-breaks-on-wordpress-6-3/)]
466 347
467 348 **[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/core/CHANGELOG.md)**