Support

Account

Home Forums Gutenberg [cli] wp search-replace not working

Solving

[cli] wp search-replace not working

  • Trying to update urls from local to production environment
    “wp search replace oldurl newurl” works on most db columns but gutenberg blocks (created with acf) seem to be ignored. The oldurl stays untouched.

    any idea why or is it a bug?

  • I have also run into this issue and would be grateful to find out if there is a solution 🙂

  • The problem is that Gutenberg blocks get encoded, so http:// becomes http:\/\/
    And the replace search/function doesn’t support that. I already asked on Github but got no response

    You can help and push the issue.
    https://github.com/wp-cli/wp-cli/issues/5293

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.