Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated issue #476 tested in WP v6.7.1 #477

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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
Loading