diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index ba03ff44d7e53..67bccab7b35c6 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -1304,10 +1304,11 @@ public function serialize(): ?string { * @see static::serialize() * * @since 6.7.0 + * @since 6.9.0 Converted from protected to public method. * * @return string Serialization of token, or empty string if no serialization exists. */ - protected function serialize_token(): string { + public function serialize_token(): string { $html = ''; $token_type = $this->get_token_type();