Skip to content

Commit

Permalink
Change constants to be required
Browse files Browse the repository at this point in the history
  • Loading branch information
grappler committed Mar 18, 2016
1 parent 2c818f1 commit c5af293
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions checks/constants.php
Expand Up @@ -21,7 +21,8 @@ function check( $php_files, $css_files, $other_files ) {
$filename = tc_filename( $php_key );
$error = ltrim( rtrim( $matches[0], '(' ) );
$grep = tc_grep( $error, $php_key );
$this->error[] = sprintf('<span class="tc-lead tc-recommended">'.__('RECOMMENDED','theme-check').'</span>: '.__('%1$s was found in the file %2$s. Use %3$s instead.%4$s', 'theme-check'), '<strong>' . $error . '</strong>', '<strong>' . $filename . '</strong>', '<strong>' . $check . '</strong>', $grep );
$this->error[] = sprintf('<span class="tc-lead tc-required">'.__('REQUIRED','theme-check').'</span>: '.__('%1$s was found in the file %2$s. Use %3$s instead.%4$s', 'theme-check'), '<strong>' . $error . '</strong>', '<strong>' . $filename . '</strong>', '<strong>' . $check . '</strong>', $grep );
$ret = false;
}
}
}
Expand All @@ -30,4 +31,4 @@ function check( $php_files, $css_files, $other_files ) {

function getError() { return $this->error; }
}
$themechecks[] = new Constants;
$themechecks[] = new Constants;

0 comments on commit c5af293

Please sign in to comment.