Found wrong tag, remove from your style.css header.
-
It’s possible to get a WARNING message saying the wrong tag is used, when actually no tags have been defined. Since $tag is checked if it exists in an array of possible tags, can you add an extra check for empty and inform the user accordingly;
if(empty($tag) || $tag === null){ $this->error[] = '<span class="tc-lead tc-warning">'. __('WARNING','theme-check'). '</span>: ' . sprintf(__('Found wrong tag, tag is empty:<strong>%1$s</strong>. Add correct tags to your style.css header. see: <a href="https://codex.www.ads-software.com/Theme_Development">Theme Development</a>', 'theme-check'), $tag); $ret = false; } else if ( !in_array( strtolower( $tag ), $allowed_tags ) ) { // ... }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Found wrong tag, remove from your style.css header.’ is closed to new replies.