Index: src/wp-includes/functions.php
===================================================================
--- src/wp-includes/functions.php	(revision 36798)
+++ src/wp-includes/functions.php	(working copy)
@@ -4821,7 +4821,7 @@
 function wp_allowed_protocols() {
 	static $protocols = array();
 
-	if ( empty( $protocols ) ) {
+	if ( empty( $protocols ) || ! did_action( 'wp_loaded' ) ) {
 		$protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal' );
 
 		/**
