From 39babb4dfbe486d9818995ef82a1d4d0467e9de4 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Thu, 21 May 2020 04:54:11 +0000 Subject: [PATCH] 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 --- wp-includes/kses.php | 19 ++++++++++--------- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index ae7cc0f411..1aace6c4fa 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -397,15 +397,16 @@ if ( ! CUSTOM_TAGS ) { ), 'var' => array(), 'video' => array( - 'autoplay' => true, - 'controls' => true, - 'height' => true, - 'loop' => true, - 'muted' => true, - 'poster' => true, - 'preload' => true, - 'src' => true, - 'width' => true, + 'autoplay' => true, + 'controls' => true, + 'height' => true, + 'loop' => true, + 'muted' => true, + 'playsinline' => true, + 'poster' => true, + 'preload' => true, + 'src' => true, + 'width' => true, ), ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 7215698841..c13a4a64d4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.