ResponsiveImagesCG / wp-tevko-responsive-images

Fully responsive image plugin for wordpress
449 stars 53 forks source link

Tool to remove data-sizes and scrset from image elements in the post content #271

Closed jaspermdegroot closed 3 years ago

jaspermdegroot commented 8 years ago

Solution for #178

If there are posts that contain images with data-sizes and srcset attributes in the markup a menu page is added to the Tools menu and a warning message is shown on the dashboard and plugin menu page to point users to this page.

The plugin Tools menu page contains an explanation, a tool to automatically remove data-sizes and srcset from images, and instructions how to do this manually.

When all data-sizes and srcset are removed the Tools menu page and the warning message disappear.

jaspermdegroot commented 8 years ago

Still have to look into unit tests.

damienroue commented 8 years ago

Hi @jaspermdegroot. Have you found a way to remove srcset and sizes markup?

jaspermdegroot commented 8 years ago

Hi @damienroue

Yeah, this PR adds a tool to remove the attributes. It still needs to be reviewed by @joemcgill before we can merge and release a new version of the plugin with the tool. I also have to see why some tests failed on the last commit. Everything worked fine when I tested the code, but make sure you have a backup of your database if you decide to use it already!