From 95756e5ce2c10c3cb0c821f1b56cf9b69210c019 Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Fri, 20 Sep 2024 13:40:15 -0700 Subject: [PATCH] Call the new `get_full_comment_text()` --- .../html-api/class-wp-html-processor.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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 532724783c112..9294ac2915b00 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -1156,22 +1156,8 @@ protected function serialize_token(): string { break; case '#funky-comment': - $html .= ""; - break; - case '#comment': - switch ( $this->get_comment_type() ) { - case WP_HTML_Tag_Processor::COMMENT_AS_CDATA_LOOKALIKE: - $html .= ""; - break; - - case WP_HTML_Tag_Processor::COMMENT_AS_PI_NODE_LOOKALIKE: - $html .= ""; - break; - - default: - $html .= ""; - } + $html .= ""; break; case '#cdata-section':