mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
b2e442c247
commit
d9e8492ea8
@ -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.
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user