$phpfile ) { checkcount(); if ( preg_match( '/<\?(\=?)(?!php|xml)/i', $phpfile ) ) { $filename = tc_filename( $php_key ); $grep = tc_preg( '/<\?(\=?)(?!php|xml)/', $php_key ); $this->error[] = sprintf(''.__('WARNING','theme-check').': '.__('Found PHP short tags in file %1$s.%2$s', 'theme-check'), '' . $filename . '', $grep); $ret = false; } } return $ret; } function getError() { return $this->error; } } $themechecks[] = new PHPShortTagsCheck;