Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
wp_kses_normalize_entities2( array $matches )
Callback for wp_kses_normalize_entities() regular expression.
Description Description
This function helps wp_kses_normalize_entities() to only accept 16-bit values and nothing more for &#number;
entities.
Parameters Parameters
- $matches
-
(array) (Required) preg_replace_callback() matches array
Return Return
(string) Correctly encoded entity
Source Source
File: wp-includes/kses.php
$ok = false; } if ( $value < $checkvalue ) { $ok = false; } break; case 'valueless': // The valueless check makes sure if the attribute has a value // (like `<a href="blah">`) or not (`<option selected>`). If the given value // is a "y" or a "Y", the attribute must not have a value. // If the given value is an "n" or an "N", the attribute must have a value. if ( strtolower( $checkvalue ) != $vless ) {
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |