@@ -659,7 +659,7 @@ private function read_next_entity() {
659
659
$ this ->last_xml_cursor_outside_of_entity = $ this ->xml ->get_reentrancy_cursor ();
660
660
}
661
661
662
- $ tag = $ this ->xml ->get_qualified_tag ();
662
+ $ tag = $ this ->xml ->get_local_tag_name ();
663
663
/**
664
664
* Custom adjustment: the Accessibility WXR file uses a non-standard
665
665
* wp:wp_author tag.
@@ -734,14 +734,14 @@ private function read_next_entity() {
734
734
$ this ->last_opener_attributes = array ();
735
735
$ names = $ this ->xml ->get_attribute_qualified_names_with_prefix ( '' );
736
736
foreach ( $ names as $ name ) {
737
- $ this ->last_opener_attributes [ $ name ] = $ this ->xml ->get_attribute_by_qualified_name ( $ name );
737
+ $ this ->last_opener_attributes [ $ name ] = $ this ->xml ->get_attribute ( $ name );
738
738
}
739
739
$ this ->text_buffer = '' ;
740
740
741
741
$ is_site_option_opener = (
742
742
count ( $ this ->xml ->get_breadcrumbs () ) === 3 &&
743
743
$ this ->xml ->matches_breadcrumbs ( array ( 'rss ' , 'channel ' , '* ' ) ) &&
744
- array_key_exists ( $ this ->xml ->get_qualified_tag (), static ::KNOWN_SITE_OPTIONS )
744
+ array_key_exists ( $ this ->xml ->get_local_tag_name (), static ::KNOWN_SITE_OPTIONS )
745
745
);
746
746
if ( $ is_site_option_opener ) {
747
747
$ this ->last_xml_byte_offset_outside_of_entity = $ this ->xml ->get_token_byte_offset_in_the_input_stream ();
@@ -848,13 +848,13 @@ private function read_next_entity() {
848
848
* @return bool Whether a site_option entity was emitted.
849
849
*/
850
850
private function parse_site_option () {
851
- if ( ! array_key_exists ( $ this ->xml ->get_qualified_tag (), static ::KNOWN_SITE_OPTIONS ) ) {
851
+ if ( ! array_key_exists ( $ this ->xml ->get_local_tag_name (), static ::KNOWN_SITE_OPTIONS ) ) {
852
852
return false ;
853
853
}
854
854
855
855
$ this ->entity_type = 'site_option ' ;
856
856
$ this ->entity_data = array (
857
- 'option_name ' => static ::KNOWN_SITE_OPTIONS [ $ this ->xml ->get_qualified_tag () ],
857
+ 'option_name ' => static ::KNOWN_SITE_OPTIONS [ $ this ->xml ->get_local_tag_name () ],
858
858
'option_value ' => $ this ->text_buffer ,
859
859
);
860
860
$ this ->emit_entity ();
0 commit comments