wp-includes/class-wp-xmlrpc-server.php:275Tests XMLRPC API by adding two numbers for client.
$argsint[]$0int
$1int
int|IXR_Error public function addTwoNumbers( $args ) { if ( ! is_array( $args ) || count( $args ) !== 2 || ! is_int( $args[0] ) || ! is_int( $args[1] ) ) { $this->error = new IXR_Error( 400, __( 'Invalid arguments passed to this XML-RPC method. Requires two integers.' ) ); return $this->error; } $number1 = $args[0]; $number2 = $args[1]; return $number1 + $number2; }Introduced in 1.5.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$args retyped from array to int[].verified against sourceint to int|IXR_Error.verified against sourcesrc/wp-includes/class-wp-xmlrpc-server.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.