diff --git a/wp-includes/IXR/class-IXR-client.php b/wp-includes/IXR/class-IXR-client.php index f66bcb30d6..480822316b 100644 --- a/wp-includes/IXR/class-IXR-client.php +++ b/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/wp-includes/IXR/class-IXR-clientmulticall.php b/wp-includes/IXR/class-IXR-clientmulticall.php index bc40efd771..5a10246dbd 100644 --- a/wp-includes/IXR/class-IXR-clientmulticall.php +++ b/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); diff --git a/wp-includes/version.php b/wp-includes/version.php index 681940b37d..0c57ac8c58 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48203'; +$wp_version = '5.5-alpha-48204'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.