wp-cli / search-replace-command

Searches/replaces strings in the database.
MIT License
57 stars 45 forks source link

search-replace can be/is broken because of incorrect implode() #182

Closed danielbachhuber closed 1 year ago

danielbachhuber commented 1 year ago

Reported by @todeveni in Slack https://wordpress.slack.com/archives/C02RP4T41/p1685600917529129

i'm pretty sure that c238204 broke search&replace, due to spaces missing around AND in Search_Replace_Command.php#L615 getting these kind of errors when pulling production to local, which runs search&replaces for hostname etc: LIKE BINARY '%_redacted_%'ANDmeta_id> 29482588ANDpost_id> 783226ANDmeta_key> '_oembed_a9c0bc1838b9cebff898495779df1b12'

@brandonpayton is looking into it.