From e32ce9d27ae4f14106afbf0779e0ce51c3d50308 Mon Sep 17 00:00:00 2001 From: Imants Date: Tue, 28 Oct 2025 17:49:28 +0200 Subject: [PATCH 1/7] fix: sync changelog --- CHANGELOG.md | 10 ++++++++++ src/readme.txt | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72cd866f..75726ca5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ ## [3.8.1] (2025-10-28) +### Added +* Code line explanation widget with apply and remove actions for AI-generated comments. (PRO) + +### Changed +* Improved pagination handling and display structure for cloud search results. (PRO) +* Enhanced styling for codevault rows and inactive tabs in cloud interface. (PRO) + +### Removed +* Removed `guzzlehttp/guzzle` dependency to reduce package conflicts. (PRO) + ### Fixed * Improved file-based snippet handling for multisite installations. diff --git a/src/readme.txt b/src/readme.txt index a5643a9d..a83589bc 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -107,6 +107,19 @@ You can report security bugs found in the source code of this plugin through the = 3.8.1 (2025-10-28) = +__Added__ + +* Code line explanation widget with apply and remove actions for AI-generated comments. (PRO) + +__Changed__ + +* Improved pagination handling and display structure for cloud search results. (PRO) +* Enhanced styling for codevault rows and inactive tabs in cloud interface. (PRO) + +__Removed__ + +* Removed `guzzlehttp/guzzle` dependency to reduce package conflicts. (PRO) + __Fixed__ * Improved file-based snippet handling for multisite installations. From d4c350c520dc8945f6b88ecfbb409720d08c74fa Mon Sep 17 00:00:00 2001 From: Louis Wolmarans Date: Wed, 29 Oct 2025 06:00:05 +0200 Subject: [PATCH 2/7] fix: improve file based execution with namespaced PHP snippets --- src/php/flat-files/handlers/php-snippet-handler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/php/flat-files/handlers/php-snippet-handler.php b/src/php/flat-files/handlers/php-snippet-handler.php index 5d306392..dc36d68c 100644 --- a/src/php/flat-files/handlers/php-snippet-handler.php +++ b/src/php/flat-files/handlers/php-snippet-handler.php @@ -12,6 +12,7 @@ public function get_dir_name(): string { } public function wrap_code( string $code ): string { - return " Date: Wed, 29 Oct 2025 06:45:42 +0200 Subject: [PATCH 3/7] Refactor wrap_code to apply filters before concatenation --- src/php/flat-files/handlers/php-snippet-handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/php/flat-files/handlers/php-snippet-handler.php b/src/php/flat-files/handlers/php-snippet-handler.php index dc36d68c..aaa212f9 100644 --- a/src/php/flat-files/handlers/php-snippet-handler.php +++ b/src/php/flat-files/handlers/php-snippet-handler.php @@ -12,7 +12,7 @@ public function get_dir_name(): string { } public function wrap_code( string $code ): string { - $code = " Date: Fri, 31 Oct 2025 14:04:59 +0000 Subject: [PATCH 4/7] 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 75726ca5..652ac755 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 5/7] 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 a83589bc..5d756957 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 6/7] 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 20faf68c..62733867 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 fa95c3ed..4fe72dda 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 ece61d91..22c3778b 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 5d756957..e5571ea0 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 7/7] 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 652ac755..835f3dfb 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 e5571ea0..68cec80f 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) =