From baafc88f0e63510fc663f1e7450c5f5f16d131ae Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Tue, 20 Jan 2026 22:30:03 +0000 Subject: [PATCH] Regenerate README file - 2026-01-20 --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc609de1..f8a7c958 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,10 @@ change primary key values. specify multiple columns. [--precise] - Force the use of PHP (instead of SQL) which is more thorough, - but slower. + Force the use of PHP (instead of SQL) for all columns. By default, the command + uses fast SQL queries, but automatically switches to PHP for columns containing + serialized data. Use this flag to ensure PHP processes all columns, which is + slower but handles complex serialized data structures more reliably. [--recurse-objects] Enable recursing into objects to replace strings. Defaults to true; @@ -139,6 +141,9 @@ change primary key values. # Search/replace to a SQL file without transforming the database $ wp search-replace foo bar --export=database.sql + # Use precise mode for complex serialized data + $ wp search-replace 'oldurl.com' 'newurl.com' --precise + # Bash script: Search/replace production to development url (multisite compatible) #!/bin/bash if $(wp --url=http://example.com core is-installed --network); then