Skip to content

Commit 97954bb

Browse files
schlesseraclaude
andcommitted
Read the class files from the literal source directory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 24cccaa commit 97954bb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.maintenance/autoload.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
* precedence and silently run the other checkout's, possibly older, code.
1313
*/
1414

15-
foreach ( glob( __DIR__ . '/src/*.php' ) as $maintenance_class_file ) {
16-
require_once $maintenance_class_file;
15+
foreach ( (array) scandir( __DIR__ . '/src' ) as $maintenance_class_file ) {
16+
if ( '.php' === substr( (string) $maintenance_class_file, -4 ) ) {
17+
require_once __DIR__ . '/src/' . $maintenance_class_file;
18+
}
1719
}
1820

1921
require_once __DIR__ . '/bootstrap.php';

0 commit comments

Comments
 (0)