Amateur radio, programming, electronics and other musings

Bug in WP4.4 with Azure Storage – Fix

Bug in WP4.4 with Azure Storage – Fix

Today I noticed two WordPress sites I maintain had some broken images. I keep all of my images in Azure Blob Storage so I jumped into Cloudberry Explorer and looked at the files contained in the blob container. I found my images were there. I looked at the source of the page and noticed that the markup has changed for some images.

Since WP4.4 it appears that responsive images have been implemented. The markup for an image now looked like…

<img class="alignright size-medium wp-image-8931" src="" sizes="(max-width: 300px) 100vw, 300px" srcset=" 150w, 300w, 1024w, 144w, 480w, 900w, 924w" alt="lipo-dist-clean-angled" width="300" height="300" />

The code above is the fixed markup not the code that was failing. Having looked in Developer Tools I noticed I was getting a 404 on an image load. Looking at where the image was coming from showed it wasn’t from Azure. This meant that the Azure Storage plugin didn’t yet know about the new SRCSET property. Some searching online found a number of people experiencing the issue and various fixes. is the blog post that helped me fix my problem.

Hopefully Microsoft will release an official plugin update soon.  UPDATE: The plugin has been updated and this fix is no longer required.

Further Reading