Skip to content

Commit bfff3d3

Browse files
authored
Merge pull request #715 from ProgressPlanner/filip/v110/fix-multiple-file-includes
Dont include both file and it's fallback in the 'the_file"
2 parents 51ef92c + 94e124a commit bfff3d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

classes/class-base.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ public function the_file( $files, $args = [], $get_contents = false ) {
404404
if ( $get_contents ) {
405405
return (string) \ob_get_clean();
406406
}
407+
break; // Exit the loop after the first file is found, covers the case when $get_contents is false.
407408
}
408409
}
409410
return '';

0 commit comments

Comments
 (0)