wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_pre_kses_less_than › WordPress Function

Od2.3.0
Przestarzałyn/a
› wp_pre_kses_less_than ( $content )
Parametry:
  • (string) $content Text to be converted.
    Wymagane: Tak
Powrót:
  • (string) Converted text.
Zdefiniowane na:
Codex:

Converts lone less than signs.

KSES already converts lone greater than signs.


Źródło

function wp_pre_kses_less_than( $content ) {
	global $wp_kses_operating_mode;

	if ( 'legacy' !== ( $wp_kses_operating_mode ?? 'legacy' ) ) {
		return $content;
	}

	return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $content );
}