Skip to content

Commit 5c5f636

Browse files
committed
Fix strlen paren bug
1 parent 6849253 commit 5c5f636

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public static function parse_html5_dat_testfile( $filename ) {
235235
// Only take lines that look like tags
236236
// At least 3 chars (< + tag + >)
237237
// Tag must start with ascii alphabetic
238-
if ( strlen( $trimmed > 2 ) && '<' === $trimmed[0] && ctype_alpha( $trimmed[1] ) ) {
238+
if ( strlen( $trimmed ) > 2 && '<' === $trimmed[0] && ctype_alpha( $trimmed[1] ) ) {
239239
$test_dom .= $candidate;
240240
}
241241
}

0 commit comments

Comments
 (0)