Skip to content

Commit

Permalink
Update autoload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHolbrook authored Jun 1, 2017
1 parent 60fe799 commit 2b75791
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ function autoload( $directory ) {
continue;
}

// Don't load any files that are not the proper mime type
if ( 'text/x-php' !== mime_content_type( $real_path ) ) {
continue;
}

$filesize = filesize( $real_path );
// Don't include empty or negative sized files
if ( $filesize <= 0 ) {
Expand Down Expand Up @@ -105,4 +100,4 @@ function autoload( $directory ) {
require_once( $real_path );
}
}
}
}

0 comments on commit 2b75791

Please sign in to comment.