diff --git a/src/wp-includes/IXR/class-IXR-client.php b/src/wp-includes/IXR/class-IXR-client.php index f66bcb30d6..480822316b 100644 --- a/src/wp-includes/IXR/class-IXR-client.php +++ b/src/wp-includes/IXR/class-IXR-client.php @@ -58,9 +58,13 @@ class IXR_Client self::__construct( $server, $path, $port, $timeout ); } - function query() + /** + * @since 1.5.0 + * @since 5.5.0 Formalized the existing `...$args` parameter by adding it + * to the function signature. + */ + function query( ...$args ) { - $args = func_get_args(); $method = array_shift($args); $request = new IXR_Request($method, $args); $length = $request->getLength(); diff --git a/src/wp-includes/IXR/class-IXR-clientmulticall.php b/src/wp-includes/IXR/class-IXR-clientmulticall.php index bc40efd771..5a10246dbd 100644 --- a/src/wp-includes/IXR/class-IXR-clientmulticall.php +++ b/src/wp-includes/IXR/class-IXR-clientmulticall.php @@ -25,9 +25,13 @@ class IXR_ClientMulticall extends IXR_Client self::__construct( $server, $path, $port ); } - function addCall() + /** + * @since 1.5.0 + * @since 5.5.0 Formalized the existing `...$args` parameter by adding it + * to the function signature. + */ + function addCall( ...$args ) { - $args = func_get_args(); $methodName = array_shift($args); $struct = array( 'methodName' => $methodName, @@ -36,7 +40,12 @@ class IXR_ClientMulticall extends IXR_Client $this->calls[] = $struct; } - function query() + /** + * @since 1.5.0 + * @since 5.5.0 Formalized the existing `...$args` parameter by adding it + * to the function signature. + */ + function query( ...$args ) { // Prepare multicall, then call the parent::query() method return parent::query('system.multicall', $this->calls);