close
Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove space
  • Loading branch information
josephscott committed Jan 8, 2026
commit 5dc510d9ad9ade573e160fd6bd12c78839aed318
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-xmlrpc-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function sayHello() {
*/
public function addTwoNumbers( $args ) {
if ( ! is_int( $args[0] ) || ! is_int( $args[1] ) ) {
Comment thread
josephscott marked this conversation as resolved.
Outdated
$this->error = new IXR_Error( 400, __( 'Invalid arguments passed to this XML-RPC method. Requires two integers.' ) );
$this->error = new IXR_Error( 400, __( 'Invalid arguments passed to this XML-RPC method. Requires two integers.' ) );
return $this->error;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/xmlrpc/demo/addTwoNumbers.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function test_add_two_numbers_with_invalid_arguments( $a, $b, $message )
$this->assertIXRError( $result, $message );
Comment thread
josephscott marked this conversation as resolved.
Outdated
$this->assertSame( 400, $result->code, $message );
$this->assertSame(
'Invalid arguments passed to this XML-RPC method. Requires two integers.',
'Invalid arguments passed to this XML-RPC method. Requires two integers.',
$result->message,
$message
);
Expand Down
Loading