From b6b98b8e2dbfffc5c181ad88dd0ecbde6c8c5478 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 25 May 2021 01:43:55 +0000 Subject: [PATCH] Formatting: Add 'main' tag to kses `main` is a valid HTML element that is especially valuable for KSES to support in light of full site editing. Related: https://github.com/WordPress/gutenberg/pull/28576 for the addition of `main` to the group block. Fixes #53156. Props glendaviesnz. Built from https://develop.svn.wordpress.org/trunk@50987 git-svn-id: http://core.svn.wordpress.org/trunk@50596 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 6 ++++++ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index a996b86a91..5310f0caf9 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -252,6 +252,12 @@ if ( ! CUSTOM_TAGS ) { 'align' => true, 'value' => true, ), + 'main' => array( + 'align' => true, + 'dir' => true, + 'lang' => true, + 'xml:lang' => true, + ), 'map' => array( 'name' => true, ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 11d2e265fd..c386004274 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50986'; +$wp_version = '5.8-alpha-50987'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.