__( 'Theme name: is missing from your style.css header.', 'theme-check' ),
'[ \t\/*#]*Description:' => __( 'Description: is missing from your style.css header.', 'theme-check' ),
'[ \t\/*#]*Author:' => __( 'Author: is missing from your style.css header.', 'theme-check' ),
'[ \t\/*#]*Version' => __( 'Version: is missing from your style.css header.', 'theme-check' ),
'[ \t\/*#]*License:' => __( 'License: is missing from your style.css header.', 'theme-check' ),
'[ \t\/*#]*License URI:' => __( 'License URI: is missing from your style.css header.', 'theme-check' ),
'[ \t\/*#]*Text Domain:' => __( 'Text Domain: is missing from your style.css header.', 'theme-check' ),
'\.sticky' => __( '.sticky css class is needed in your theme css.', 'theme-check' ),
'\.bypostauthor' => __( '.bypostauthor css class is needed in your theme css.', 'theme-check' ),
'\.alignleft' => __( '.alignleft css class is needed in your theme css.', 'theme-check' ),
'\.alignright' => __( '.alignright css class is needed in your theme css.', 'theme-check' ),
'\.aligncenter' => __( '.aligncenter css class is needed in your theme css.', 'theme-check' ),
'\.wp-caption' => __( '.wp-caption css class is needed in your theme css.', 'theme-check' ),
'\.wp-caption-text' => __( '.wp-caption-text css class is needed in your theme css.', 'theme-check' ),
'\.gallery-caption' => __( '.gallery-caption css class is needed in your theme css.', 'theme-check' ),
'\.screen-reader-text' => __( '.screen-reader-text css class is needed in your theme css. See See: the Codex for an example implementation.', 'theme-check' )
);
foreach ($checks as $key => $check) {
checkcount();
if ( !preg_match( '/' . $key . '/i', $css, $matches ) ) {
$this->error[] = "" . __('REQUIRED', 'theme-check' ) . ": " . $check;
$ret = false;
}
}
return $ret;
}
function getError() { return $this->error; }
}
$themechecks[] = new Style_Needed;