Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_pre_kses_less_than_callback ›

Da2.3.0
Deprecaton/a
wp_pre_kses_less_than_callback ( $matches )
Parametri:
  • (array) $matches Populated by matches to preg_replace.
    Richiesto:
Ritorna:
  • (string) The text returned after esc_html if needed.
Definito a:
Codex:

Callback function used by preg_replace.



Sorgenti

function wp_pre_kses_less_than_callback( $matches ) {
	if ( false === strpos( $matches[0], '>' ) ) {
		return esc_html( $matches[0] );
	}
	return $matches[0];
}