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 +248 -219 3.0.0 → trunk View file →
@@ -1,74 +1,61 @@
1 1 === Code Snippets ===
2 -Contributors: bungeshea, ver3
2 +Contributors: bungeshea, ver3, lightbulbman, 0aksmith, johnpixle, carolinaop, tallblokeuk
3 3 Donate link: https://codesnippets.pro
4 -Tags: snippets, functions, multisite, code, php, html, css, javascript
5 -License: MIT
4 +Tags: code, snippets, multisite, php, css
5 +License: GPL-2.0-or-later
6 6 License URI: license.txt
7 -Stable tag: 3.0.0
8 -Tested up to: 6.0
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 -An easy, clean and simple way to run code snippets on your site.
12 +An easy, clean, and simple way to enhance your site with code snippets.
11 13
12 14 == Description ==
13 15
14 -Code Snippets is an easy, clean and simple way to run code snippets on your site. It removes the need to add custom snippets to your theme's `functions.php` file.
16 +**✂ Code Snippets** provides an effortless way to enhance your WordPress site.
15 17
16 -A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website; essentially a mini-plugin with less load on your site.
17 -Most snippet-hosting sites tell you to add snippet code to your active theme's `functions.php` file, which can get rather long and messy after a while.
18 -Code Snippets changes that by providing a GUI interface for adding snippets and **actually running them on your site** just as if they were in your theme's `functions.php` file.
18 +**🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, Elementor and cloud synchronisation integrations. **[Elevate your snippets experience now!](https://codesnippets.pro/pricing)**
19 19
20 -Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets. Snippets can be activated and deactivated, just like plugins. The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor. Snippets can be exported for transfer to another site, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.
20 +Say goodbye to the hassle of tweaking your theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process!
21 21
22 -If you have any feedback, issues, or suggestions for improvements please leave a topic in the [Support Forum](https://wordpress.org/support/plugin/code-snippets), or [join the community on Facebook](https://facebook.com/groups/codesnippetsplugin).
22 +A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter.
23 23
24 -If you like this plugin, or it is useful to you in some way, please consider reviewing it on [WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets).
24 +Unlike other solutions that involve dumping code into your `functions.php` file, Code Snippets offers an intuitive graphical interface for seamless integration and real-time execution. Managing snippets is as easy as activating and deactivating plugins, only without the bloat and overhead.
25 25
26 -If you'd like to contribute to the plugin's code or translate it into another language, you can [fork the plugin on GitHub](https://github.com/sheabunge/code-snippets).
26 +**🎥 Watch a quick overview by Imran Siddiq:**
27 27
28 -== Translations ==
28 +https://youtu.be/uzND-wdSCMQ
29 29
30 -Code Snippets can be used in these different languages thanks to the following translators:
30 +☁️ Each copy of Code Snippets includes full integration with the community-powered [Code Snippets Cloud](https://codesnippets.cloud/) platform, providing easy access to hundreds of tweaks and enhancements ready to power-up any WordPress site.
31 31
32 -* Belarusian – [Hrank.com](https://www.hrank.com)
33 -* Brazilian Portuguese – [Bruno Borges](http://brunoborges.info)
34 -* Chinese – [Jincheng Shan](http://shanjincheng.com) and [诗语](https://profiles.wordpress.org/f2010525/)
35 -* Chinese (Taiwan) – [Alex Lion](https://www.alexclassroom.com/) and [Chun-Chih Cheng](https://profiles.wordpress.org/alex1114/)
36 -* Croatian – [Borisa Djuraskovic from Web Hosting Hub](https://www.webhostinghub.com/)
37 -* Czech – [Lukáš Tesař](mailto:[email protected]) and [Jakub Humpolec](https://profiles.wordpress.org/jumphy/)
38 -* Danish – [Finn Sommer Jensen](https://profiles.wordpress.org/finnsommer/)
39 -* Dutch – [Sander Spies](https://github.com/sander1), [Peter Smits](https://psmits.com) and [mother.of.code.a11n](https://profiles.wordpress.org/imazed/)
40 -* English (New Zealand) and English (UK) – [webaware](https://profiles.wordpress.org/webaware/)
41 -* English (South Africa) – [webaware](https://profiles.wordpress.org/webaware/) and [Ian Barnes](https://profiles.wordpress.org/ianbarnes/)
42 -* French – [momo-fr](https://www.momofr.net/), [Didier Demory](https://www.wptrads.com/), [Cyrille Sanson](https://100son.net/) and [Shea Bunge](https://sheabunge.com)
43 -* French (Canada) – [Dominic Desbiens](https://www.dominicdesbiens.com/)
44 -* German – [Mario Siegmann](https://web-alltag.de/), [Joerg Knoerchen](https://www.sensorgrafie.de/), [David Decker](https://deckerweb.de) and [Andreas](https://profiles.wordpress.org/perryzelda/)
45 -* Greek – [Konstantinos Megas](https://profiles.wordpress.org/nextdoorpanda/) and [Toni Bishop from Jrop](https://www.jrop.com/)
46 -* Indonesian – [Jordan Silaen from ChameleonJohn.com](https://www.chameleonjohn.com/)
47 -* Italian – [Usman Wagan](https://coupontoaster.com/), [Luisa Ravelli](https://profiles.wordpress.org/darkavenger/) and [ElectricFeet](https://profiles.wordpress.org/electricfeet/)
48 -* Japanese – [mt8](https://mt8.biz/), [Takakazu Nagaya](https://profiles.wordpress.org/tanagaya/), [Naoko Takano](https://naoko.blog/) and [melvas](https://profiles.wordpress.org/melvas/)
49 -* Persian – [Mohammad Novintanon](http://mnovintan.ir/)
50 -* Russian – [Alexander Samsonov](http://www.wordpressplugins.ru/administration/code-snippets.html), [Yui](https://profiles.wordpress.org/fierevere/), [Denis Yanchevskiy](https://denisco.pro/) and [krioteh](https://profiles.wordpress.org/krioteh/)
51 -* Slovak – [Ján Fajčák](https://wp.sk)
52 -* Spanish (Colombia) and Spanish (Ecuador) – [Javier Esteban](https://javieresteban.org/)
53 -* Spanish (Spain) – [Ibidem Group](https://www.ibidemgroup.com), [Javier Esteban](https://javieresteban.org/), [Fernando Tellado](https://ayudawp.com/) and [Juanma Aranda](https://juanmaaranda.com/)
54 -* Spanish (Venezuela) – [Yordan Soares](https://yordansoar.es/)
55 -* Swedish – [Argentum](https://profiles.wordpress.org/argentum/), [Fredrik](https://profiles.wordpress.org/elbogen/) and [Tor-Bjorn Fjellner](https://profiles.wordpress.org/tobifjellner/)
56 -* Urdu – [Samuel Badree](https://mobilemall.pk/)
57 -* Vietnamese – [Tuan Phan](https://profiles.wordpress.org/khunglong/)
32 +**🌐 Connect with us:**
58 33
34 +* [Support Forum](https://wordpress.org/support/plugin/code-snippets)
35 +* [Facebook Community](https://facebook.com/groups/codesnippetsplugin)
36 +* [Discord Community](https://snipco.de/discord)
37 +* [GitHub Repository](https://github.com/codesnippetspro/code-snippets)
38 +
39 +🌟 Like our plugin? Find it useful? Please consider sharing your experience by [leaving a review on WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). Your feedback is instrumental to shaping our future growth!
40 +
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).
42 +
59 43 == Installation ==
60 44
61 -= Automatic installation =
45 += Automatic Installation =
62 46
63 47 1. Log into your WordPress admin
64 48 2. Click __Plugins__
49 +
65 50 3. Click __Add New__
51 +
66 52 4. Search for __Code Snippets__
53 +
67 54 5. Click __Install Now__ under "Code Snippets"
68 55 6. Activate the plugin
69 56
70 -= Manual installation =
57 += Manual Installation =
71 58
72 59 1. Download the plugin
73 60 2. Extract the contents of the zip file
74 61 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation
@@ -77,12 +64,12 @@
77 64 Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network.
78 65
79 66 == Frequently Asked Questions ==
80 67
81 -A full list of our Frequently Asked Questions can be found at [help.codesnippets.pro](https://help.codesnippets.pro/collection/3-faq).
68 +A full list of our Frequently Asked Questions can be found at [codesnippets.pro](https://codesnippets.pro/docs/faq/).
82 69
83 70 = How can I recover my site if it is crashed by a buggy snippet? =
84 -You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are available here: <https://help.codesnippets.pro/article/12-safe-mode>.
71 +You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are available here: <https://codesnippets.pro/doc/safe-mode/>.
85 72
86 73 = Will I lose my snippets if I change the theme or upgrade WordPress? =
87 74 No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades.
88 75
@@ -101,13 +88,16 @@
101 88 = Where are the snippets stored in my WordPress database? =
102 89 Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what your table prefix is set to.
103 90
104 91 = Where can I go for help or suggest new features? =
105 -You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/sheabunge/code-snippets)
92 +You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/codesnippetspro/code-snippets).
106 93
107 94 = How can I help contribute to the development of the Code Snippets plugin? =
108 -The best way to do this is to fork the [repository on GitHub](https://github.com/sheabunge/code-snippets) and send a pull request.
95 +The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send a pull request.
109 96
97 += How can I report security bugs found in this plugin? =
98 +You can report security bugs found in the source code of this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/code-snippets). The Patchstack team will assist with verification, triage, and notification of security vulnerabilities.
99 +
110 100 == Screenshots ==
111 101
112 102 1. Managing existing snippets
113 103 2. Adding a new snippet
@@ -115,205 +105,244 @@
115 105 4. Importing snippets from an export file
116 106
117 107 == Changelog ==
118 108
119 -= 3.0.0 (14 May 2022) =
109 += 3.10.2 (2026-09-01) =
120 110
121 111 __Added__
122 -* Added: HTML content snippets for displaying as shortcodes or including in the page head or footer area.
123 -* Added: Notice reminding users to upgrade unsupported PHP versions.
124 -* Added: Visual settings to add attributes to shortcodes.
125 -* Added: Shortcode buttons to the post and page content editors.
126 -* Added: Basic REST API endpoints.
127 -* Added: Snippet type column to the snippets table.
128 -* Added: Snippet type badges to Edit and Add New Snippet pages.
129 -* Added: Setting to control whether the current line of the code editor is highlighted.
130 -* Added: Display a warning when saving a snippet with missing title or code.
131 -* Added: Add suffix to title of cloned snippets.
132 112
113 +* Added a confirmation flow for run-once snippet execution and hardened the handler to prevent failed or confusing actions.
114 +
133 115 __Changed__
134 -* Improved: Updated plugin code to use namespaces, preventing name collisions with other plugins.
135 -* Improved: Added key for the 'active' and 'scope' database table columns to speed up queries.
136 -* Improved: Redirect from edit menu if not editing a valid snippet.
137 -* Improved: Moved activation switch into its own table column.
138 -* Improved: Updated code documentation according to WordPress standards.
139 -* Improved: Added snippet type labels to the tabs on the Snippets page.
140 -* Improved: Split settings page into tabs.
141 -* Improved: Use the version of CodeMirror included with WordPress where possible to inherit the additional built-in features.
142 -* Improved: Added hover effect to priority settings in the snippets table to show that they are editable.
143 -* Fixed: Snippets table layout on smaller screens.
144 116
145 -__Deprecated__
146 -* Removed: Deprecated functions and compatibility code for unsupported PHP versions.
147 -* Removed: Option to disable snippet scopes.
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.
148 119
149 -__New in Pro__
150 -* Added: CSS style snippets for the site front-end and admin area.
151 -* Added: JavaScript snippets for the site head and body area on the front-end.
152 -* Added: Browser cache versioning for CSS and JavaScript snippets.
153 -* Added: Support for exporting and downloading CSS and JavaScript snippets.
154 -* Added: Support for highlighting code on the front-end.
155 -* Added: Editor syntax highlighting for CSS, JavaScript and HTML snippets.
156 -* Added: Button to preview full file when editing CSS or JavaScript snippets.
157 -* Added: Option to minify CSS and JavaScript snippets.
158 -* Added: Gutenberg editor block for displaying content snippets.
159 -* Added: Gutenberg editor block for displaying snippet source code.
160 -* Added: Elementor widget for displaying content snippets.
161 -* Added: Elementor widget for displaying snippet source code.
120 +__Fixed__
162 121
163 -= 2.14.6 (13 May 2022) =
164 -* Fixed: Issue with processing uploaded import files.
165 -* Fixed: Issue with processing tag filters.
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.
166 128
167 -= 2.14.5 (10 May 2022) =
168 -* Fixed: Incompatibility issue with older versions of PHP.
129 += 3.10.1 (2026-08-28) =
169 130
170 -= 2.14.4 (5 May 2022) =
171 -* Fixed: Prevent array key errors when loading the snippet table with unknown order values.
131 +__Changed__
172 132
173 -= 2.14.3 (10 Dec 2021) =
174 -* Fixed: Potential security issue outputting snippets-safe-mode query variable value as-is. Thanks to Krzysztof Zając for reporting.
133 +* Enhanced active-link visibility in the toolbar with border-based styling.
175 134
176 -= 2.14.2 (9 Sep 2021) =
177 -* Fixed: Prevent network snippets table from being created on single-site installs.
178 -* Added translations:
179 - - Spanish by [Ibidem Group](https://www.ibidemgroup.com)
180 - - Urdu by [Samuel Badree](https://mobilemall.pk/)
181 - - Greek by [Toni Bishop from Jrop](https://www.jrop.com/)
182 -* Added: Support for `:class` syntax to the code validator.
183 -* Added: PHP8 support to the code linter.
184 -* Added: Color picker feature to the code editor.
185 -* Added: Failsafe to prevent multiple versions of Code Snippets from running simultaneously.
135 +__Fixed__
186 136
187 -= 2.14.1 (10 Mar 2021) =
188 -* Added: Czech translation by [Lukáš Tesař](https://github.com/atomicf4ll).
189 -* Fixed: Code validator now supports `function_exists` and `class_exists` checks.
190 -* Fixed: Code validator now supports anonymous functions.
191 -* Fixed: Issue with saving the hidden columns setting.
192 -* Fixed: Replaced the outdated tag-it library with [tagger](https://github.com/jcubic/tagger) for powering the snippet tags editor.
193 -* Added: Code direction setting for RTL users.
194 -* Updated CodeMirror to version 5.59.4.
195 -* Added: Additional action hooks and search API thanks to [@Spreeuw](https://github.com/Spreeuw).
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.
196 146
197 -= 2.14.0 (26 Jan 2020) =
198 -* Updated CodeMirror to version 5.50.2.
199 -* Added: Basic error checking for duplicate functions and classes.
200 -* Updated Italian translations to fix display issues – thanks to [Francesco Marino](https://360fun.net).
201 -* Fixed: Ordering snippets in the table by name will now be case-insensitive.
202 -* Added: Additional API options for retrieving snippets.
203 -* Fixed: Code editor will now properly highlight embedded HTML, CSS and JavaScript code.
204 -* Changed the indicator color for inactive snippets from red to grey.
205 -* Fixed a bug preventing the editor theme from being set to default.
206 -* Added: Store the time and date when each snippet was last modified.
207 -* Added: Basic error checking when activating snippets.
208 -* Fixed: Ensure that imported snippets are always inactive.
209 -* Fixed: Check the referer on the import menu to prevent CSRF attacks. Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfence.com/blog/author/wfchloe/) for reporting.
210 -* Fixed: Ensure that individual snippet action links use proper verification.
147 += 3.10.0 (2026-08-24) =
211 148
212 -= 2.13.3 (13 Mar 2019) =
213 -* Added: Hover effect to activation switches.
214 -* Added: Additional save buttons above snippet editor.
215 -* Added: List save keyboard shortcuts to the help tooltip.
216 -* Added: Change "no items found" message when search filters match nothing.
217 -* Fixed: Calling deprecated code in database upgrade process.
218 -* Fixed: Include snippet priority in export files.
219 -* Fixed: Use Unix newlines in code export file.
220 -* Updated CodeMirror to version 5.44.0.
221 -* Fixed: Correctly register snippet tables with WordPress to prevent database repair errors [[#](https://wordpress.org/support/topic/database-corrupted-4/)]
222 -* Fixed: CodeMirror indentation settings being applied incorrectly
149 +__Added__
223 150
224 -= 2.13.2 (25 Jan 2019) =
225 -* Removed potentially problematic cursor position saving feature
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.
226 162
227 -= 2.13.1 (22 Jan 2019) =
228 -* Added: Add menu buttons to settings page for compact menu
229 -* Updated: French translation updated thanks to momo-fr
230 -* Fixed: Split code editor and tag editor scripts into their own files to prevent dependency errors
231 -* Fixed: Handling of single-use shared network snippets
232 -* Fixed: Minor translation template issues
233 -* Added: Help tooltop to snippet editor for keyboard shortcuts, thanks to Michael DeWitt
234 -* Improved: Added button for executing single-use snippets to snippets table
235 -* Added: Sample snippet for ordering snippets table by name by default
236 -* Updated CodeMirror to version 5.43.0
163 +__Changed__
237 164
238 -= 2.13.0 (17 Dec 2018) =
239 -* Added: Search/replace functionality to the snippet editor. [See here for a list of keyboard shortcuts.](https://codemirror.net/demo/search.html) [[#](https://wordpress.org/support/topic/feature-request-codemirror-search-and-replace/)]
240 -* Updated CodeMirror to version 5.42.0
241 -* Added: Option to make admin menu more compact
242 -* Fixed: Problem clearing recently active snippet list
243 -* Improved: Integration between plugin and the CodeMirror library, to prevent collisions
244 -* Improved: Added additional styles to editor settings preview
245 -* Added: PHP linter to code editor
246 -* Improved: Use external scripts instead of inline scripts
247 -* Fixed: Missing functionality for 'Auto Close Brackets' and 'Highlight Selection Matches' settings
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.
248 173
249 -= 2.12.1 (15 Nov 2018) =
250 -* Improved: CodeMirror updated to version 5.41.0
251 -* Improved: Attempt to create database columns that might be missing after a table upgrade
252 -* Improved: Streamlined upgrade process
253 -* Fixed: Interface layout on sites using right-to-left languages
254 -* Improved: Made search box appear at top of page on mobile [[#](https://wordpress.org/support/topic/small-modification-for-mobile-ux/)]
255 -* Updated screenshots
174 +__Fixed__
256 175
257 -= 2.12.0 (23 Sep 2018) =
258 -* Fixed: Prevented hidden columns setting from reverting to default
259 -* Improved: Updated import page to improve usability
260 -* Improved: Added Import button next to page title on manage page
261 -* Improved: Added coloured banner indicating whether a snippet is active when editing
262 -* Update CodeMirror to 5.40.0
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.
263 184
264 -= 2.11.0 (24 Jul 2018) =
265 -* Added: Ability to assign a priority to snippets, to determine the order in which they are executed
266 -* Improvement: The editor cursor position will be preserved when saving a snippet
267 -* Added: Pressing Ctrl/Cmd + S while writing a snippet will save it
268 -* Added: Shadow opening PHP tag above the code editor
269 -* Improved: Updated the message shown when there are no snippets
270 -* Added: Install sample snippets when the plugin is installed
271 -* Improved: Show all available tags when selecting the tag field
272 -* Added: Filter hook for controlling the default list table view
273 -* Added: Action for cloning snippets
185 += 3.9.6 (2026-04-28) =
274 186
275 -= 2.10.2 (21 Jul 2018) =
276 -* Added: Button to reset settings to their default values
277 -* Improved: Made uninstall cleanup optional through a plugin setting
278 -* Fixed: Applied formatting filters to snippet descriptions in the table
279 -* Improved: Ordered tags by name in the filter dropdown menu
280 -* Fixed: Incorrectly translated strings
281 -* Added: Belarusian translation by Hrank.com
282 -* Improved: Enabled sorting snippets table by tags
283 -* Updated CodeMirror to version 5.39.0
187 +__Fixed__
284 188
285 -= 2.10.1 (10 Feb 2018) =
286 -* Fixed: Prevent errors when trying to export no snippets
287 -* Fixed: Use wp_json_encode() to encode export data
288 -* Fixed: Check both the file extension and MIME type of uploaded import files
189 +* Improved permissions handling with snippets REST API.
190 +* Site admin cannot toggle shared network snippets status.
289 191
290 -= 2.10.0 (18 Jan 2018) =
291 -* Improved: Added support for importing from multiple export files at once
292 -* Improved: Unbold the titles of inactive snippets for greater visual distinction
293 -* Added: New scope for single-use snippets
294 -* Improved: Don't show network snippets on subsites by default, and only to super admins
295 -* Improved: Export snippets to JSON instead of XML
296 -* Improved: More options for importing duplicate snippets
297 -* Improved: Use strings for representing scopes internally instead of numbers
298 -* Added: Allowed plugin settings to be unified on multisite through Network Settings option
299 -* Fixed: Issue with incorrectly treating network snippets as site-wide for code validation
300 -* Improved: Rename 'Export to PHP' to 'Download', and add button to edit snippet page
192 += 3.9.5 (2026-02-05) =
301 193
302 -**[The full changelog is available on GitHub](https://github.com/sheabunge/code-snippets/blob/master/CHANGELOG.md)**
194 +__Fixed__
303 195
304 -== Upgrade Notice ==
196 +* Improved security when handling actions for downloading and updating cloud snippets.
305 197
306 -= 2.14.2 =
307 -New color picker and code validator improvements.
198 += 3.9.4 (2026-01-14) =
308 199
309 -= 2.14.0 =
310 -Security update, last modified dates, and other improvements
200 +__Added__
311 201
312 -= 2.13.1 =
313 -Fixes for single-use snippets and French translation
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.
314 205
315 -= 2.11.0 =
316 -Snippet priorities and other small features
206 +__Fixed__
317 207
318 -= 2.10.0 =
319 -Improvements for multisite and new single-use snippet scope
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.
211 +
212 += 3.9.3 (2025-12-03) =
213 +
214 +__Added__
215 +
216 +* End-to-end tests to verify the toggle visual state in the snippets list page, improving UI verification and test reliability.
217 +
218 +__Fixed__
219 +
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.
222 +
223 += 3.9.2 (2025-11-17) =
224 +
225 +__Changed__
226 +
227 +* Introduced a custom scissors icon and updated button title for the TinyMCE extension.
228 +* Improved back-navigation styling on the edit page.
229 +* Refined layout for column names and action buttons in the Cloud Snippets list.
230 +* Enhanced overall styling of cloud-related UI components.
231 +* Optimized cloud search with more efficient pagination and snippet retrieval.
232 +* Introduced groundwork to prevent Composer dependency collisions with other plugins.
233 +
234 +__Fixed__
235 +
236 +* Improved sanitization and normalization across Cloud API and pagination outputs.
237 +* Resolved various TinyMCE issues reported in the WordPress support forum.
238 +
239 += 3.9.1 (2025-11-14) =
240 +
241 +__Changed__
242 +
243 +* Migrated to native CSS direction handling (RTL/LTR) for improved compatibility and simpler styling
244 +* Updated dependencies to the latest compatible versions
245 +
246 +__Fixed__
247 +
248 +* Fixed TinyMCE menu button registration to prevent initialization failure
249 +* Fixed the position of the 'code direction' control in the editor
250 +
251 += 3.9.0 (2025-11-13) =
252 +
253 +__Added__
254 +
255 +* Added contextual notices in the Snippets list table to surface action results and warnings in the UI
256 +* Expanded Multisite Sharing settings for clearer control over network-wide snippet sharing
257 +
258 +__Changed__
259 +
260 +* Modernized browser support targets and polished admin UI (clearer row-action badges, improved Pro badge hover, refined active snippet name styling)
261 +
262 +__Fixed__
263 +
264 +* Fixed REST API pagination to return correct results and page counts
265 +* Resolved styling selector so the active snippet name highlights reliably
266 +
267 += 3.8.2 (2025-10-31) =
268 +
269 +__Fixed__
270 +
271 +* Improved namespaced PHP snippet handling with file based execution.
272 +
273 += 3.8.1 (2025-10-28) =
274 +
275 +__Added__
276 +
277 +* Code line explanation widget with apply and remove actions for AI-generated comments. (PRO)
278 +
279 +__Changed__
280 +
281 +* Improved pagination handling and display structure for cloud search results. (PRO)
282 +* Enhanced styling for codevault rows and inactive tabs in cloud interface. (PRO)
283 +
284 +__Removed__
285 +
286 +* Removed `guzzlehttp/guzzle` dependency to reduce package conflicts. (PRO)
287 +
288 +__Fixed__
289 +
290 +* Improved file-based snippet handling for multisite installations.
291 +
292 += 3.8.0 (2025-10-24) =
293 +
294 +__Added__
295 +
296 +* @CarolinaOP and @louiswol94 join the team as plugin contributors.
297 +* File-based execution mode for snippets (Optional in Plugin Settings).
298 +* Version switch option, to help easily rollback the plugin to an earlier release.
299 +* Minor UI improvements to the editor and sidebar.
300 +
301 +__Changed__
302 +
303 +* Prefixed Composer packages to reduce collisions with other plugins.
304 +* Snippets REST API now supports pagination via page and per_page query parameters.
305 +* Improved editor preview behavior.
306 +
307 +__Fixed__
308 +
309 +* Fixed issues with snippet evaluation and front-end initialization in edge cases.
310 +* Improved reliability of snippet evaluation.
311 +* JavaScript and CSS snippets loading twice due to a conditions bug. (PRO)
312 +* Fixed issue where some conditions didn’t work due to loading before the loop. (PRO)
313 +
314 += 3.7.0 (2025-08-29) =
315 +
316 +__Added__
317 +
318 +* New 'conditions' feature: control where and when snippets execute with a powerful logic builder. (PRO)
319 +
320 +__Changed__
321 +
322 +* Redesigned edit menu with refreshed look and functionality.
323 +* Updated snippet type badges to be more visually distinct.
324 +* Redesigned tooltips used throughout the plugin.
325 +* Moved content snippet shortcode options into separate modal window.
326 +* Updated snippet tag editor to use built-in WordPress tag editor.
327 +* Created proper form for sharing beta feedback.
328 +* Improved UX of snippet activation toggle.
329 +
330 +__Fixed__
331 +
332 +* Fetching active snippets on a multisite network now respects the 'priority' field above all else when ordering snippets.
333 +* Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
334 +* Improved performance of loading admin menu icon.
335 +
336 += 3.6.9 (2025-02-17) =
337 +
338 +__Changed__
339 +
340 +* Updated `Cloud_API::get_bundles()` to properly check bundle data and return an empty array if no valid bundles are present.
341 +* Refactored `Cloud_List_Table::fetch_snippets()` to always return a valid `Cloud_Snippets` instance.
342 +* Cleaned up bundle iteration code and improved translation handling in the bundles view.
343 +
344 +__Fixed__
345 +
346 +* Fixed errors in bundle iteration by adding a check for the bundles array before iterating.
347 +
348 +**[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/core/CHANGELOG.md)**