Title: [Plugin: Theme-Check] Invalid warnings
Last modified: August 20, 2016

---

# [Plugin: Theme-Check] Invalid warnings

 *  [ewl](https://wordpress.org/support/users/ewl/)
 * (@ewl)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-theme-check-invalid-warnings/)
 * I’m getting a bunch of warnings from theme check that don’t appear to be true:
 *     ```
       REQUIRED: Could not find wp_list_comments. See: wp_list_comments
        <?php wp_list_comments( $args ); ?>
       REQUIRED: Could not find wp_link_pages. See: wp_link_pages
        <?php wp_link_pages( $args ); ?>
       REQUIRED: Could not find wp_head. See: wp_head
        <?php wp_head(); ?>
       REQUIRED: Could not find register_sidebar() or register_sidebars(). See: register_sidebar
        <?php register_sidebar( $args ); ?>
       REQUIRED: Could not find dynamic_sidebar. See: dynamic_sidebar
        <?php dynamic_sidebar( $index ); ?>
       REQUIRED: Could not find comments_template. See: comments_template
        <?php comments_template( $file, $separate_comments ); ?>
       REQUIRED: Could not find comment_form. See: comment_form
        <?php comment_form(); ?>
       REQUIRED: Could not find body_class call in body tag. See: body_class
        <?php body_class( $class ); ?>
       REQUIRED: Could not find add_theme_support( 'automatic-feed-links' ). See: add_theme_support
        <?php add_theme_support( $feature ); ?>
       ```
   
 * Here are a couple of greps from my theme to show what I’m talking about:
 *     ```
       comments.php:                                                   <?php wp_list_comments (array ('callback' => array ($ewlFramework, 'commentCallback'))); ?>
   
       content-front-page.php:                                                         wp_link_pages (array ('before' => '<div class="page-link"><span>' . __ ('Pages', EWL_FRAMEWORK_TEXTDOMAIN) . ':</span>', 'after' => '</div>'));
       content-single.php:                                                             wp_link_pages (array ('before' => '<div class="page-link"><span>' . __ ('Pages', EWL_FRAMEWORK_TEXTDOMAIN) . ':</span>', 'after' => '</div>'));
       content.php:                                                            wp_link_pages (array ('before' => '<div class="page-link"><span>' . __ ('Pages', EWL_FRAMEWORK_TEXTDOMAIN) . ':</span>', 'after' => '</div>'));
   
       header.php:     <?php wp_head (); ?>
   
       framework/Framework.php:                if (function_exists ('register_sidebar')) {
       framework/Framework.php:                        register_sidebar (array (
       framework/Framework.php:                                register_sidebar (array (
       ```
   
 * [http://wordpress.org/extend/plugins/theme-check/](http://wordpress.org/extend/plugins/theme-check/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-theme-check-invalid-warnings/#post-2534361)
 * Theme check isn’t particularly robust in all cases.
 * For your case, it wants the function names to be immediately followed by the 
   parenth. No space between wp_list_comments and the (, basically.
 * This is how the WordPress Coding Standards document recommends things. See here:
   
   [http://codex.wordpress.org/WordPress_Coding_Standards#Space_Usage](http://codex.wordpress.org/WordPress_Coding_Standards#Space_Usage)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Theme-Check] Invalid warnings’ is closed to new replies.

 * ![](https://ps.w.org/theme-check/assets/icon-128x128.png?rev=972579)
 * [Theme Check](https://wordpress.org/plugins/theme-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-check/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-check/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-theme-check-invalid-warnings/#post-2534361)
 * Status: not resolved