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.


Top ↑

Parameters Parameters

$matches

(array) (Required) preg_replace_callback() matches array


Top ↑

Return Return

(string) Correctly encoded entity


Top ↑

Source Source

File: wp-includes/kses.php

 * @param string $value      Attribute value.
 * @param string $vless      Whether the attribute is valueless. Use 'y' or 'n'.
 * @param string $checkname  What $checkvalue is checking for.
 * @param mixed  $checkvalue What constraint the value should pass.
 * @return bool Whether check passes.
 */
function wp_kses_check_attr_val( $value, $vless, $checkname, $checkvalue ) {
	$ok = true;

	switch ( strtolower( $checkname ) ) {
		case 'maxlen':
			/*
			 * The maxlen check makes sure that the attribute value has a length not
			 * greater than the given value. This can be used to avoid Buffer Overflows

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.