wp_kses_bad_protocol_once2 [ WordPress Function ]
wp_kses_bad_protocol_once2 ( $string, $allowed_protocols )
| Access: |
|
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_kses_bad_protocol_once, wp_kses_bad_protocol, wp_allowed_protocols, wp_kses_post, wp_kses_array_lc
Callback for wp_kses_bad_protocol_once() regular expression.
This function processes URL protocols, checks to see if they're in the whitelist or not, and returns different data depending on the answer.
Source
<?php
function wp_kses_bad_protocol_once2( $string, $allowed_protocols ) {
$string2 = wp_kses_decode_entities($string);
$string2 = preg_replace('/\s/', '', $string2);
$string2 = wp_kses_no_null($string2);
$string2 = strtolower($string2);
$allowed = false;
foreach ( (array) $allowed_protocols as $one_protocol )
if ( strtolower($one_protocol) == $string2 ) {
$allowed = true;
break;
}
if ($allowed)
return "$string2:";
else
return '';
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp kses bad protocol once2 « WordPress Codex
Description. Callback for wp_kses_bad_protocol_once() regular expression. This function processes URL protocols, checks to see if they're in the white-list or ...
codex.wordpress.org - PHP crashed on opline 35 of wp_kses_bad_protocol_once2()
Mar 20, 2008 ... [resolved] PHP crashed on opline 35 of wp_kses_bad_protocol_once2() (2 posts ). Th3 ProphetMan. Member Posted 4 years ago # ...
wordpress.org - 常用函数-wp_kses_bad_protocol_once2() | WordPress啦!
<?php wp_kses_bad_protocol_once2( $matches ) ?> 参数. $string. (混合)(必需) 字符 ... 源文件. wp_kses_bad_protocol_once2()位于wp-includes/kses.php中。
www.wordpress.la - PHPXRef 0.7 : WordPress : Detail view of kses.php
wp_kses_bad_protocol_once2() wp_kses_normalize_entities() wp_kses_named_entities() wp_kses_normalize_entities2() wp_kses_normalize_entities3() ...
phpxref.ftwr.co.uk