diff --git a/wp-includes/functions.php b/wp-includes/functions.php index de0042ff32..0962da02f8 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -5077,7 +5077,9 @@ function wp_allowed_protocols() { if ( empty( $protocols ) ) { $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' ); + } + if ( ! did_action( 'wp_loaded' ) ) { /** * Filters the list of protocols allowed in HTML attributes. * @@ -5085,7 +5087,7 @@ function wp_allowed_protocols() { * * @param array $protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more. */ - $protocols = apply_filters( 'kses_allowed_protocols', $protocols ); + $protocols = array_unique( (array) apply_filters( 'kses_allowed_protocols', $protocols ) ); } return $protocols; diff --git a/wp-includes/version.php b/wp-includes/version.php index 871bef98d6..97974c6c0b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-beta3-41989'; +$wp_version = '4.9-beta3-41990'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.