Function Reference/wp kses bad protocol once2
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 not, and returns different data depending on the answer.
Usage
<?php wp_kses_bad_protocol_once2( $matches ) ?>
Parameters
- $matches
- (mixed) (required) string or preg_replace_callback() matches array to check for bad protocols
- Default: None
Return Values
- (string)
- Sanitized content
Examples
Notes
- This is a private function. It should not be called directly. It is listed in the Codex for completeness.
- Uses global: (unknown) $_kses_allowed_protocols
Change Log
Since: 1.0.0
Source File
wp_kses_bad_protocol_once2() is located in wp-includes/kses.php.
Related