From 17a20a1e542ea7fa98fc9d8df9d9ce7130a92ded Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Mon, 2 Nov 2026 22:41:39 +1100 Subject: [PATCH 01/11] 4.1.0-rc.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f657e1b91..4bb2b0e6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "4.1.0-beta.2", + "version": "4.1.0-rc.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "4.1.0-beta.2", + "version": "4.1.0-rc.1", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.4", diff --git a/package.json b/package.json index 3d765db5b..69d34cfa3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "code-snippets", "description": "Manage code snippets running on a WordPress-powered site through a graphical interface.", "homepage": "https://codesnippets.pro", - "version": "4.1.0-beta.2", + "version": "4.1.0-rc.1", "main": "src/dist/edit.js", "directories": { "test": "tests" From 11e5f2b0aadce5f92b7a264a4e2d49dac234e173 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Mon, 2 Nov 2026 22:42:54 +1100 Subject: [PATCH 02/11] v4.1.0-rc.1. --- src/code-snippets.php | 6 +++--- src/readme.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/code-snippets.php b/src/code-snippets.php index fe39b6476..3f620cd06 100644 --- a/src/code-snippets.php +++ b/src/code-snippets.php @@ -8,11 +8,11 @@ * License: GPL-2.0-or-later * License URI: license.txt * Text Domain: code-snippets - * Version: 4.1.0-beta.2 + * Version: 4.1.0-rc.1 * Requires PHP: 7.4 * Requires at least: 5.5 * - * @version 4.1.0-beta.2 + * @version 4.1.0-rc.1 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2026 Code Snippets Pro @@ -37,7 +37,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '4.1.0-beta.2' ); + define( 'CODE_SNIPPETS_VERSION', '4.1.0-rc.1' ); /** * The full path to the main file of this plugin. diff --git a/src/readme.txt b/src/readme.txt index 1ad02401e..55c4b355c 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codesnippets.pro Tags: code, snippets, php, functions, multisite License: GPL-2.0-or-later License URI: license.txt -Stable tag: 4.0.0 +Stable tag: 4.1.0-rc.1 Requires at least: 5.5 Tested up to: 7.1 Requires PHP: 7.4 From c573287091493e7e22a620e65b1f332b9bf5d7aa Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Tue, 3 Nov 2026 17:33:13 +1100 Subject: [PATCH 03/11] 4.1.0-rc.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4bb2b0e6f..21c65c8ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "4.1.0-rc.1", + "version": "4.1.0-rc.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "4.1.0-rc.1", + "version": "4.1.0-rc.2", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.4", diff --git a/package.json b/package.json index 69d34cfa3..6b19e5567 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "code-snippets", "description": "Manage code snippets running on a WordPress-powered site through a graphical interface.", "homepage": "https://codesnippets.pro", - "version": "4.1.0-rc.1", + "version": "4.1.0-rc.2", "main": "src/dist/edit.js", "directories": { "test": "tests" From b4df62110f96cac8a69bb24afa2c45113753ff25 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Tue, 3 Nov 2026 17:33:22 +1100 Subject: [PATCH 04/11] v4.1.0-rc.2 --- src/code-snippets.php | 6 +++--- src/readme.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/code-snippets.php b/src/code-snippets.php index 3f620cd06..1b3a2c273 100644 --- a/src/code-snippets.php +++ b/src/code-snippets.php @@ -8,11 +8,11 @@ * License: GPL-2.0-or-later * License URI: license.txt * Text Domain: code-snippets - * Version: 4.1.0-rc.1 + * Version: 4.1.0-rc.2 * Requires PHP: 7.4 * Requires at least: 5.5 * - * @version 4.1.0-rc.1 + * @version 4.1.0-rc.2 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2026 Code Snippets Pro @@ -37,7 +37,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '4.1.0-rc.1' ); + define( 'CODE_SNIPPETS_VERSION', '4.1.0-rc.2' ); /** * The full path to the main file of this plugin. diff --git a/src/readme.txt b/src/readme.txt index 55c4b355c..575192f25 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codesnippets.pro Tags: code, snippets, php, functions, multisite License: GPL-2.0-or-later License URI: license.txt -Stable tag: 4.1.0-rc.1 +Stable tag: 4.1.0-rc.2 Requires at least: 5.5 Tested up to: 7.1 Requires PHP: 7.4 From 7a327a3303c99cf01d4808ceac2bd3db57358ea9 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Wed, 4 Nov 2026 17:47:05 +1100 Subject: [PATCH 05/11] Remove sizing styles from small buttons. --- src/css/common/_wp-admin.scss | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/css/common/_wp-admin.scss b/src/css/common/_wp-admin.scss index 6e1408f82..915e5466e 100644 --- a/src/css/common/_wp-admin.scss +++ b/src/css/common/_wp-admin.scss @@ -98,17 +98,20 @@ body.wp-admin { .button:not(.button-primary, .button-link), .button-secondary, .page-title-action { - min-block-size: var(--cs-control-height); - padding-block: 0; - padding-inline: 12px; border-radius: var(--cs-control-radius); - line-height: 2.5715; - font-size: 14px; font-weight: 400; background: var(--cs-color-surface-subtle); border-color: var(--cs-color-accent); color: var(--cs-color-accent); + &:not(.button-small) { + font-size: 14px; + min-block-size: var(--cs-control-height); + padding-block: 0; + padding-inline: 12px; + line-height: 2.5715; + } + &:hover:not(:disabled) { background: var(--cs-color-surface-muted); border-color: var(--cs-color-accent-hover); From 70d325e66c24f43237c4f762f79c3dae5e13cc15 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Wed, 4 Nov 2026 17:52:42 +1100 Subject: [PATCH 06/11] Also ensure that small primary buttons are small. --- src/css/common/_wp-admin.scss | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/css/common/_wp-admin.scss b/src/css/common/_wp-admin.scss index 915e5466e..de5d4c573 100644 --- a/src/css/common/_wp-admin.scss +++ b/src/css/common/_wp-admin.scss @@ -130,17 +130,20 @@ body.wp-admin { // matches the secondary rule's specificity so a `.button-small.button-primary` // keeps the token height instead of collapsing to the 26px small size. .button-primary:not(.button-link) { - min-block-size: var(--cs-control-height); - padding-block: 0; - padding-inline: 12px; border-radius: var(--cs-control-radius); - line-height: 2.5715; - font-size: 14px; font-weight: 700; background: var(--cs-color-accent); border-color: var(--cs-color-accent); color: #fff; + &:not(.button-small) { + min-block-size: var(--cs-control-height); + padding-block: 0; + padding-inline: 12px; + line-height: 2.5715; + font-size: 14px; + } + &:hover:not(:disabled) { background: var(--cs-color-accent-hover); border-color: var(--cs-color-accent-hover); From c477b3293f3dab9926354e4afbcc9e3e8c5c7950 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Wed, 4 Nov 2026 17:55:43 +1100 Subject: [PATCH 07/11] Increase specificity of button-small styles. --- src/css/common/_wp-admin.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/css/common/_wp-admin.scss b/src/css/common/_wp-admin.scss index de5d4c573..374753697 100644 --- a/src/css/common/_wp-admin.scss +++ b/src/css/common/_wp-admin.scss @@ -159,7 +159,10 @@ body.wp-admin { } // Small buttons stay compact rather than inheriting the 40px control height. - .button-small { + .button-small, + .button.button-small, + .button-primary.button-small, + .button-secondary.button-small { min-block-size: 26px; line-height: 2.1818; font-size: 11px; From 62c53cf93d03bfe5fd2eece6c84a896cc2cc6758 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Thu, 5 Nov 2026 13:55:10 +1100 Subject: [PATCH 08/11] Ensure that 'hide upsell' option prevents new demo nags. --- src/js/components/common/Toolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/components/common/Toolbar.tsx b/src/js/components/common/Toolbar.tsx index 3fb3b4dbc..7b08ed788 100644 --- a/src/js/components/common/Toolbar.tsx +++ b/src/js/components/common/Toolbar.tsx @@ -155,7 +155,7 @@ interface SubpageItemProps { const SubpageItem: React.FC = ({ subpage, label, Icon }) => { const { demo, isPro } = SUBPAGE_ENTRIES[subpage] - const isNew = 'announce' === demo && !hasSeenDemo(subpage) + const isNew = 'announce' === demo && shouldShowUpsell() && !hasSeenDemo(subpage) return (
  • From a3aa325d57c65148cf6f5eee33e69bff3b3ed9b3 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Thu, 5 Nov 2026 13:58:42 +1100 Subject: [PATCH 09/11] 4.1.0 --- package-lock.json | 4 ++-- package.json | 2 +- src/code-snippets.php | 6 +++--- src/readme.txt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 21c65c8ae..374dac049 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "4.1.0-rc.2", + "version": "4.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "4.1.0-rc.2", + "version": "4.1.0", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.4", diff --git a/package.json b/package.json index 6b19e5567..ca6423d73 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "code-snippets", "description": "Manage code snippets running on a WordPress-powered site through a graphical interface.", "homepage": "https://codesnippets.pro", - "version": "4.1.0-rc.2", + "version": "4.1.0", "main": "src/dist/edit.js", "directories": { "test": "tests" diff --git a/src/code-snippets.php b/src/code-snippets.php index 1b3a2c273..bff602991 100644 --- a/src/code-snippets.php +++ b/src/code-snippets.php @@ -8,11 +8,11 @@ * License: GPL-2.0-or-later * License URI: license.txt * Text Domain: code-snippets - * Version: 4.1.0-rc.2 + * Version: 4.1.0 * Requires PHP: 7.4 * Requires at least: 5.5 * - * @version 4.1.0-rc.2 + * @version 4.1.0 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2026 Code Snippets Pro @@ -37,7 +37,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '4.1.0-rc.2' ); + define( 'CODE_SNIPPETS_VERSION', '4.1.0' ); /** * The full path to the main file of this plugin. diff --git a/src/readme.txt b/src/readme.txt index 575192f25..32401bd92 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codesnippets.pro Tags: code, snippets, php, functions, multisite License: GPL-2.0-or-later License URI: license.txt -Stable tag: 4.1.0-rc.2 +Stable tag: 4.1.0 Requires at least: 5.5 Tested up to: 7.1 Requires PHP: 7.4 From 8fb8ef1107ff4aebc6de6e2811ad4c3f990d332e Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 6 Nov 2026 12:58:23 +1100 Subject: [PATCH 10/11] Update changelog for 4.1.0. --- CHANGELOG.md | 2 +- src/readme.txt | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0808a94a7..00fc826f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [4.1.0] (UPCOMING) +## [4.1.0] (2026-11-05) ### Added * Universal search in the plugin header, for finding snippets and their code, settings, stats, the welcome screen, diff --git a/src/readme.txt b/src/readme.txt index 575192f25..163275170 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -182,11 +182,49 @@ Users with permission to update plugins can open **Snippets > Settings > Advance == Upgrade Notice == += 4.1.0 = +Adds universal search; fixes snippet list caching, search method menu, + = 4.0.0 = Adds the Stats overview and fixes saving feedback, description display, Elementor compatibility and translation notices. Back up your site before updating. == Changelog == += 4.1.0 (2026-11-05) = + +__Added__ + +* Universal search in the plugin header, for finding snippets and their code, settings, stats, the welcome screen, + documentation and Community Cloud snippets from one field, with keyboard navigation and a full results page. +* Labels in the version switcher marking the current, latest, beta and release candidate builds, and the WordPress + version each was tested up to. + +__Changed__ + +* The version switch warning now notes that beta and release candidate builds are not recommended for production sites. +* Resetting caches now fetches the list of available plugin versions again, and reports how many were found or why none + could be listed. + +__Fixed__ + +* Fixed the snippets list showing an out-of-date state on sites with a page cache, as the plugin's REST API responses + were being cached. +* Fixed the Search with AI option missing from the Community Cloud search method menu. (PRO) +* Fixed the share with subsites setting not being applied when a network snippet was saved on multisite. +* Fixed a PHP deprecation notice and a missing browser tab title on the Edit Snippet screen. +* Fixed a long unbroken line of code widening the snippet editor page and pushing the sidebar out of view. +* Fixed admin screens waiting on remote requests for as long as the site's default timeout allows when the Code + Snippets service or WordPress.org is slow or unreachable: these requests now give up after 5 seconds, or 3 seconds + for the welcome content. +* Fixed version switch messages being hidden by the admin notice filter, and showing markup from the response as HTML. +* Fixed the version list refresh reporting success when the versions could not be fetched. +* Fixed safe mode failing on sites running a plugin that builds URLs while WordPress is identifying the current user, + and breaking REST API URLs. Safe mode is now carried on admin links only. +* Fixed the snippet import routes allowing a subsite administrator on multisite to import network snippets without the + network capability. Thanks to Artus KG for responsibly disclosing this issue. +* Fixed the snippet source shortcodes revealing snippet code in posts written by users who cannot manage snippets. + Thanks to Het Kalariya for responsibly disclosing this issue. + = 4.0.0 (2026-10-12) = __Added__ From b9e5c05c01b49a684b5c04fd44da97c849229a4f Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 6 Nov 2026 13:23:03 +1100 Subject: [PATCH 11/11] Update contributor list. --- src/readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/readme.txt b/src/readme.txt index 163275170..b0ccf5358 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -1,10 +1,10 @@ === Code Snippets === -Contributors: bungeshea, ver3, lightbulbman, 0aksmith, johnpixle, carolinaop, tallblokeuk +Contributors: bungeshea, ver3, lightbulbman, 0aksmith, johnpixle, ramiy, carolinaop, andreamorgadova, tallblokeuk Donate link: https://codesnippets.pro Tags: code, snippets, php, functions, multisite License: GPL-2.0-or-later License URI: license.txt -Stable tag: 4.1.0-rc.2 +Stable tag: 4.1.0 Requires at least: 5.5 Tested up to: 7.1 Requires PHP: 7.4