From 159423cef96a676fa6351b0c8640bcd525f03632 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 28 Oct 2014 19:35:17 +0000 Subject: [PATCH] Add `audio`, `video`, and `track` to `$allowedposttags` (KSES). Props jwenerd, wonderboymusic. Fixes #29826. git-svn-id: https://develop.svn.wordpress.org/trunk@30064 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/kses.php | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php index 7399e9cf87..86e7548f8f 100644 --- a/src/wp-includes/kses.php +++ b/src/wp-includes/kses.php @@ -88,6 +88,14 @@ if ( ! CUSTOM_TAGS ) { 'lang' => true, 'xml:lang' => true, ), + 'audio' => array( + 'autoplay' => true, + 'controls' => true, + 'loop' => true, + 'muted' => true, + 'preload' => true, + 'src' => true, + ), 'b' => array(), 'big' => array(), 'blockquote' => array( @@ -119,7 +127,7 @@ if ( ! CUSTOM_TAGS ) { 'valign' => true, 'width' => true, ), - 'colgroup' => array( + 'colgroup' => array( 'align' => true, 'char' => true, 'charoff' => true, @@ -372,6 +380,13 @@ if ( ! CUSTOM_TAGS ) { 'charoff' => true, 'valign' => true, ), + 'track' => array( + 'default' => true, + 'kind' => true, + 'label' => true, + 'src' => true, + 'srclang' => true, + ), 'tt' => array(), 'u' => array(), 'ul' => array( @@ -382,6 +397,17 @@ if ( ! CUSTOM_TAGS ) { 'type' => true, ), 'var' => array(), + 'video' => array( + 'autoplay' => true, + 'controls' => true, + 'height' => true, + 'loop' => true, + 'muted' => true, + 'poster' => true, + 'preload' => true, + 'src' => true, + 'width' => true, + ), ); /**