diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1f5d51d46..5b5c0e486 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1390,7 +1390,7 @@ function add_magic_quotes( $array ) { if ( is_array( $v ) ) { $array[$k] = add_magic_quotes( $v ); } else { - $array[$k] = esc_sql( $v ); + $array[$k] = addslashes( $v ); } } return $array;