Add 'urn' to the list of URI protocols whitelisted by default.
Props geekysoft, jorbin. Fixes #37300. Built from https://develop.svn.wordpress.org/trunk@38686 git-svn-id: http://core.svn.wordpress.org/trunk@38629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad613ca119
commit
30573dc7b2
|
@ -4954,6 +4954,7 @@ function send_frame_options_header() {
|
|||
*
|
||||
* @since 3.3.0
|
||||
* @since 4.3.0 Added 'webcal' to the protocols array.
|
||||
* @since 4.7.0 Added 'urn' to the protocols array.
|
||||
*
|
||||
* @see wp_kses()
|
||||
* @see esc_url()
|
||||
|
@ -4962,13 +4963,13 @@ function send_frame_options_header() {
|
|||
*
|
||||
* @return array Array of allowed protocols. Defaults to an array containing 'http', 'https',
|
||||
* 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet',
|
||||
* 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', and 'webcal'.
|
||||
* 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'.
|
||||
*/
|
||||
function wp_allowed_protocols() {
|
||||
static $protocols = array();
|
||||
|
||||
if ( empty( $protocols ) ) {
|
||||
$protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal' );
|
||||
$protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' );
|
||||
|
||||
/**
|
||||
* Filters the list of protocols allowed in HTML attributes.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38685';
|
||||
$wp_version = '4.7-alpha-38686';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue