You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wp search-replace --dry-run --log counts the same row twice for plain and JSON-escaped URLs #255
When post_content contains both https://old.example and its JSON-escaped form https:\/\/old.example, wp search-replace --dry-run reports one replacement. Adding --log reports two for the same row and column.
Describe how other contributors can replicate this bug
Run these commands on a fresh WordPress test site with MariaDB and the default wp_ table prefix.
The SQL dry-run branch adds the row counts from two log_sql_diff() calls. Count each matching row once per column across both calls. Search_Replace_Command.php
Provide additional context/Screenshots
replace.log shows the same post ID twice, once for each URL form.
Activity