wp_kses_bad_protocol_once [ WordPress Function ]
wp_kses_bad_protocol_once ( $string, $allowed_protocols, $count = 1 )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_kses_bad_protocol_once2, wp_kses_bad_protocol, wp_allowed_protocols, wp_kses_array_lc, wp_kses_post
Sanitizes content from bad protocols and other characters.
This function searches for URL protocols at the beginning of $string, while handling whitespace and HTML entities.
Source
<?php
function wp_kses_bad_protocol_once($string, $allowed_protocols, $count = 1 ) {
$string2 = preg_split( '/:|�*58;|�*3a;/i', $string, 2 );
if ( isset($string2[1]) && ! preg_match('%/\?%', $string2[0]) ) {
$string = trim( $string2[1] );
$protocol = wp_kses_bad_protocol_once2( $string2[0], $allowed_protocols );
if ( 'feed:' == $protocol ) {
if ( $count > 2 )
return '';
$string = wp_kses_bad_protocol_once( $string, $allowed_protocols, ++$count );
if ( empty( $string ) )
return $string;
}
$string = $protocol . $string;
}
return $string;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp kses bad protocol once « WordPress Codex
Description. Sanitizes content from bad protocols and other characters. This function searches for URL protocols at the beginning of $string, while handling ...
codex.wordpress.org - 常用函数-wp_kses_bad_protocol_once() | WordPress啦!
<?php wp_kses_bad_protocol_once( $string, $allowed_protocols ) ?> ... wp_kses_bad_protocol_once()位于wp-includes/kses.php中。
www.wordpress.la - PHPXRef 0.7 : WordPress : Detail view of kses.php
wp_kses_bad_protocol_once() wp_kses_bad_protocol_once2() wp_kses_normalize_entities() wp_kses_named_entities() wp_kses_normalize_entities2() ...
phpxref.ftwr.co.uk - kses.php - PHP Cross Reference of WordPress Source - Yoast
Jun 1, 2011 ... wp_kses_js_entities() wp_kses_html_error() wp_kses_bad_protocol_once() wp_kses_bad_protocol_once2() wp_kses_normalize_entities() ...
xref.yoast.com