| @@ -1,16 +1,16 @@ | ||
| 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 | |
| 7 | +Stable tag: 3.10.2 | |
| 8 | 8 | Requires at least: 5.5 |
| 9 | -Tested up to: 7.0 | |
| 9 | +Tested up to: 7.1 | |
| 10 | 10 | Requires PHP: 7.4 |
| 11 | 11 | |
| 12 | -An easy, clean and simple way to enhance your site with code snippets. | |
| 12 | +An easy, clean, and simple way to enhance your site with code snippets. | |
| 13 | 13 | |
| 14 | 14 | == Description == |
| 15 | 15 | |
| 16 | 16 | **✂ Code Snippets** provides an effortless way to enhance your WordPress site. |
| @@ -105,19 +105,60 @@ | ||
| 105 | 105 | 4. Importing snippets from an export file |
| 106 | 106 | |
| 107 | 107 | == Changelog == |
| 108 | 108 | |
| 109 | -= 4.0.0 (UPCOMING) = | |
| 109 | += 3.10.2 (2026-09-01) = | |
| 110 | 110 | |
| 111 | 111 | __Added__ |
| 112 | 112 | |
| 113 | +* Added a confirmation flow for run-once snippet execution and hardened the handler to prevent failed or confusing actions. | |
| 114 | + | |
| 115 | +__Changed__ | |
| 116 | + | |
| 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. | |
| 119 | + | |
| 120 | +__Fixed__ | |
| 121 | + | |
| 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. | |
| 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 | + | |
| 135 | +__Fixed__ | |
| 136 | + | |
| 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. | |
| 146 | + | |
| 147 | += 3.10.0 (2026-08-24) = | |
| 148 | + | |
| 149 | +__Added__ | |
| 150 | + | |
| 113 | 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. | |
| 114 | 155 | * Admin bar snippet drawer, based on the Deckerweb Snippets workflow, for quick access to snippets and Safe Mode from the WordPress admin bar. |
| 115 | 156 | * Snippet locking to help prevent accidental edits or deletion of important snippets. Props to https://github.com/mgiannopoulos24. |
| 116 | 157 | * Improved screen options on the main snippets table, including controls for visible columns and truncating long snippet names or descriptions. |
| 117 | 158 | * Bulk actions and bulk code download support in the redesigned snippets table. |
| 118 | 159 | * Featured snippets and improved browsing in Community Cloud. |
| 119 | -* WordPress 7.0 admin styling compatibility. | |
| 160 | +* WordPress modern theme admin styling compatibility. | |
| 120 | 161 | * Clearer accessibility labels, headings, tab markup, table checkboxes, sort buttons, copy buttons, and drag-and-drop upload controls. |
| 121 | 162 | |
| 122 | 163 | __Changed__ |
| 123 | 164 | |
| @@ -135,8 +176,12 @@ | ||
| 135 | 176 | * Fixed REST API server error responses on missing snippets. |
| 136 | 177 | * Fixed redundant frontend logic, improving overall performance. |
| 137 | 178 | * Fixed Community Cloud search results and pagination to respect WordPress screen options. |
| 138 | 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. | |
| 139 | 184 | |
| 140 | 185 | = 3.9.6 (2026-04-28) = |
| 141 | 186 | |
| 142 | 187 | __Fixed__ |