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:
parent
e96e6f0d8c
commit
5539653109
|
@ -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