WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29807, comment 9


Ignore:
Timestamp:
02/22/2015 12:24:45 PM (5 years ago)
Author:
mattheu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29807, comment 9

    initial v1  
    33As there is now a feature plugin project for high res images, I think this would be needed.
    44
    5 rmmcue I've looked into wp_kses_hair. You're right that its not so easy to try and validate the URLs in the srcset attribute. I'm not sure what to do here. The only thing I can think is that we could take srcset as a special case and then - knowing the format, we can get parse the string to grab the URLs and check for bad protocols. This is not easy to do though.
     5@rmccue I've looked into wp_kses_hair. You're right that its not so easy to try and validate the URLs in the srcset attribute. I'm not sure what to do here. The only thing I can think is that we could take srcset as a special case and then - knowing the format, we can get parse the string to grab the URLs and check for bad protocols. This is not easy to do though.