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
This commit is contained in:
Boone Gorges 2015-05-05 00:38:27 +00:00
parent b2e442c247
commit d9e8492ea8
2 changed files with 3 additions and 2 deletions

View File

@ -4438,6 +4438,7 @@ function send_frame_options_header() {
* Retrieve a list of protocols to allow in HTML attributes. * Retrieve a list of protocols to allow in HTML attributes.
* *
* @since 3.3.0 * @since 3.3.0
* @since 4.3.0 Added 'webcal' to the protocols array.
* *
* @see wp_kses() * @see wp_kses()
* @see esc_url() * @see esc_url()
@ -4448,7 +4449,7 @@ function wp_allowed_protocols() {
static $protocols; static $protocols;
if ( empty( $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. * Filter the list of protocols allowed in HTML attributes.

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.