mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Avoid saving slashed data in XML-RPC's wp.setOptions.
props danielbachhuber. fixes #22936. git-svn-id: https://develop.svn.wordpress.org/trunk@27551 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3244,7 +3244,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
if ( $this->blog_options[$o_name]['readonly'] == true )
|
||||
continue;
|
||||
|
||||
update_option( $this->blog_options[$o_name]['option'], $o_value );
|
||||
update_option( $this->blog_options[$o_name]['option'], wp_unslash( $o_value ) );
|
||||
}
|
||||
|
||||
//Now return the updated values
|
||||
|
||||
Reference in New Issue
Block a user