diff --git a/api-hashes-generator.php b/api-hashes-generator.php index 51b366e..91ef868 100644 --- a/api-hashes-generator.php +++ b/api-hashes-generator.php @@ -19,7 +19,7 @@ $checksums = json_decode( $checksums, true ); $hashes = " $checksum ) { - if ( ! strstr( $file, 'wp-content' ) ) { + if ( stripos( $file, 'wp-content' ) !== 0 ) { $hashes .= "\t'" . $file . "' => '" . $checksum . "',\n"; } }