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
    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. It's really weird, but the quoting from preg_replace(//e) seems to require this.



Sorgenti

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