From cc69eb59ffa9ad9080ebd7d27b8bea1d0bbb19f4 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 12:02:44 +0100 Subject: [PATCH 1/2] Prepare Comment Experience 2.1.8 for WordPress 7.1.4 --- .distignore | 1 + .gitattributes | 2 ++ .github/workflows/deploy.yml | 2 ++ .github/workflows/sbom.yml | 7 +++---- comment-hacks.php | 4 ++-- readme.txt | 16 ++++++++++++++-- 6 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.distignore b/.distignore index 23905d0..5c55a07 100644 --- a/.distignore +++ b/.distignore @@ -1,6 +1,7 @@ /.cache /.git /.github +/.planning /.wordpress-org /node_modules /tests diff --git a/.gitattributes b/.gitattributes index 82bc036..96fd823 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,6 +7,7 @@ # /.cache export-ignore /.github export-ignore +/.planning export-ignore /.wordpress-org export-ignore /node-modules export-ignore /tests export-ignore @@ -20,6 +21,7 @@ .php-cs-fixer.dist.php export-ignore composer.json export-ignore composer.lock export-ignore +CLAUDE.md export-ignore package.json export-ignore phpcs.xml.dist export-ignore phpstan.neon.dist export-ignore diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 15eb941..accafa2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,8 @@ jobs: deploy_to_wordpress_org: name: Deploy release runs-on: ubuntu-latest + permissions: + contents: write steps: # Checkout the code - name: Checkout code diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml index 1e4219e..91bfb02 100644 --- a/.github/workflows/sbom.yml +++ b/.github/workflows/sbom.yml @@ -8,6 +8,8 @@ on: jobs: build_artifact: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v6 with: @@ -31,7 +33,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.3' extensions: dom, curl, json tools: wp-cli @@ -118,6 +120,3 @@ jobs: tag_name: ${{ env.TAG_NAME }} files: | sbom-${{ env.TAG_NAME }}.json - body: | - SBOM Format: CycloneDX JSON - Generated with: Syft \ No newline at end of file diff --git a/comment-hacks.php b/comment-hacks.php index eb5b758..46403bc 100644 --- a/comment-hacks.php +++ b/comment-hacks.php @@ -4,7 +4,7 @@ * * @wordpress-plugin * Plugin Name: Comment Experience - * Version: 2.1.7 + * Version: 2.1.8 * Plugin URI: https://progressplanner.com/plugins/comment-experience/ * Description: Improve the comment experience on your site. Adds lots of features to make commenting easier and more engaging. * Requires PHP: 7.4 @@ -40,7 +40,7 @@ /** * Used for version checks. */ -define( 'EMILIA_COMMENT_HACKS_VERSION', '2.1.7' ); +define( 'EMILIA_COMMENT_HACKS_VERSION', '2.1.8' ); /** * Used for asset embedding. diff --git a/readme.txt b/readme.txt index 3e8cf47..7abbcc4 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: joostdevalk, aristath, filipi, progressplanner Tags: comments, comment moderation, comment emails, discussion, comment policy Text Domain: yoast-comment-hacks -Stable tag: 2.1.7 +Stable tag: 2.1.8 Requires at least: 6.7 -Tested up to: 7.1 +Tested up to: 7.1.4 Requires PHP: 7.4 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -89,6 +89,15 @@ Yes. You can forward comments to another email address, and you can also route c == Changelog == += 2.1.8 = +* Security: strengthen permission checks for comment actions and notification recipients. +* Security: escape comment content in notification emails and restrict user searches to public names. +* Apply comment length limits and comment policy acceptance to REST API comment creation. +* Replace the notification recipient dropdown with an AJAX-powered user search. +* Fix first-time commenter redirects, cached option values, and email formatting for older comments. +* Preserve the ability to remove a comment's parent by clearing the parent field. +* Update compatibility information for WordPress 7.1.4. + = 2.1.7 = * Maintenance release with minor updates and the Comment Experience name change. @@ -188,5 +197,8 @@ Yes. You can forward comments to another email address, and you can also route c == Upgrade Notice == += 2.1.8 = +Security and reliability improvements. REST clients must send comment_policy: true or comment_policy: "on" when comment policy acceptance is enabled. + = 2.1.7 = This maintenance release keeps Comment Experience current and aligned with its updated branding. From beaedc4b514fe00638e2f1859d013594da2b7b8b Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 12:04:16 +0100 Subject: [PATCH 2/2] Use WordPress 7.1 for tested-up-to metadata --- readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 7abbcc4..b0fbbbc 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: comments, comment moderation, comment emails, discussion, comment policy Text Domain: yoast-comment-hacks Stable tag: 2.1.8 Requires at least: 6.7 -Tested up to: 7.1.4 +Tested up to: 7.1 Requires PHP: 7.4 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -96,7 +96,7 @@ Yes. You can forward comments to another email address, and you can also route c * Replace the notification recipient dropdown with an AJAX-powered user search. * Fix first-time commenter redirects, cached option values, and email formatting for older comments. * Preserve the ability to remove a comment's parent by clearing the parent field. -* Update compatibility information for WordPress 7.1.4. +* Update compatibility information for WordPress 7.1. = 2.1.7 = * Maintenance release with minor updates and the Comment Experience name change.