From 5539653109c91b47665296d261e019f3f4ef1955 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 4 Feb 2010 23:05:13 +0000 Subject: [PATCH] Use addslashes() instead of esc_sql() in add_magic_quotes() to avoid the pretense of DB association. props miqrogroove git-svn-id: https://develop.svn.wordpress.org/trunk@12961 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1f5d51d464..5b5c0e486b 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;