the php7 equivalent is:
$magic_quotes=false;
magic_quotes is no longer supported. it was never a good idea, and should be avoided whenever possible. still, since magic_quotes was basically just running addslashes() on everything in $_GET / $_POST / $_COOKIE, porting it to modern php is not a difficult task, and you can find magic_quotes ported to modern PHP in the wordpress framework here: https://github.com/WordPress/WordPress/blob/38676936bac7963a62e23e0d2ec260a1ae9731ea/wp-includes/formatting.php#L5453
/**
* Add slashes to a string or array of strings.
*
* This should be used when preparing data for core API that expects slashed data.
* This should not be used to escape data going directly into an SQL query.
*
* @since 3.6.0
*
* @param string|array $value String or array of strings to slash.
* @return string|array Slashed $value
*/
function wp_slash( $value ) {
if ( is_array( $value ) ) {
foreach ( $value as $k => $v ) {
if ( is_array( $v ) ) {
$value[ $k ] = wp_slash( $v );
} else {
$value[ $k ] = addslashes( $v );
}
}
} else {
$value = addslashes( $value );
}
return $value;
}
shrugs