Make WordPress Core


Ignore:
Timestamp:
07/23/2020 12:42:48 AM (4 years ago)
Author:
whyisjake
Message:

Media: Add "loading" as an allowed kses image attribute

With loading="lazy" being added to all images in [47554], let's ensure that it passes kses attributes too.

Fixes #50731.
Props TimothyBlynJacobs, peterwilsoncc, azaozz.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r48478 r48572  
    231231            'height'   => true,
    232232            'hspace'   => true,
     233            'loading'  => true,
    233234            'longdesc' => true,
    234235            'vspace'   => true,
Note: See TracChangeset for help on using the changeset viewer.