Method 1) does not work and also isn't feasible, since we cannot manually edit 10000s of images
Method 2) runs. The 2nd "part" which is "Processing strings... 1820 of 87592 done." which does 10 per ~1 second. So this would take more than 24 hours to run. In reality it never finishes, bc after some time it fails bc the nonce is invalid, since it expired.
Additionally though, it doesn't seem to work either. Since I assume for wp-admin image display it's not in strings but in things it fixes in the first step. However when I open the product edit page, I still see the wrong URL for the images on the right side/where I can add/change the image (URL lik hidden link)
Symptoms:
The process 'Processing strings... 1820 of 87592 done.' takes too long and fails because the nonce becomes invalid.
Additionally, the wrong URL is still displayed for images on the product edit page.
Questions:
You need to change your code to provide a new nonce for every AJAX call to prevent the nonce expiration. In the meantime, is there any workaround?
Method 2 (neither 1) seem to work anymore. How to fix this now? This bug is known since almost 3 years, why wasn't this properly fixed in the meantime?