関数 wp_allowed_protocols()
定義ファイル :/blog/wp-includes/functions.php 21
wp_allowed_protocols()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | /** * Retrieve a list of protocols to allow in HTML attributes. * * @since 3.3.0 * * @see wp_kses() * @see esc_url() * * @return array Array of allowed protocols. */ function wp_allowed_protocols() { static $protocols; if ( empty( $protocols ) ) { $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp' ); /** * Filter the list of protocols allowed in HTML attributes. * * @since 3.0.0 * * @param array $protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more. */ $protocols = apply_filters( 'kses_allowed_protocols', $protocols ); } return $protocols; } |