__( 'See: https://codex.wordpress.org/HTML_to_XHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"?>
', 'theme-check' ), 'wp_footer\s*\(' => __( 'See: wp_footer
 <?php wp_footer(); ?>
', 'theme-check' ), 'wp_head\s*\(' => __( 'See: wp_head
 <?php wp_head(); ?>
', 'theme-check' ), 'language_attributes' => __( 'See: language_attributes
<html <?php language_attributes(); ?>
', 'theme-check' ), 'charset' => __( 'There must be a charset defined in the Content-Type or the meta charset tag in the head.', 'theme-check' ), 'add_theme_support\s*\(\s?("|\')automatic-feed-links("|\')\s?\)' => __( 'See: add_theme_support
 <?php add_theme_support( $feature ); ?>
', 'theme-check' ), 'comments_template\s*\(' => __( 'See: comments_template
 <?php comments_template( $file, $separate_comments ); ?>
', 'theme-check' ), 'wp_list_comments\s*\(' => __( 'See: wp_list_comments
 <?php wp_list_comments( $args ); ?>
', 'theme-check' ), 'comment_form\s*\(' => __( 'See: comment_form
 <?php comment_form(); ?>
', 'theme-check' ), 'body_class\s*\(' => __( 'See: body_class
 <?php body_class( $class ); ?>
', 'theme-check' ), 'wp_link_pages\s*\(' => __( 'See: wp_link_pages
 <?php wp_link_pages( $args ); ?>
', 'theme-check' ), 'post_class\s*\(' => __( 'See: post_class
 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
', 'theme-check' ) ); foreach ($checks as $key => $check) { checkcount(); if ( !preg_match( '/' . $key . '/i', $php ) ) { if ( $key === 'add_theme_support\s*\(\s?("|\')automatic-feed-links("|\')\s?\)' ) $key = __( 'add_theme_support( \'automatic-feed-links\' )', 'theme-check'); if ( $key === 'body_class\s*\(' ) $key = __( 'body_class call in body tag', 'theme-check'); $key = str_replace( '\s*\(', '', $key ); $this->error[] = sprintf( ''.__('REQUIRED','theme-check').': '.__('Could not find %1$s. %2$s', 'theme-check' ), '' . $key . '', $check ); $ret = false; } } return $ret; } function getError() { return $this->error; } } $themechecks[] = new Basic_Checks;