From c5af2936dbfd3c69767f100753bcfb95dd6e9e4c Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Fri, 18 Mar 2016 12:38:01 +0100 Subject: [PATCH] Change constants to be required --- checks/constants.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/checks/constants.php b/checks/constants.php index 11b788e8..3c114a01 100644 --- a/checks/constants.php +++ b/checks/constants.php @@ -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(''.__('RECOMMENDED','theme-check').': '.__('%1$s was found in the file %2$s. Use %3$s instead.%4$s', 'theme-check'), '' . $error . '', '' . $filename . '', '' . $check . '', $grep ); + $this->error[] = sprintf(''.__('REQUIRED','theme-check').': '.__('%1$s was found in the file %2$s. Use %3$s instead.%4$s', 'theme-check'), '' . $error . '', '' . $filename . '', '' . $check . '', $grep ); + $ret = false; } } } @@ -30,4 +31,4 @@ function check( $php_files, $css_files, $other_files ) { function getError() { return $this->error; } } -$themechecks[] = new Constants; \ No newline at end of file +$themechecks[] = new Constants;