We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51ef92c + 94e124a commit bfff3d3Copy full SHA for bfff3d3
1 file changed
classes/class-base.php
@@ -404,6 +404,7 @@ public function the_file( $files, $args = [], $get_contents = false ) {
404
if ( $get_contents ) {
405
return (string) \ob_get_clean();
406
}
407
+ break; // Exit the loop after the first file is found, covers the case when $get_contents is false.
408
409
410
return '';
0 commit comments