From 4f97f82e5db12bc57d435cb2d71dd1b0bd22e050 Mon Sep 17 00:00:00 2001 From: code-snippets-bot <139164393+code-snippets-bot@users.noreply.github.com> Date: Fri, 31 Oct 2025 14:04:59 +0000 Subject: [PATCH 1/4] chore(release): update changelog for v3.8.2 --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75726ca52..652ac7559 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog + +## [3.8.2] (2025-10-31) + +### Added +* Introduced 'code_snippets_php_snippet_file_code' filter to customize snippet file content before execution. + +### Changed +* Applied filters before wrapping/concatenation in wrap_code for more predictable behavior and compatibility. + +### Fixed +* Fixed file-based execution of namespaced PHP snippets so they run correctly. +* Removed ABSPATH guard in snippet wrapper to prevent premature early return in certain execution contexts. + ## [3.8.1] (2025-10-28) ### Added From bd8663889717b0425da48530a2f8308c27b0948e Mon Sep 17 00:00:00 2001 From: code-snippets-bot <139164393+code-snippets-bot@users.noreply.github.com> Date: Fri, 31 Oct 2025 14:04:59 +0000 Subject: [PATCH 2/4] chore(release): update readme for v3.8.2 --- src/readme.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/readme.txt b/src/readme.txt index a83589bc4..5d7569570 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -105,6 +105,22 @@ You can report security bugs found in the source code of this plugin through the == Changelog == + += 3.8.2 (2025-10-31) = + +__Added__ + +* Introduced 'code_snippets_php_snippet_file_code' filter to customize snippet file content before execution. + +__Changed__ + +* Applied filters before wrapping/concatenation in wrap_code for more predictable behavior and compatibility. + +__Fixed__ + +* Fixed file-based execution of namespaced PHP snippets so they run correctly. +* Removed ABSPATH guard in snippet wrapper to prevent premature early return in certain execution contexts. + = 3.8.1 (2025-10-28) = __Added__ From a47f627b85e28d1fc01869d81c67b1f2de378d81 Mon Sep 17 00:00:00 2001 From: code-snippets-bot <139164393+code-snippets-bot@users.noreply.github.com> Date: Fri, 31 Oct 2025 14:05:40 +0000 Subject: [PATCH 3/4] chore(release): bump version to v3.8.2 --- 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 20faf68c4..627338677 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "3.8.1", + "version": "3.8.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "3.8.1", + "version": "3.8.2", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.4", diff --git a/package.json b/package.json index fa95c3ed7..4fe72dda5 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": "3.8.1", + "version": "3.8.2", "main": "src/dist/edit.js", "directories": { "test": "tests" diff --git a/src/code-snippets.php b/src/code-snippets.php index ece61d916..22c3778b3 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: 3.8.1 + * Version: 3.8.2 * Requires PHP: 7.4 * Requires at least: 5.0 * - * @version 3.8.1 + * @version 3.8.2 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2024 Code Snippets Pro @@ -37,7 +37,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '3.8.1' ); + define( 'CODE_SNIPPETS_VERSION', '3.8.2' ); /** * The full path to the main file of this plugin. diff --git a/src/readme.txt b/src/readme.txt index 5d7569570..e5571ea02 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codesnippets.pro Tags: code, snippets, multisite, php, css License: GPL-2.0-or-later License URI: license.txt -Stable tag: 3.8.1 +Stable tag: 3.8.2 Tested up to: 6.8.2 An easy, clean and simple way to enhance your site with code snippets. From 11cbf4652f611d8b38dfc10c2c217ef37ec82dbe Mon Sep 17 00:00:00 2001 From: Code Snippets <139164393+code-snippets-bot@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:10:27 +0200 Subject: [PATCH 4/4] fix: changelog --- CHANGELOG.md | 10 +--------- src/readme.txt | 13 +------------ 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 652ac7559..835f3dfb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,9 @@ # Changelog - ## [3.8.2] (2025-10-31) -### Added -* Introduced 'code_snippets_php_snippet_file_code' filter to customize snippet file content before execution. - -### Changed -* Applied filters before wrapping/concatenation in wrap_code for more predictable behavior and compatibility. - ### Fixed -* Fixed file-based execution of namespaced PHP snippets so they run correctly. -* Removed ABSPATH guard in snippet wrapper to prevent premature early return in certain execution contexts. +* Improved namespaced PHP snippet handling with file based execution. ## [3.8.1] (2025-10-28) diff --git a/src/readme.txt b/src/readme.txt index e5571ea02..68cec80fd 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -104,22 +104,11 @@ You can report security bugs found in the source code of this plugin through the == Changelog == - - = 3.8.2 (2025-10-31) = -__Added__ - -* Introduced 'code_snippets_php_snippet_file_code' filter to customize snippet file content before execution. - -__Changed__ - -* Applied filters before wrapping/concatenation in wrap_code for more predictable behavior and compatibility. - __Fixed__ -* Fixed file-based execution of namespaced PHP snippets so they run correctly. -* Removed ABSPATH guard in snippet wrapper to prevent premature early return in certain execution contexts. +* Improved namespaced PHP snippet handling with file based execution. = 3.8.1 (2025-10-28) =