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