Skip to content

Commit

Permalink
Define the $php, $css and, $other variables as an array to avoi…
Browse files Browse the repository at this point in the history
…d a PHP Notice.
  • Loading branch information
dd32 authored Jun 18, 2021
1 parent c822bbd commit bba5fef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checkbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function run_themechecks_against_theme( $theme, $theme_slug ) {
true /* include parent theme files */
);

$php = $css = $other = array();
foreach ( $files as $filename ) {
if ( substr( $filename, -4 ) === '.php' ) {
$php[ $filename ] = file_get_contents( $filename );
Expand Down

0 comments on commit bba5fef

Please sign in to comment.