Index: wp-includes/functions.php
===================================================================
--- wp-includes/functions.php	(revision 18817)
+++ wp-includes/functions.php	(working copy)
@@ -4609,4 +4609,15 @@
 	@header( 'X-Frame-Options: SAMEORIGIN' );
 }
 
+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' );
+		$protocols = apply_filters( 'kses_allowed_protocols', $protocols );
+	}
+
+	return $protocols;
+}
+
 ?>
Index: wp-includes/formatting.php
===================================================================
--- wp-includes/formatting.php	(revision 18817)
+++ wp-includes/formatting.php	(working copy)
@@ -2299,8 +2299,8 @@
 		$url = str_replace( "'", '&#039;', $url );
 	}
 
-	if ( !is_array($protocols) )
-		$protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn');
+	if ( ! is_array( $protocols ) )
+		$protocols = wp_allowed_protocols();
 	if ( wp_kses_bad_protocol( $url, $protocols ) != $url )
 		return '';
 
Index: wp-includes/kses.php
===================================================================
--- wp-includes/kses.php	(revision 18817)
+++ wp-includes/kses.php	(working copy)
@@ -500,7 +500,7 @@
  * @return string Filtered content with only allowed HTML elements
  */
 function wp_kses($string, $allowed_html, $allowed_protocols = array ()) {
-	$allowed_protocols = wp_parse_args( $allowed_protocols, apply_filters('kses_allowed_protocols', array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn') ));
+	$allowed_protocols = wp_parse_args( $allowed_protocols, wp_allowed_protocols() );
 	$string = wp_kses_no_null($string);
 	$string = wp_kses_js_entities($string);
 	$string = wp_kses_normalize_entities($string);
