From 522749398decd8d6fb1f1e52668cccd8a36ee5f1 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 5 Aug 2026 11:05:46 +0200 Subject: [PATCH 1/2] Fix failing header_image_data test --- features/search-replace.feature | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/features/search-replace.feature b/features/search-replace.feature index 1f6b1a22..85fdf943 100644 --- a/features/search-replace.feature +++ b/features/search-replace.feature @@ -256,9 +256,10 @@ Feature: Do global search/replace And I run `wp eval-file setup-theme-mod.php` When I run `wp theme mod get header_image_data` - Then STDOUT should be a table containing rows: - | key | value | - | header_image_data | {"url":"https:\/\/subdomain.example.com\/foo.jpg"} | + Then STDOUT should contain: + """ + url https://subdomain.example.com/foo.jpg + """ When I run `wp search-replace subdomain.example.com example.com --no-recurse-objects` Then STDOUT should be a table containing rows: @@ -271,9 +272,10 @@ Feature: Do global search/replace | wp_options | option_value | 1 | PHP | When I run `wp theme mod get header_image_data` - Then STDOUT should be a table containing rows: - | key | value | - | header_image_data | {"url":"https:\/\/example.com\/foo.jpg"} | + Then STDOUT should contain: + """ + url https://example.com/foo.jpg + """ @require-mysql Scenario: Search and replace handles JSON-encoded URLs in post content From 5efce7a14c21a0fa492cbfea978cbb5564bd5955 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 5 Aug 2026 11:09:29 +0200 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- features/search-replace.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/search-replace.feature b/features/search-replace.feature index 85fdf943..b9a7797d 100644 --- a/features/search-replace.feature +++ b/features/search-replace.feature @@ -258,7 +258,7 @@ Feature: Do global search/replace When I run `wp theme mod get header_image_data` Then STDOUT should contain: """ - url https://subdomain.example.com/foo.jpg + https://subdomain.example.com/foo.jpg """ When I run `wp search-replace subdomain.example.com example.com --no-recurse-objects`