diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index f0c3c00c2e..c4272e0a91 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -3126,9 +3126,7 @@ function esc_sql( $data ) { * * @param string $url The URL to be cleaned. * @param array $protocols Optional. An array of acceptable protocols. - * Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', - * 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', - * 'rtsp', 'svn' if not set. + * Defaults to return value of wp_allowed_protocols() * @param string $_context Private. Use esc_url_raw() for database usage. * @return string The cleaned $url after the 'clean_url' filter is applied. */ diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 99cf913d9a..faed1d476e 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -4506,6 +4506,7 @@ function send_frame_options_header() { * @staticvar array $protocols * * @return array Array of allowed protocols. + * Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal' */ function wp_allowed_protocols() { static $protocols = array();