From ca69d670419688aedf3b6fe7f5ca2e734fafd692 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@12961 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 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;