[wp-trac] [WordPress Trac] #29807: add support for picture element and srcset attribute on img in wp_kses
WordPress Trac
noreply at wordpress.org
Sat Apr 15 23:59:58 UTC 2017
#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: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by drrobotnik):
Replying to [comment:15 ocean90]:
> Replying to [comment:14 wilto]:
>
> comment:6 is still valid so a new patch that addresses this issue would
be helpful.
wp_kses_hair is a lot to digest... attached is a patch that adds srcset
and sizes to the $uris array. Needs testing. Also includes formatting and
a slight refactor to case 2 in the switch statement. All of the scenarios
in case 2 return the same way, the only thing that changes is the regex.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29807#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list