Skip to content

Commit

Permalink
Formatting: Add 'main' tag to kses
Browse files Browse the repository at this point in the history
`main` is a valid HTML element that is especially valuable for KSES to support in light of full site editing.

Related: WordPress/gutenberg#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
  • Loading branch information
aaronjorbin committed May 25, 2021
1 parent 5386157 commit b6b98b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions wp-includes/kses.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@
'align' => true,
'value' => true,
),
'main' => array(
'align' => true,
'dir' => true,
'lang' => true,
'xml:lang' => true,
),
'map' => array(
'name' => true,
),
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b6b98b8

Please sign in to comment.