Make WordPress Core


Ignore:
Timestamp:
06/28/2012 08:30:10 PM (14 years ago)
Author:
markjaquith
Message:

Allow tel: and fax: protocols. Wrangle the last hardcoded protocol enumeration so that it uses wp_allowed_protocols(). fixes #21081

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r21141 r21170  
    35093509
    35103510    if ( empty( $protocols ) ) {
    3511         $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' );
     3511        $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax' );
    35123512        $protocols = apply_filters( 'kses_allowed_protocols', $protocols );
    35133513    }
Note: See TracChangeset for help on using the changeset viewer.