Code Modernisation: Replace call_user_func_array() in various __call() methods with dynamic function calls.
The callback in these functions is always checked against a limited list of valid callbacks that can be safely changed to dynamic function calls. Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46144 git-svn-id: http://core.svn.wordpress.org/trunk@45956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -177,7 +177,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*/
|
||||
public function __call( $name, $arguments ) {
|
||||
if ( '_multisite_getUsersBlogs' === $name ) {
|
||||
return call_user_func_array( array( $this, $name ), $arguments );
|
||||
return $this->_multisite_getUsersBlogs( ...$arguments );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user