Title: Theme Check problem
Last modified: August 22, 2016

---

# Theme Check problem

 *  Resolved [misharnet](https://wordpress.org/support/users/misharnet/)
 * (@misharnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/)
 * I am creating my first WP Theme and I would like to upload it to wordpress.org.
   That’s why I use, as recommended, Theme Check Plugin.
 * I resolved other issues, except these two.
    1. **REQUIRED: The <title> tags can
   only contain a call to wp_title(). Use the wp_title filter to modify the output**
 * I understand that is related to title tag in header.php, am I wrong?
    This is
   my header:
 *     ```
       <!doctype html>
       <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
       <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
       <!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
       <!--[if IE 8]>    <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
       <!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
       <!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
   
       <head>
       	<meta charset="<?php bloginfo( 'charset' ); ?>" />
       	<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
       	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title><?php wp_title( '|', true, 'right' ); ?></title>
       	<meta http-equiv="cleartype" content="on">
   
       	<!-- Responsive and mobile friendly stuff -->
       	<meta name="HandheldFriendly" content="True">
       	<meta name="MobileOptimized" content="320">
       	<meta name="viewport" content="width=device-width, initial-scale=1">
   
       	<link rel="profile" href="http://gmpg.org/xfn/11" />
       	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
   
       	<?php wp_head(); ?>
       </head>
       ```
   
 * What is wrong with it?
 * 2. **REQUIRED: screen_icon() found in the file class-tgm-plugin-activation.php.
   Deprecated since version 3.8.**
 *     ```
       Line 381: screen_icon( apply_filters( 'tgmpa_default_screen_icon', 'themes' ) );
   
       Line 1584: screen_icon( apply_filters( 'tgmpa_default_screen_icon', 'themes' ) );
       ```
   
 * I understand that, but I don’t know with what should I replace it?
 * I am really greatfull for your potential answers.

Viewing 15 replies - 16 through 30 (of 31 total)

[←](https://wordpress.org/support/topic/theme-check-problem/?output_format=md) [1](https://wordpress.org/support/topic/theme-check-problem/?output_format=md)
2 [3](https://wordpress.org/support/topic/theme-check-problem/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/theme-check-problem/page/3/?output_format=md)

 *  [devonhg](https://wordpress.org/support/users/devonhg/)
 * (@devonhg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373652)
 * I’m glad we figured this out Samuel. An update that at the very least listed 
   the number of files found that contain title would do wonders in clarifying that
   fact, there was no way for me to know just from the error that it checked all
   files in the directory. Wouldn’t be that hard add a counter to it, I would do
   it myself but I don’t want to step on your toes.
 * Either way though, wonderful plugin. Glad you guys built it. That online theme
   checker though, themecheck.org, something really useful that it does is check
   for optional files and lets you know if you don’t have them. If you could implement
   that in your plugin that would be amazing.
 * Thank you Samuel, happy coding!
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373654)
 * The themecheck.org stuff is not related to the plugin at all.
 * misharnet: it checks all files in the theme’s directory and subdirectories. It’s
   really quite straightforward in this respect. The purpose of the plugin is to
   check themes for issues that you might have when uploading the theme to our directory
   here. If you have random unrelated files in your theme, then it will check them
   too, just like as if you zipped up the entire directory when submitting it to
   the theme submission form.
 *  Thread Starter [misharnet](https://wordpress.org/support/users/misharnet/)
 * (@misharnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373657)
 * I understand that. Thanks. don’t get me wrong, I am not assuming that there’s
   might be any problem with your plugin, I am sure that it’s up to me. It is just
   a little bit frustrating that I have resolved all the other issues, and it’s 
   takimg me so long to resolve this one. I’ll handle it somehow.
 *  [devonhg](https://wordpress.org/support/users/devonhg/)
 * (@devonhg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373659)
 * It’s a great plugin, the only issue I have with it is that the title error does
   not specify that it’s checking multiple files, it’s a beginners trap.
 *  Thread Starter [misharnet](https://wordpress.org/support/users/misharnet/)
 * (@misharnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373660)
 * I found what’s wrog! There was one line with <title></title> tag in TinyMCE folder.
   I remove the folder and now my theme passed the check!
 *  Thread Starter [misharnet](https://wordpress.org/support/users/misharnet/)
 * (@misharnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373661)
 * It was in the window_post.php on line 11. If you use TinyMCE check that file.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373673)
 * WordPress includes TinyMCE itself. You shouldn’t need to include that code in
   your theme.
 *  [Guillaume Baudhuin](https://wordpress.org/support/users/peoleo/)
 * (@peoleo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373720)
 * I’m the author of themecheck.org. I feel very bad about what you say, Samuel.
   What makes you think we are malicious ? This is absolutely wrong.
    We’ve already
   been in touch about themecheck.org and you never told me you felt inconfortable
   with the name themecheck.org. We made a lot of improvements to the code of the
   plugin (e.g. : comments are filtered 🙂 ) and made a web site with it. The code
   of the site is open source and available to every one on github. I also contacted
   you to give you patches for the plugin. What’s wrong ?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373722)
 * [@guillaume](https://wordpress.org/support/users/guillaume/) Baudhuin I have 
   no emails from you in my archives, so if you did send anything to me, then I 
   no longer have it.
 * However, had you asked me first, then I would have told you not to create that
   site or at least not to use the plugin’s name for it. That site is not an official
   site, and using the same name makes a clear implication that it is official in
   some way. Look above, people used it and thought that what it said mattered, 
   when it did not.
 * There’s nothing wrong with using the theme-check code or improving upon it. However,
   you need to make it much more clear that your site is not official, not part 
   of the plugin, and not part of the wordpress.org system.
 *  [Guillaume Baudhuin](https://wordpress.org/support/users/peoleo/)
 * (@peoleo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373724)
 * (I mailed you at your ottodestruct mail and you responded on 2014/04/03)
 * I didn’t ask you first because I didn’t realize it would have these consequences,
   and looking at your message on wp tavern in march (just after the launch of themecheck.
   org), probably you neither ([here](http://wptavern.com/themecheck-org-a-free-wordpress-theme-validation-service#comment-53462)):
 * > I wouldn’t be too hard on the service[…]I neither endorse the service nor disparage
   > it.
 * I want every one to be happy and themecheck.org’s visitors know where they are,
   so i will add a clear mention on themecheck.org homepage that it is not official,
   not part of the plugin, and not part of the wordpress.org system.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373725)
 * Fair enough. Clearly there’s some confusion there, is all. Been seeing a lot 
   of that lately. It’s only mildly annoying. 🙂
 *  [Guillaume Baudhuin](https://wordpress.org/support/users/peoleo/)
 * (@peoleo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373726)
 * okay. i feel mildly better 🙂
 *  [CyberAbel](https://wordpress.org/support/users/cyberabel/)
 * (@cyberabel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373775)
 * Hello misharnet, i have fixed that specific issue with my wordpress theme too,
   but not in the way you resolved it. Example of my theme <title> tags:
 * <title><?php $theme->meta_title(); ?></title> original
 * <wp_title><?php $theme->meta_title(); ?></wp_title> new
 * And that helped me got my trouble fixed! And [Theme Check](https://wordpress.org/plugins/theme-check/)
   is awesome! Cheers.
 *  [CyberAbel](https://wordpress.org/support/users/cyberabel/)
 * (@cyberabel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373776)
 * Update! Now when i update those it gives the opposite issue:
 * REQUIRED: The theme needs to have <title> tags, ideally in the header.php file.
   Any additional thoughts would be appreciated! Cheers.
 *  [LebCit](https://wordpress.org/support/users/lebcit/)
 * (@lebcit)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/theme-check-problem/page/2/#post-5373793)
 * Hello everyone,
 * I had the same issue with an underscores generated theme and this is how i solved
   it.
    In extras.php on line 80 you’ll find `echo '<title>' . wp_title( '|', false,'
   right' ) . "</title>\n";` just replace it with
 *     ```
       ?>
       <title><?php wp_title( '|', true, 'right' ); ?></title>
       <?php
       ```
   
 * That’s all folks 😉

Viewing 15 replies - 16 through 30 (of 31 total)

[←](https://wordpress.org/support/topic/theme-check-problem/?output_format=md) [1](https://wordpress.org/support/topic/theme-check-problem/?output_format=md)
2 [3](https://wordpress.org/support/topic/theme-check-problem/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/theme-check-problem/page/3/?output_format=md)

The topic ‘Theme Check problem’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 31 replies
 * 9 participants
 * Last reply from: [NewWpPlugins](https://wordpress.org/support/users/newwpplugins/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/theme-check-problem/page/3/#post-5373799)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
