From a6b02de9cf30f9b8e58cb8e5d0c76398dd2bea38 Mon Sep 17 00:00:00 2001 From: badasswp Date: Mon, 8 Dec 2025 12:26:25 +0100 Subject: [PATCH 1/7] feat: perform search & replace for table head, foot & caption --- src/core/filters.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/filters.tsx b/src/core/filters.tsx index cfe03f9..cf4df9c 100644 --- a/src/core/filters.tsx +++ b/src/core/filters.tsx @@ -33,7 +33,10 @@ addAction( break; case 'core/table': + replaceBlockAttribute( args, 'head' ); replaceBlockAttribute( args, 'body' ); + replaceBlockAttribute( args, 'foot' ); + replaceBlockAttribute( args, 'caption' ); break; default: From 57923e7d1259b6d60767e1084c8de95f58c98ece Mon Sep 17 00:00:00 2001 From: badasswp Date: Mon, 8 Dec 2025 12:27:25 +0100 Subject: [PATCH 2/7] chore: add changelog entry --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea6ef3c..15cf913 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.8.0 +* Feat: Add Search & Replace feature for table head, foot & caption. +* Tested up to WP 6.8. + ## 1.7.0 * Fix: Issue with rich content replacement (HTML bearing string). * Feat: On Modal open, show items found for Highlighted text. From 24c4111e2829a8f20e6b12cb96a5794ea9bfec30 Mon Sep 17 00:00:00 2001 From: badasswp Date: Sun, 7 Dec 2025 12:39:22 +0100 Subject: [PATCH 3/7] chore: add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15cf913..4aa5d1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.8.0 * Feat: Add Search & Replace feature for table head, foot & caption. +* Fix: Reset replace input field. * Tested up to WP 6.8. ## 1.7.0 From fc0be9e55b5b6259446ac2d0462e3d0d6ed0793e Mon Sep 17 00:00:00 2001 From: badasswp Date: Sat, 6 Dec 2025 12:55:31 +0100 Subject: [PATCH 4/7] fix: reset replace input --- src/core/app.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/app.tsx b/src/core/app.tsx index 801af19..b6062a1 100644 --- a/src/core/app.tsx +++ b/src/core/app.tsx @@ -62,6 +62,7 @@ const SearchReplaceForBlockEditor = (): JSX.Element => { if ( ! selectedText ) { setReplacements( 0 ); setSearchInput( '' ); + setReplaceInput( '' ); } }; From 7d18e6e96ffc5d0b85cccbeb0a7e9224ef91ddb6 Mon Sep 17 00:00:00 2001 From: badasswp Date: Mon, 8 Dec 2025 12:55:56 +0100 Subject: [PATCH 5/7] docs: update line comments --- src/core/app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/app.tsx b/src/core/app.tsx index b6062a1..2e18803 100644 --- a/src/core/app.tsx +++ b/src/core/app.tsx @@ -40,7 +40,7 @@ const SearchReplaceForBlockEditor = (): JSX.Element => { const [ caseSensitive, setCaseSensitive ] = useState< boolean >( false ); const [ context, setContext ] = useState< boolean >( false ); - // Reference to the first field inside the modal + // Reference to the first field inside the modal. const searchFieldRef = useRef< HTMLInputElement | null >( null ); /** @@ -58,7 +58,7 @@ const SearchReplaceForBlockEditor = (): JSX.Element => { .getSelection() .toString(); - // By default, reset count and search input. + // By default, reset count, search & replace inputs. if ( ! selectedText ) { setReplacements( 0 ); setSearchInput( '' ); From 56cc4fbf6af05f0b742fc7d5736f92395d2a6bf8 Mon Sep 17 00:00:00 2001 From: badasswp Date: Sat, 29 Nov 2025 13:17:17 +0100 Subject: [PATCH 6/7] chore: update changelog entry --- CHANGELOG.md | 2 +- readme.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4aa5d1c..e68794b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 1.8.0 * Feat: Add Search & Replace feature for table head, foot & caption. -* Fix: Reset replace input field. +* Fix: Reset `Replace` input field. * Tested up to WP 6.8. ## 1.7.0 diff --git a/readme.txt b/readme.txt index 4e8327a..e738f3d 100644 --- a/readme.txt +++ b/readme.txt @@ -63,6 +63,11 @@ Want to add your personal touch? All of our documentation can be found [here](ht == Changelog == += 1.8.0 = +* Feat: Add Search & Replace feature for table head, foot & caption. +* Fix: Reset `Replace` input field. +* Tested up to WP 6.8. + = 1.7.0 = * Fix: Issue with rich content replacement (HTML bearing string). * Feat: On Modal open, show items found for Highlighted text. From cc7a75b40a166777c2ba62ef04d106bf5d59cbae Mon Sep 17 00:00:00 2001 From: badasswp Date: Mon, 8 Dec 2025 13:18:52 +0100 Subject: [PATCH 7/7] chore: bump up plugin version --- package.json | 4 ++-- readme.txt | 2 +- search-replace-for-block-editor.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 39e007c..4ba2cc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "search-and-replace", - "version": "1.7.0", + "version": "1.8.0", "description": "Search and Replace text within the Block Editor.", "author": "badasswp", "license": "GPL-2.0-or-later", @@ -70,4 +70,4 @@ "block", "editor" ] -} \ No newline at end of file +} diff --git a/readme.txt b/readme.txt index e738f3d..4db8809 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: badasswp, rajanand346, jargovi Tags: search, replace, text, block, editor. Requires at least: 6.0 Tested up to: 6.8 -Stable tag: 1.7.0 +Stable tag: 1.8.0 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/search-replace-for-block-editor.php b/search-replace-for-block-editor.php index 2cd0563..d577c95 100644 --- a/search-replace-for-block-editor.php +++ b/search-replace-for-block-editor.php @@ -3,7 +3,7 @@ * Plugin Name: Search and Replace for Block Editor * Plugin URI: https://github.com/badasswp/search-and-replace * Description: Search and Replace text within the Block Editor. - * Version: 1.7.0 + * Version: 1.8.0 * Author: badasswp * Author URI: https://github.com/badasswp * License: GPL v2 or later