Skip to content

Commit

Permalink
Call the new get_full_comment_text()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Sep 20, 2024
1 parent 6167887 commit 95756e5
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1156,22 +1156,8 @@ protected function serialize_token(): string {
break;

case '#funky-comment':
$html .= "<!--{$this->get_modifiable_text()}-->";
break;

case '#comment':
switch ( $this->get_comment_type() ) {
case WP_HTML_Tag_Processor::COMMENT_AS_CDATA_LOOKALIKE:
$html .= "<!--[CDATA[{$this->get_modifiable_text()}]]-->";
break;

case WP_HTML_Tag_Processor::COMMENT_AS_PI_NODE_LOOKALIKE:
$html .= "<!--?{$this->get_tag()}{$this->get_modifiable_text()}?-->";
break;

default:
$html .= "<!--{$this->get_modifiable_text()}-->";
}
$html .= "<!--{$this->get_full_comment_text()}-->";
break;

case '#cdata-section':
Expand Down

0 comments on commit 95756e5

Please sign in to comment.