'See: http://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"?>
', 'wp_footer' => 'See: wp_footer
 <?php wp_footer(); ?>
', 'wp_head' => 'See: wp_head
 <?php wp_head(); ?>
', 'language_attributes' => 'See: language_attributes
<html <?php language_attributes(); ?>
', 'charset' => 'There must be a charset defined in the Content-Type or the meta charset tag in the head.', 'add_theme_support\((\s|)("|\')automatic-feed-links("|\')(\s|)\)' => 'See: add_theme_support
 <?php add_theme_support( $feature ); ?>
', 'dynamic_sidebar' => 'See: dynamic_sidebar
 <?php dynamic_sidebar( $index ); ?>
', 'comments_template' => 'See: comments_template
 <?php comments_template( $file, $separate_comments ); ?>
', 'wp_list_comments' => 'See: wp_list_comments
 <?php wp_list_comments( $args ); ?>
', 'comment_form' => 'See: comment_form
 <?php comment_form(); ?>
', 'wp_enqueue_script\((\s|)("|\')comment-reply("|\')(\s|)\)' => 'See: Migrating Plugins and Themes to 2.7/Enhanced Comment Display
 <?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
', 'body_class' => 'See: body_class
 <?php body_class( $class ); ?>
', 'post_class' => 'See: post_class
 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
' ); // new dBug($checks); // check for each of them, create an error if it's not found foreach ($checks as $key => $check) { checkcount(); if ( !preg_match( '/' . $key . '/i', $php ) ) { if ($key === 'add_theme_support\((\s|)("|\')automatic-feed-links("|\')(\s|)\)') $key = 'add_theme_support( \'automatic-feed-links\' )'; if ($key === 'wp_enqueue_script\((\s|)("|\')comment-reply("|\')(\s|)\)') $key = 'wp_enqueue_script( \'comment-reply\' )'; $this->error[] = "REQUIREDCould not find {$key}. {$check}"; $ret = false; } } // return the pass/fail return $ret; } function getError() { return $this->error; } } $themechecks[] = new Basic_Checks;