Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions checks/class-title-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down