Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_kses_stripslashes ›

Desde1.0.0
Obsoleton/a
wp_kses_stripslashes ( $string )
Parâmetros:
  • (string) $string String to strip slashes
    Required: Yes
Retorna:
  • (string) Fixed string with quoted slashes
Definido em:
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.



Fonte

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