$phpfile ) { checkcount(); if ( preg_match_all( $checks1, $phpfile, $matches ) ) { if ( $out = preg_grep( '/twentyten/', $matches[0] ) ) { $filename = tc_filename( $php_key ); foreach( $out as $error ) { $grep .= tc_grep( $error , $php_key ); // html_print_r($out); } $this->error[] = "WARNING: Theme is using twentyten as the textdomain in {$filename}.{$grep}"; $ret = false; } } } return $ret; } function getError() { return $this->error; } } $themechecks[] = new TextDomainCheck;