Core Function
View Source on Trac ↗ wp_kses_bad_protocol_once2()
wp_kses_bad_protocol_once2( mixed $scheme, mixed $allowed_protocols ) Callback for `wp_kses_bad_protocol_once()` regular expression.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $scheme string | URI scheme to check against the list of allowed protocols. Required |
| $allowed_protocols string[] | Array of allowed URL protocols. Required |
Return Value
(string)
Sanitized content.
Function Information
Since Version
1.0.0
Source File
wp-includes/kses.php
Advertisement