diff --git src/wp-includes/IXR/class-IXR-client.php src/wp-includes/IXR/class-IXR-client.php
index f66bcb30d6..549e494cf6 100644
|
|
class IXR_Client |
58 | 58 | self::__construct( $server, $path, $port, $timeout ); |
59 | 59 | } |
60 | 60 | |
61 | | function query() |
| 61 | function query( ...$args ) |
62 | 62 | { |
63 | | $args = func_get_args(); |
64 | 63 | $method = array_shift($args); |
65 | 64 | $request = new IXR_Request($method, $args); |
66 | 65 | $length = $request->getLength(); |
diff --git src/wp-includes/IXR/class-IXR-clientmulticall.php src/wp-includes/IXR/class-IXR-clientmulticall.php
index bc40efd771..627ab881f3 100644
|
|
class IXR_ClientMulticall extends IXR_Client |
25 | 25 | self::__construct( $server, $path, $port ); |
26 | 26 | } |
27 | 27 | |
28 | | function addCall() |
| 28 | function addCall( ...$args ) |
29 | 29 | { |
30 | | $args = func_get_args(); |
31 | 30 | $methodName = array_shift($args); |
32 | 31 | $struct = array( |
33 | 32 | 'methodName' => $methodName, |
… |
… |
class IXR_ClientMulticall extends IXR_Client |
36 | 35 | $this->calls[] = $struct; |
37 | 36 | } |
38 | 37 | |
39 | | function query() |
| 38 | function query( ...$args ) |
40 | 39 | { |
41 | 40 | // Prepare multicall, then call the parent::query() method |
42 | 41 | return parent::query('system.multicall', $this->calls); |