Changeset 49055
- Timestamp:
- 09/26/2020 09:00:19 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r49049 r49055 6296 6296 * @since 4.7.0 Added 'urn' to the protocols array. 6297 6297 * @since 5.3.0 Added 'sms' to the protocols array. 6298 * @since 5.6.0 Added 'irc6' and 'ircs' to the protocols array. 6298 6299 * 6299 6300 * @see wp_kses() … … 6301 6302 * 6302 6303 * @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https', 6303 * 'ftp', 'ftps', 'mailto', 'news', 'irc', ' gopher', 'nntp', 'feed', 'telnet',6304 * ' mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'.6304 * 'ftp', 'ftps', 'mailto', 'news', 'irc', 'irc6', 'ircs', 'gopher', 'nntp', 'feed', 6305 * 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'. 6305 6306 * This covers all common link protocols, except for 'javascript' which should not 6306 6307 * be allowed for untrusted users. … … 6310 6311 6311 6312 if ( empty( $protocols ) ) { 6312 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', ' gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' );6313 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'irc6', 'ircs', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' ); 6313 6314 } 6314 6315 -
trunk/tests/phpunit/tests/customize/nav-menu-item-setting.php
r48939 r49055 517 517 'news://news.server.example/example.group.this', 518 518 'irc://irc.freenode.net/wordpress', 519 'irc6://irc.freenode.net/wordpress', 520 'ircs://irc.freenode.net/wordpress', 519 521 'gopher://example.com', 520 522 'nntp://news.server.example/example.group.this', -
trunk/tests/phpunit/tests/functions/allowedProtocols.php
r49006 r49055 47 47 array( 'news', 'news://news.server.example/example.group.this' ), // RFC5538 48 48 array( 'irc', 'irc://example.com/wordpress' ), 49 array( 'irc6', 'irc6://example.com/wordpress' ), 50 array( 'ircs', 'ircs://example.com/wordpress' ), 49 51 array( 'gopher', 'gopher://example.com/7a_gopher_selector%09foobar' ), // RFC4266 50 52 array( 'nntp', 'nntp://news.server.example/example.group.this' ), // RFC5538
Note: See TracChangeset
for help on using the changeset viewer.