diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 1f6e3b17c3..51fc282298 100644 --- a/src/wp-includes/functions.php +++ b/src/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.