piperhaywood / commonplace-wp-theme

A WordPress theme based on a Commonplace Book
GNU Lesser General Public License v3.0
21 stars 1 forks source link

`cp_lazyload_content_images` filter is causing extraneous slash in RSS feed #85

Open piperhaywood opened 1 year ago

piperhaywood commented 1 year ago

The cp_lazyload_content_images filter is causing an extraneous slash in the RSS feed, which in turn causes issues in things like MailChimp.

Example:

<img decoding="async" src="https://piperhaywood.com/wp-content/uploads/2023/10/piper-haywood_oh-deer.jpg" alt="A sepia-toned picture of three elk in a field" width="1250" height="898" class="alignnone size-full wp-image-11341" /loading="lazy" srcset="https://piperhaywood.com/wp-content/uploads/2023/10/piper-haywood_oh-deer.jpg 1250w, https://piperhaywood.com/wp-content/uploads/2023/10/piper-haywood_oh-deer-900x647.jpg 900w, https://piperhaywood.com/wp-content/uploads/2023/10/piper-haywood_oh-deer-550x395.jpg 550w, https://piperhaywood.com/wp-content/uploads/2023/10/piper-haywood_oh-deer-768x552.jpg 768w" sizes="(max-width: 1250px) 100vw, 1250px" />