addslashes_gpc( string $gpc )
Adds slashes to escape strings.
Description
Slashes will first be removed if magic_quotes_gpc is set, see https://secure.php.net/magic_quotes for more details.
Parameters
- $gpc
-
(Required) The string returned from HTTP request data.
Return
(string) Returns a string escaped with slashes.
Source
File: wp-includes/formatting.php
function addslashes_gpc( $gpc ) {
return wp_slash( $gpc );
}
Changelog
Version | Description |
---|---|
WP-0.71 | Introduced. |