I tried to use the Enable Media Replace Plugin to replace some images on my site with updated versions. There is an option to update all instances where the file is used on the site, but this only applies to the original image. WordPress automatically generates several different sizes of each image and renames them with
-img-size.jpg. These resized images' names are not being updated by the plugin, so anywhere that they are used (like, everywhere) is now a broken image. I looked at the post HTML and everything looks like:
<a href="example.com/wp-content/uploads/2013/12/newfilename.jpg"> <img class="size-medium wp-image-1172 alignright" alt="old file name" src=example.com/wp-content/uploads/2013/12/oldfilename-300x168.jpg" width="300" height="168" /> </a>
Clicking on the broken image will take you to the updated image, but the image is broken in the post. For example, here's a post I replaced images on.
replace() but I'm just not sure how to word it to work for all my images.