Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion checks/class-title-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function check( $php_files, $css_files, $other_files ) {

// Look for <title> and </title> tags.
checkcount();
if ( ( false !== strpos( $file_content, '<title>' ) ) || ( false !== strpos( $file_content, '</title>' ) ) ) {
if ( ( is_string( $file_content ) && false !== strpos( $file_content, '<title>' ) ) || ( is_string( $file_content ) && false !== strpos( $file_content, '</title>' ) ) ) {
$filename = tc_filename( $file_path );
$grep = tc_grep( '<title>', $file_path );
$this->error[] = sprintf(
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Theme Check ===
Contributors: Otto42, pross, poena, dingo-d, acosmin, kafleg, joyously
Requires at Least: 3.7
Tested Up To: 6.6
Tested Up To: 6.7
Tags: themes, guidelines, wordpress.org
Stable tag: 20231220

Expand Down