There was a ticket for this on github. Has that been patched yet?
It’s here:
https://github.com/Otto42/theme-check/issues/73
Does this mean it is not my issue? And, would a single <title> in a PHP comment cause this error as well?
So, does that patch not fix your problem?
The patch is already included in the version of Theme Check I am using.
Would a single <title> in a PHP comment cause this error as well?
Probably, because we don’t strip comments for all the checks.
Okay. I’m still getting the error, and I have one last idea on why. Would this code cause it somehow?
if ( ! function_exists( 'myahts_render_title' ) ) {
function myahts_render_title() {
?>
<title><?php wp_title( '-', true, 'right' ); ?></title>
<?php
}
add_action( 'wp_head', 'myahts_render_title' );
}
Thank you for your help!
Yes, that code would cause it, because it’s adding the title tag to the head in a not-allowed way.
Okay, it was some inherited code. Thanks for helping me track down the problem.
Thank you!