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. 


Built from https://develop.svn.wordpress.org/trunk@48572


git-svn-id: http://core.svn.wordpress.org/trunk@48334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2020-07-23 00:44:04 +00:00
parent 51154cd1df
commit daace832e3
2 changed files with 2 additions and 1 deletions

View File

@ -230,6 +230,7 @@ if ( ! CUSTOM_TAGS ) {
'border' => true,
'height' => true,
'hspace' => true,
'loading' => true,
'longdesc' => true,
'vspace' => true,
'src' => true,

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta3-48571';
$wp_version = '5.5-beta3-48572';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.