[wp-trac] [WordPress Trac] #29807: add support for picture element and srcset attribute on img in wp_kses

WordPress Trac noreply at wordpress.org
Wed Oct 21 17:23:33 UTC 2015


#29807: add support for picture element and srcset attribute on img in wp_kses
-----------------------------------------+-----------------------------
 Reporter:  mattheu                      |       Owner:
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Future Release
Component:  Formatting                   |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch dev-feedback kses  |     Focuses:
-----------------------------------------+-----------------------------

Comment (by littler.chicken):

 I was going to open a new ticket on this but was pointed here--since this
 is still open, although old, I'm leaving a comment here instead of doing a
 new ticket. Using trunk and trying to output an image using `wp_kses_post(
 $image )` ... if I do this, the srcset attributes are removed from the
 image. I'd like to have them, but not at the cost of sanitizing the
 output.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29807#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list