[wp-trac] [WordPress Trac] #50731: Add "loading" as an allowed kses image attribute
WordPress Trac
noreply at wordpress.org
Tue Jul 21 21:56:29 UTC 2020
#50731: Add "loading" as an allowed kses image attribute
-------------------------------+-------------------------
Reporter: TimothyBlynJacobs | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Media | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: |
-------------------------------+-------------------------
Now that lazy loading images in Core, I think `loading` should be added to
`$allowedposttags` for images.
This caused an issue with Twenty Twenty because the theme applies
`wp_kses_post` to the output of `get_avatar` in its comment section which
caused the `loading` attribute to be removed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50731>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list