Skip to content

Commit abc5817

Browse files
committed
chore: remove always-true check from insert_with_markers()
1 parent c608cc8 commit abc5817

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/misc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function insert_with_markers( $filename, $marker, $insertion ) {
205205

206206
if ( ! $found_marker ) {
207207
$pre_lines[] = $line;
208-
} elseif ( $found_marker && $found_end_marker ) {
208+
} elseif ( $found_end_marker ) {
209209
$post_lines[] = $line;
210210
} else {
211211
$existing_lines[] = $line;

0 commit comments

Comments
 (0)