| @@ -195,9 +195,9 @@ | ||
| 195 | 195 | if ( \is_array( $temp_files ) ) { |
| 196 | 196 | foreach ( $temp_files as $temp_file ) { |
| 197 | 197 | // Only include filenames that DO NOT contain the excluded string and ARE NOT on the scandir result blacklist. |
| 198 | 198 | if ( \is_string( $exclude_str ) && false !== \mb_strpos( $temp_file, $exclude_str ) |
| 199 | - || $temp_file[0] === '.' | |
| 199 | + || '.' === $temp_file[0] | |
| 200 | 200 | || \in_array( $temp_file, $blacklist, true ) |
| 201 | 201 | ) { |
| 202 | 202 | continue; |
| 203 | 203 | } |