#50731 closed defect (bug) (fixed)
Add "loading" as an allowed kses image attribute
Reported by: | TimothyBlynJacobs | Owned by: | whyisjake |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Media | Keywords: | has-patch has-unit-tests has-dev-note |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (6)
#2
in reply to:
↑ 1
@
4 years ago
Replying to peterwilsoncc:
You mean something like 50731.diff? Or should it test a "real" gravatar img tag?
#3
@
4 years ago
- Keywords has-patch has-unit-tests commit added; needs-patch needs-unit-tests removed
@azaozz Thanks, that's exactly what I meant. I've modified the keywords accordingly.
#4
@
4 years ago
- Owner set to whyisjake
- Resolution set to fixed
- Status changed from new to closed
In 48572:
#5
@
4 years ago
- Keywords has-dev-note added; commit removed
This received a call out in the Miscellaneous Developer Changes in 5.5 dev note: https://make.wordpress.org/core/2020/07/29/miscellaneous-developer-focused-changes-in-wordpress-5-5/.
Note: See
TracTickets for help on using
tickets.
This makes sense.
I've added needs tests, adding an image tag as HTML should do as ensuring avatars have a
loading
attribute is best for the avatar portion of the test suite.