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



addslashes_gpc › WordPress Function

Od0.71
Przestarzały7.0.0
› addslashes_gpc ( $gpc )
Parametry:
  • (string|array) $gpc String or array of data to slash.
    Wymagane: Tak
Zobacz:
Powrót:
  • (string|array) Slashed `$gpc`.
Zdefiniowane na:
Codex:

Adds slashes to a string or recursively adds slashes to strings within an array.

This function is just a wrapper for wp_slash(). It was originally related to magic quotes functionality which was deprecated in PHP 5.3.0 and removed in PHP 5.4.0.


Źródło

function addslashes_gpc( $gpc ) {
	_deprecated_function( __FUNCTION__, '7.0.0', 'wp_slash()' );
	return wp_slash( $gpc );
}