addslashes_gpc( string|array $gpc ): string|array

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

Parameters

$gpcstring|arrayrequired
String or array of data to slash.

Return

string|array Slashed $gpc.

Source

function addslashes_gpc( $gpc ) {
	return wp_slash( $gpc );
}

Changelog

VersionDescription
0.71Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.