From 2ad420dddf4564bf3e4e2f0d72a0dd6246c4dacc Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 28 Oct 2014 19:36:23 +0000 Subject: [PATCH] Add `audio`, `video`, and `track` to `$allowedposttags` (KSES). Props jwenerd, wonderboymusic. Fixes #29826. Built from https://develop.svn.wordpress.org/trunk@30064 git-svn-id: http://core.svn.wordpress.org/trunk@30064 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 28 +++++++++++++++++++++++++++- wp-includes/version.php | 2 +- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 7399e9cf87..86e7548f8f 100644 --- a/wp-includes/kses.php +++ b/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, + ), ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 844f6142b6..b1131a4def 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30063'; +$wp_version = '4.1-alpha-30064'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.