diff --git a/wp-includes/html-api/class-wp-html-open-elements.php b/wp-includes/html-api/class-wp-html-open-elements.php
index 505c1595f4..7f148a7af7 100644
--- a/wp-includes/html-api/class-wp-html-open-elements.php
+++ b/wp-includes/html-api/class-wp-html-open-elements.php
@@ -517,4 +517,13 @@ class WP_HTML_Open_Elements {
( $this->pop_handler )( $item );
}
}
+
+ /**
+ * Wakeup magic method.
+ *
+ * @since 6.6.0
+ */
+ public function __wakeup() {
+ throw new \LogicException( __CLASS__ . ' should never be unserialized' );
+ }
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 436b7dc5f9..170f3013ec 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.6-beta3-58440';
+$wp_version = '6.6-beta3-58441';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.