Changeset 46172 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/18/2019 11:37:08 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r46162 r46172 5984 5984 * @since 4.3.0 Added 'webcal' to the protocols array. 5985 5985 * @since 4.7.0 Added 'urn' to the protocols array. 5986 * @since 5.3.0 Added 'sms' to the protocols array. 5986 5987 * 5987 5988 * @see wp_kses() … … 5992 5993 * @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https', 5993 5994 * 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 5994 * 'mms', 'rtsp', 's vn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'. This covers5995 * all common link protocols, except for 'javascript' which should not be5996 * allowed for untrusted users.5995 * 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'. 5996 * This covers all common link protocols, except for 'javascript' which should not 5997 * be allowed for untrusted users. 5997 5998 */ 5998 5999 function wp_allowed_protocols() { … … 6000 6001 6001 6002 if ( empty( $protocols ) ) { 6002 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 's vn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' );6003 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' ); 6003 6004 } 6004 6005
Note: See TracChangeset
for help on using the changeset viewer.