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
This commit is contained in:
Mark Jaquith 2010-02-04 23:05:13 +00:00
parent e96e6f0d8c
commit 5539653109
1 changed files with 1 additions and 1 deletions

View File

@ -1390,7 +1390,7 @@ function add_magic_quotes( $array ) {
if ( is_array( $v ) ) { if ( is_array( $v ) ) {
$array[$k] = add_magic_quotes( $v ); $array[$k] = add_magic_quotes( $v );
} else { } else {
$array[$k] = esc_sql( $v ); $array[$k] = addslashes( $v );
} }
} }
return $array; return $array;