diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php index 39196499fa..4bdb75fcac 100644 --- a/wp-includes/html-api/class-wp-html-processor.php +++ b/wp-includes/html-api/class-wp-html-processor.php @@ -464,7 +464,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { * @return static|null The created processor if successful, otherwise null. */ public function create_fragment_at_current_node( string $html ) { - if ( $this->get_token_type() !== '#tag' ) { + if ( $this->get_token_type() !== '#tag' || $this->is_tag_closer() ) { return null; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0aee31198d..2d926d0b9c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59449'; +$wp_version = '6.8-alpha-59450'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.