Skip to content

Commit b7b2876

Browse files
committed
Fix off-by-1
1 parent 57e737c commit b7b2876

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ public function has_self_closing_flag() {
26872687
* <figure />
26882688
* ^ this appears one character before the end of the closing ">".
26892689
*/
2690-
return '/' === $this->html[ $this->token_starts_at + $this->token_length - 1 ];
2690+
return '/' === $this->html[ $this->token_starts_at + $this->token_length - 2 ];
26912691
}
26922692

26932693
/**

0 commit comments

Comments
 (0)