527
527
if ( empty( $allowed_protocols ) )
528
528
$allowed_protocols = wp_allowed_protocols();
529
529
$string = wp_kses_no_null( $string, array( 'slash_zero' => 'keep' ) );
531
530
$string = wp_kses_normalize_entities($string);
532
531
$string = wp_kses_hook($string, $allowed_html, $allowed_protocols); // WP changed the order of these funcs and added args to wp_kses_hook
533
532
return wp_kses_split($string, $allowed_html, $allowed_protocols);