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
This commit is contained in:
parent
7b81cdc30f
commit
ca69d67041
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue