Skip to content

Commit 42bf6e6

Browse files
committed
Remove quick workaround for removing comments.
1 parent 340418b commit 42bf6e6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,6 @@ public function is_tag_closer() {
19161916
public function get_previous_text_chunk() {
19171917
if ( $this->bytes_already_parsed >= strlen( $this->html ) ) {
19181918
$chunk = substr( $this->html, $this->last_position->end === 0 ? 0 : $this->last_position->end + 1 );
1919-
$chunk = preg_replace( '/<[^a-z].*>/i', '', $chunk );
19201919
return html_entity_decode( $chunk, ENT_HTML5 | ENT_QUOTES | ENT_SUBSTITUTE );
19211920
}
19221921

0 commit comments

Comments
 (0)