KSES: Support the `video` element's `playsinline` attribute.

Allow users without the `unfiltered_html` capability to use the `playsinline` attribute when embedding videos.

Additionally this adds unit tests for passing the video element through kses.

Fixes #50167. See #29826.

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


git-svn-id: http://core.svn.wordpress.org/trunk@47613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2020-05-21 04:54:11 +00:00
parent ba03c426db
commit 39babb4dfb
2 changed files with 11 additions and 10 deletions

View File

@ -397,15 +397,16 @@ if ( ! CUSTOM_TAGS ) {
), ),
'var' => array(), 'var' => array(),
'video' => array( 'video' => array(
'autoplay' => true, 'autoplay' => true,
'controls' => true, 'controls' => true,
'height' => true, 'height' => true,
'loop' => true, 'loop' => true,
'muted' => true, 'muted' => true,
'poster' => true, 'playsinline' => true,
'preload' => true, 'poster' => true,
'src' => true, 'preload' => true,
'width' => true, 'src' => true,
'width' => true,
), ),
); );

View File

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