From daace832e3d71abc8eeeb30fff68bfa931b09e68 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Thu, 23 Jul 2020 00:44:04 +0000 Subject: [PATCH] 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 --- wp-includes/kses.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 6a579b8d91..2c0e075ff4 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -230,6 +230,7 @@ if ( ! CUSTOM_TAGS ) { 'border' => true, 'height' => true, 'hspace' => true, + 'loading' => true, 'longdesc' => true, 'vspace' => true, 'src' => true, diff --git a/wp-includes/version.php b/wp-includes/version.php index 309eddee7b..8cf43c9d78 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.