wp_kses_bad_protocol_once2


wp_kses_bad_protocol_once2 ( $string, $allowed_protocols )

Access:
  • private
Parameters:
  • (string) $string URI scheme to check against the whitelist.
  • (string[]) $allowed_protocols Array of allowed URL protocols.
Returns:
  • (string) Sanitized content.
Defined at:

Description

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.

Related Functions

wp_kses_bad_protocol_once, wp_kses_bad_protocol, wp_allowed_protocols, wp_kses_post_deep, wp_kses_hair_parse

Top Google Results

User discussions

wpseek mobile