Skip to content

Commit 8eafbc9

Browse files
committed
Remove more length checks
1 parent 1e79075 commit 8eafbc9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,9 +1581,6 @@ private function skip_script_data(): bool {
15811581
* "<script123" should not end a script region even though
15821582
* "<script" is found within the text.
15831583
*/
1584-
if ( $at + 6 >= $doc_length ) {
1585-
continue;
1586-
}
15871584
$at += 6;
15881585
$c = $html[ $at ];
15891586
if ( ' ' !== $c && "\t" !== $c && "\r" !== $c && "\n" !== $c && '/' !== $c && '>' !== $c ) {

0 commit comments

Comments
 (0)