mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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 https://github.com/WordPress/wordpress-develop/pull/6726 Discussed in https://core.trac.wordpress.org/ticket/61348 Props jonsurrell. See #61348. Follow-up to [58304]. Built from https://develop.svn.wordpress.org/trunk@58365 git-svn-id: http://core.svn.wordpress.org/trunk@57814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cf2a88a397
commit
8683a502a0
@ -429,7 +429,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( ! $this::is_tag_closer() || $visit_closers ) {
|
||||
if ( ! $this->is_tag_closer() || $visit_closers ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -464,7 +464,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( ! parent::is_tag_closer() || $visit_closers ) {
|
||||
if ( ! $this->is_tag_closer() || $visit_closers ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6-beta1-58364';
|
||||
$wp_version = '6.6-beta1-58365';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user