Make WordPress Core

Ticket #31666: 31666.2.diff

File 31666.2.diff, 888 bytes (added by MikeHansenMe, 10 years ago)
  • src/wp-includes/functions.php

     
    44294429 * Retrieve a list of protocols to allow in HTML attributes.
    44304430 *
    44314431 * @since 3.3.0
     4432 * @since 4.2.0 Added webcal to the protocols array.
    44324433 *
    44334434 * @see wp_kses()
    44344435 * @see esc_url()
     
    44394440        static $protocols;
    44404441
    44414442        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' );
    44434444
    44444445                /**
    44454446                 * Filter the list of protocols allowed in HTML attributes.