Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_kses_stripslashes ›

Da1.0.0
Deprecaton/a
wp_kses_stripslashes ( $string )
Parametri:
  • (string) $string String to strip slashes from.
    Richiesto:
Ritorna:
  • (string) Fixed string with quoted slashes.
Definito a:
Codex:

Strips slashes from in front of quotes.

This function changes the character sequence " to just ". It leaves all other slashes alone. The quoting from preg_replace(//e) requires this.



Sorgenti

function wp_kses_stripslashes( $string ) {
	return preg_replace( '%\\\\"%', '"', $string );
}