--- a/wp/wp-includes/IXR/class-IXR-message.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/IXR/class-IXR-message.php Fri Sep 05 18:52:52 2025 +0200
@@ -93,9 +93,8 @@
// Set XML parser to take the case of tags in to account
xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);
// Set XML parser callback functions
- xml_set_object($this->_parser, $this);
- xml_set_element_handler($this->_parser, 'tag_open', 'tag_close');
- xml_set_character_data_handler($this->_parser, 'cdata');
+ xml_set_element_handler($this->_parser, array($this, 'tag_open'), array($this, 'tag_close'));
+ xml_set_character_data_handler($this->_parser, array($this, 'cdata'));
// 256Kb, parse in chunks to avoid the RAM usage on very large messages
$chunk_size = 262144;