In wp_xmlrpc_server
, only allow __call()
to run against ->_multisite_getUsersBlogs()
.
See #30891. git-svn-id: https://develop.svn.wordpress.org/trunk@31149 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cd3fde69bb
commit
f6d7c5e52f
@ -161,8 +161,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
* @return mixed|bool Return value of the callback, false otherwise.
|
* @return mixed|bool Return value of the callback, false otherwise.
|
||||||
*/
|
*/
|
||||||
public function __call( $name, $arguments ) {
|
public function __call( $name, $arguments ) {
|
||||||
|
if ( '_multisite_getUsersBlogs' === $name ) {
|
||||||
return call_user_func_array( array( $this, $name ), $arguments );
|
return call_user_func_array( array( $this, $name ), $arguments );
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public function serve_request() {
|
public function serve_request() {
|
||||||
$this->IXR_Server($this->methods);
|
$this->IXR_Server($this->methods);
|
||||||
|
Loading…
Reference in New Issue
Block a user