diff --git a/src/wp-includes/IXR/class-IXR-message.php b/src/wp-includes/IXR/class-IXR-message.php index 6c1279e69c..2b27293f52 100644 --- a/src/wp-includes/IXR/class-IXR-message.php +++ b/src/wp-includes/IXR/class-IXR-message.php @@ -144,7 +144,7 @@ class IXR_Message function tag_open($parser, $tag, $attr) { $this->_currentTagContents = ''; - $this->currentTag = $tag; + $this->_currentTag = $tag; switch($tag) { case 'methodCall': case 'methodResponse': diff --git a/tests/phpunit/tests/xmlrpc/message.php b/tests/phpunit/tests/xmlrpc/message.php new file mode 100644 index 0000000000..ac68552902 --- /dev/null +++ b/tests/phpunit/tests/xmlrpc/message.php @@ -0,0 +1,34 @@ +1' ); + $this->assertTrue( $message->parse() ); + $this->assertSame( 'methodResponse', $message->messageType ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase + $this->assertSame( array( '1' ), $message->params ); + } + +}