addslashes_gpc()
Deprecated since 7.0.0. It is no longer supported and may be removed in future releases. Use wp_slash() instead.
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.
No Hooks.
Returns
String|Array. Slashed $gpc.
Usage
addslashes_gpc( $gpc );
- $gpc(string|array) (required)
- String or array of data to slash.
Notes
- See: wp_slash()
Changelog
| Since 0.71 | Introduced. |
| Deprecated since 7.0.0 | Use wp_slash() instead. |
addslashes_gpc() addslashes gpc code WP 7.0
function addslashes_gpc( $gpc ) {
_deprecated_function( __FUNCTION__, '7.0.0', 'wp_slash()' );
return wp_slash( $gpc );
}