diff --git a/src/parsers/class-wxr-parser-xml.php b/src/parsers/class-wxr-parser-xml.php index 0aa6631..07be15d 100644 --- a/src/parsers/class-wxr-parser-xml.php +++ b/src/parsers/class-wxr-parser-xml.php @@ -90,9 +90,8 @@ public function parse( $file ) { $xml = xml_parser_create( 'UTF-8' ); xml_parser_set_option( $xml, XML_OPTION_SKIP_WHITE, 1 ); xml_parser_set_option( $xml, XML_OPTION_CASE_FOLDING, 0 ); - xml_set_object( $xml, $this ); - xml_set_character_data_handler( $xml, 'cdata' ); - xml_set_element_handler( $xml, 'tag_open', 'tag_close' ); + xml_set_character_data_handler( $xml, array( $this, 'cdata' ) ); + xml_set_element_handler( $xml, array( $this, 'tag_open' ), array( $this, 'tag_close' ) ); if ( ! xml_parse( $xml, file_get_contents( $file ), true ) ) { $current_line = xml_get_current_line_number( $xml ); diff --git a/src/readme.txt b/src/readme.txt index cb3e13c..b26916e 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -44,6 +44,7 @@ If you would prefer to do things manually then follow these instructions: * Update compatibility tested-up-to to WordPress 6.7. * Update call to `post_exists` to include `post_type` in the query +* PHP 8.4 compatibility fixes. = 0.8.2 =