Skip to content

Commit 53ae4e0

Browse files
author
Paul Bearne
committed
Ensure empty marker lines are excluded in src/wp-admin/includes/misc.php
1 parent 7f341bd commit 53ae4e0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wp-admin/includes/misc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ function extract_from_markers( $filename, $marker ) {
8686
continue;
8787
}
8888

89-
$result[] = $markerline;
89+
if ( '' !== $markerline ) {
90+
$result[] = $markerline;
91+
}
9092
}
9193

9294
if ( str_contains( $markerline, '# BEGIN ' . $marker ) ) {

0 commit comments

Comments
 (0)