__( 'The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.', '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 = '/(?error[] = sprintf ( ''.__('INFO','theme-check').': '.__('%1$s %2$s %3$s', 'theme-check' ), '' . $filename . '', $check, $grep ); } } } return $ret; } function getError() { return $this->error; } } $themechecks[] = new IncludeCheck;