WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

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$allowed_protocols ?>

Parameters

$matches
($string) (required) URI scheme to check against the whitelist
Default: None
$allowed_protocols
($string) (required) Allowed 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.

Change Log

Since: 1.0.0

Source File

wp_kses_bad_protocol_once2() is located in wp-includes/kses.php.

Related

See also index of Function Reference and index of Template Tags.