Changeset 46172
- Timestamp:
- 09/18/2019 11:37:08 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-includes/functions.php (modified) (3 diffs)
-
tests/phpunit/tests/functions/allowedProtocols.php (modified) (1 diff)
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 -
trunk/tests/phpunit/tests/functions/allowedProtocols.php
r41124 r46172 54 54 array( 'svn', 'svn://core.svn.wordpress.org/' ), 55 55 array( 'tel', 'tel:+1-234-567-8910' ), // RFC3966 56 array( 'sms', 'sms:+1-234-567-8910' ), // RFC3966 56 57 array( 'fax', 'fax:+123.456.78910' ), // RFC2806/RFC3966 57 58 array( 'xmpp', 'xmpp://guest@example.com' ), // RFC5122
Note: See TracChangeset
for help on using the changeset viewer.