Don't escape objects.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
210192f822
commit
3882320f61
|
@ -133,6 +133,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
foreach ($array as $k => $v) {
|
foreach ($array as $k => $v) {
|
||||||
if (is_array($v)) {
|
if (is_array($v)) {
|
||||||
$this->escape($array[$k]);
|
$this->escape($array[$k]);
|
||||||
|
} else if (is_object($v)) {
|
||||||
|
//skip
|
||||||
} else {
|
} else {
|
||||||
$array[$k] = $wpdb->escape($v);
|
$array[$k] = $wpdb->escape($v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue