1) I’m a socialist 🙂 Also this one I’m actually compensated to maintain by DreamHost.
2) Alas, yes. I’ve been experimenting with uninstalls and trying to make them not be as clunky as the “Upload all your existing media…” has been a lesson in frustration. It _mostly_ works, but when it doesn’t, it leaves users in a half-fixed state. :/
Thank you for replying!
I want to try it but I’m a little afraid it might slower the site and have a counter effect.
Do you think that using a replace query or a plugin such as Better Search Replace could fix it? I don’t really know how CDN works, if it keeps the file name or what.
Thanks!
The copy-up does a per-post check “Is the image uploaded? Yes? edit the image” so realistically an uninstall routine would be ‘as simple as’ as replace query.
TBH, it’s actually just that, but getting it to run properly 100% of the time when automated has been harder than I expected.
Paradoxically, every time I’ve ever done it manually (via wp-cli) it’s worked perfectly 😐
wp search-replace CDNURL LOCALURL
So if your CDN is https://objects.dreamhost.com/bucketname then…
wp search-replace 'objects.dreamhost.com/bucketname/wp-content/uploads' 'example.com/wp-content/uploads'
Personally I try to use the most specific URL string possible in a search/replace, to avoid hitting the wrong things.
I see. I will give it a try then.
Thanks a lot Mika Epstein!