In `wp_xmlrpc_server`, only allow `__call()` to run against `->_multisite_getUsersBlogs()`.
See #30891. Built from https://develop.svn.wordpress.org/trunk@31149 git-svn-id: http://core.svn.wordpress.org/trunk@31130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ed4e7b01d4
commit
0e84d59de5
|
@ -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);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31148';
|
$wp_version = '4.2-alpha-31149';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue