Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
Better file name detections for generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyrob committed Feb 26, 2021
1 parent 280964e commit ee4f4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-hashes-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$checksums = json_decode( $checksums, true );
$hashes = "<?php\n" . '$filehashes = array(' . "\n";
foreach ( $checksums['checksums'] as $file => $checksum ) {
if ( ! strstr( $file, 'wp-content' ) ) {
if ( stripos( $file, 'wp-content' ) !== 0 ) {
$hashes .= "\t'" . $file . "' => '" . $checksum . "',\n";
}
}
Expand Down

0 comments on commit ee4f4bc

Please sign in to comment.