'Theme name:', '^Theme URI:' => 'Theme URI:', '^Description:' => 'Description:', '^Author:' => 'Author:', '^Version' => 'Version:', '\.alignleft' => '.alignleft', '\.aligncenter' => '.aligncenter', '\.wp-caption' => '.wp-caption', '\.wp-caption-text' => '.wp-caption-text', '\.gallery-caption' => '.gallery-caption', '\.alignright' => '.alignright' ); foreach ($checks as $key => $check) { checkcount(); if ( !preg_match( '/' . $key . '/mi', $css, $matches ) ) { $this->error[] = "CSSNEEDED{$check} is missing."; $ret = false; } } return $ret; } function getError() { return $this->error; } } $themechecks[] = new Style_Needed;