]*>/' => __( 'iframes are sometimes used to load unwanted adverts and code on your site', 'theme-check' )
);
foreach ( $php_files as $php_key => $phpfile ) {
foreach ( $checks as $key => $check ) {
checkcount();
if ( preg_match( $key, $phpfile, $matches ) ) {
$filename = tc_filename( $php_key );
$error = ltrim( $matches[1], '(' );
$error = rtrim( $error, '(' );
$grep = tc_grep( $error, $php_key );
$this->error[] = sprintf(''.__('INFO','theme-check').': '.__('%1$s was found in the file %2$s %3$s.%4$s', 'theme-check'), '' . $error . '', '' . $filename . '', $check, $grep ) ;
}
}
}
return $ret;
}
function getError() { return $this->error; }
}
$themechecks[] = new IframeCheck;