diff --git a/wp-includes/atomlib.php b/wp-includes/atomlib.php index 91407cb987..0bcf09418b 100644 --- a/wp-includes/atomlib.php +++ b/wp-includes/atomlib.php @@ -157,14 +157,13 @@ class AtomParser { } $parser = xml_parser_create_ns(); - xml_set_object($parser, $this); - xml_set_element_handler($parser, "start_element", "end_element"); + xml_set_element_handler($parser, array($this, "start_element"), array($this, "end_element")); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,0); - xml_set_character_data_handler($parser, "cdata"); - xml_set_default_handler($parser, "_default"); - xml_set_start_namespace_decl_handler($parser, "start_ns"); - xml_set_end_namespace_decl_handler($parser, "end_ns"); + xml_set_character_data_handler($parser, array($this, "cdata")); + xml_set_default_handler($parser, array($this, "_default")); + xml_set_start_namespace_decl_handler($parser, array($this, "start_ns")); + xml_set_end_namespace_decl_handler($parser, array($this, "end_ns")); $this->content = ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index b0331a6681..a8c957a33f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59061'; +$wp_version = '6.7-alpha-59062'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.