File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,8 +183,10 @@ class Search_Replace_Command extends WP_CLI_Command {
183183 * specify multiple columns.
184184 *
185185 * [--precise]
186- * : Force the use of PHP (instead of SQL) which is more thorough,
187- * but slower.
186+ * : Force the use of PHP (instead of SQL) for all columns. By default, the command
187+ * uses fast SQL queries, but automatically switches to PHP for columns containing
188+ * serialized data. Use this flag to ensure PHP processes all columns, which is
189+ * slower but handles complex serialized data structures more reliably.
188190 *
189191 * [--recurse-objects]
190192 * : Enable recursing into objects to replace strings. Defaults to true;
@@ -248,6 +250,9 @@ class Search_Replace_Command extends WP_CLI_Command {
248250 * # Search/replace to a SQL file without transforming the database
249251 * $ wp search-replace foo bar --export=database.sql
250252 *
253+ * # Use precise mode for complex serialized data
254+ * $ wp search-replace 'oldurl.com' 'newurl.com' --precise
255+ *
251256 * # Bash script: Search/replace production to development url (multisite compatible)
252257 * #!/bin/bash
253258 * if $(wp --url=http://example.com core is-installed --network); then
You can’t perform that action at this time.
0 commit comments