diff --git a/checks/class-title-check.php b/checks/class-title-check.php index 2d7bae6..b09c24b 100644 --- a/checks/class-title-check.php +++ b/checks/class-title-check.php @@ -29,10 +29,12 @@ class Title_Check implements themecheck { */ public function check( $php_files, $css_files, $other_files ) { - $php = implode( ' ', $php_files ); - foreach ( $php_files as $file_path => $file_content ) { + if ( empty( $file_content ) ) { + continue; + } + // Check whether there is a call to wp_title(). checkcount(); if ( preg_match( '/\bwp_title\b/', $file_content ) ) {