WordPress.org

Make WordPress Core

Ticket #21604: 21604.patch

File 21604.patch, 662 bytes (added by ethitter, 9 years ago)

Adds xmpp to the default list of allowed protocols

  • wp-includes/functions.php

     
    35313531        static $protocols;
    35323532
    35333533        if ( empty( $protocols ) ) {
    3534                 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax' );
     3534                $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp' );
    35353535                $protocols = apply_filters( 'kses_allowed_protocols', $protocols );
    35363536        }
    35373537