From d9e8492ea86e6d9ee6db1c1f4af013644597252d Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 5 May 2015 00:38:27 +0000 Subject: [PATCH] Add 'webcal' to the list of URI protocols whitelisted by default. Fixes #31666. Built from https://develop.svn.wordpress.org/trunk@32346 git-svn-id: http://core.svn.wordpress.org/trunk@32317 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1f6e3b17c3..51fc282298 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -4438,6 +4438,7 @@ function send_frame_options_header() { * Retrieve a list of protocols to allow in HTML attributes. * * @since 3.3.0 + * @since 4.3.0 Added 'webcal' to the protocols array. * * @see wp_kses() * @see esc_url() @@ -4448,7 +4449,7 @@ function wp_allowed_protocols() { static $protocols; if ( empty( $protocols ) ) { - $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp' ); + $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal' ); /** * Filter the list of protocols allowed in HTML attributes. diff --git a/wp-includes/version.php b/wp-includes/version.php index 1dc813d559..10a6ab0a8b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32345'; +$wp_version = '4.3-alpha-32346'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.