Skip to content

Commit d3c1b41

Browse files
committed
HTML API: Call $this->is_tag_closer() in HTML Processor.
The HTML Processor had been calling the parent class `is_tag_closer()` method, but since visiting virtual nodes was introduced, it's important that all of the methods are called on the subclass. This patch fixes one issue identified where the parent method was called instead, and it fixes another case where the change from calling the parent method to the `$this` method was done improperly. Developed in #6726 Discussed in https://core.trac.wordpress.org/ticket/61348 Props jonsurrell. See #61348. Follow-up to [58304]. git-svn-id: https://develop.svn.wordpress.org/trunk@58365 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1626aac commit d3c1b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function next_tag( $query = null ) {
429429
continue;
430430
}
431431

432-
if ( ! $this::is_tag_closer() || $visit_closers ) {
432+
if ( ! $this->is_tag_closer() || $visit_closers ) {
433433
return true;
434434
}
435435
}
@@ -464,7 +464,7 @@ public function next_tag( $query = null ) {
464464
continue;
465465
}
466466

467-
if ( ! parent::is_tag_closer() || $visit_closers ) {
467+
if ( ! $this->is_tag_closer() || $visit_closers ) {
468468
return true;
469469
}
470470
}

0 commit comments

Comments
 (0)