From a415c29efee45520ae252d2aa28f1083a521cd7b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:56:49 +0200 Subject: Adding upstream version 6.4.3+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/html-api/class-wp-html-token.php | 106 +++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 wp-includes/html-api/class-wp-html-token.php (limited to 'wp-includes/html-api/class-wp-html-token.php') diff --git a/wp-includes/html-api/class-wp-html-token.php b/wp-includes/html-api/class-wp-html-token.php new file mode 100644 index 0000000..86dd765 --- /dev/null +++ b/wp-includes/html-api/class-wp-html-token.php @@ -0,0 +1,106 @@ +bookmark_name = $bookmark_name; + $this->node_name = $node_name; + $this->has_self_closing_flag = $has_self_closing_flag; + $this->on_destroy = $on_destroy; + } + + /** + * Destructor. + * + * @since 6.4.0 + */ + public function __destruct() { + if ( is_callable( $this->on_destroy ) ) { + call_user_func( $this->on_destroy, $this->bookmark_name ); + } + } + + /** + * Wakeup magic method. + * + * @since 6.4.2 + */ + public function __wakeup() { + throw new \LogicException( __CLASS__ . ' should never be unserialized' ); + } +} -- cgit v1.2.3