Skip to content

Commit

Permalink
WPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Jan 16, 2024
1 parent 543a0b8 commit f502153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/html-api/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1601,8 +1601,8 @@ private function parse_next_tag() {
* `?` as the modifiable text, the `<!--->` needs to become `<!--?-->`, which
* involves inserting an additional `-` into the token after the modifiable text.
*/
$this->parser_state = self::STATE_COMMENT;
$this->token_length = $closer_at + $span_of_dashes + 1 - $this->token_starts_at;
$this->parser_state = self::STATE_COMMENT;
$this->token_length = $closer_at + $span_of_dashes + 1 - $this->token_starts_at;

// Only provide modifiable text if the token is long enough to contain it.
if ( $span_of_dashes >= 2 ) {
Expand Down

0 comments on commit f502153

Please sign in to comment.