WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

wp_kses_bad_protocol() WP 1.0.0

Sanitizes a string and removed disallowed URL protocols.

This function removes all non-allowed protocols from the beginning of the string. It ignores whitespace and the case of the letters, and it does understand HTML entities. It does its work recursively, so it won't be fooled by a string like javascript:javascript:alert(57).

Хуков нет.

Возвращает

Строку. Filtered content.

Использование

wp_kses_bad_protocol( $string, $allowed_protocols );
$string(строка) (обязательный)
Content to filter bad protocols from.
$allowed_protocols(строка[]) (обязательный)
Array of allowed URL protocols.

Код wp kses bad protocol: wp-includes/kses.php VER 5.1.1

<?php
function wp_kses_bad_protocol( $string, $allowed_protocols ) {
	$string     = wp_kses_no_null( $string );
	$iterations = 0;

	do {
		$original_string = $string;
		$string          = wp_kses_bad_protocol_once( $string, $allowed_protocols );
	} while ( $original_string != $string && ++$iterations < 6 );

	if ( $original_string != $string ) {
		return '';
	}

	return $string;
}