Ticket #31666: 31666.2.diff
File 31666.2.diff, 888 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/functions.php
4429 4429 * Retrieve a list of protocols to allow in HTML attributes. 4430 4430 * 4431 4431 * @since 3.3.0 4432 * @since 4.2.0 Added webcal to the protocols array. 4432 4433 * 4433 4434 * @see wp_kses() 4434 4435 * @see esc_url() … … 4439 4440 static $protocols; 4440 4441 4441 4442 if ( empty( $protocols ) ) { 4442 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp' );4443 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal' ); 4443 4444 4444 4445 /** 4445 4446 * Filter the list of protocols allowed in HTML attributes.