Adds slashes to a string or recursively adds slashes to strings within an array.
Description
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.
See also
Parameters
$gpcstring|arrayrequired- String or array of data to slash.
Source
function addslashes_gpc( $gpc ) {
_deprecated_function( __FUNCTION__, '7.0.0', 'wp_slash()' );
return wp_slash( $gpc );
}
Changelog
| Version | Description |
|---|---|
| 7.0.0 | Deprecated. Use wp_slash() instead. |
| 0.71 | Introduced. |
User Contributed Notes