From 68d72e8a7cad9c4916fd7a614981c0058ee58ad2 Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Wed, 14 Dec 2022 13:02:14 -0700 Subject: [PATCH] Restore tag processor pointer when getting content --- lib/experimental/html/class-wp-html-processor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/experimental/html/class-wp-html-processor.php b/lib/experimental/html/class-wp-html-processor.php index d02376aa602705..e1caf7d4e7140c 100644 --- a/lib/experimental/html/class-wp-html-processor.php +++ b/lib/experimental/html/class-wp-html-processor.php @@ -87,6 +87,7 @@ public function get_content_inside_balanced_tags() { } $content = $this->content_inside_bookmarks( $start_name, $end_name ); + $this->seek( $start_name ); $this->release_bookmark( $start_name ); $this->release_bookmark( $end_name );