mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
XML-RPC: Recursively escape arrays as before, to avoid stomping nested objects. fixes #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@24731 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -223,7 +223,9 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
return wp_slash( $data );
|
||||
|
||||
foreach ( $data as &$v ) {
|
||||
if ( ! is_object( $v ) )
|
||||
if ( is_array( $v ) )
|
||||
$this->escape( $v );
|
||||
elseif ( ! is_object( $v ) )
|
||||
$v = wp_slash( $v );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user