Skip to content

Commit

Permalink
First pass at fixing the I18N support for theme-check. Changed domain…
Browse files Browse the repository at this point in the history
… to "theme-check" instead of "themecheck". Some text changes. More changes will be forthcoming. This will break current translations, so do not release until complete.

git-svn-id: http://plugins.svn.wordpress.org/theme-check/trunk@803387 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
Otto42 authored and Otto42 committed Nov 12, 2013
1 parent 2fcf90f commit 3b6ad31
Show file tree
Hide file tree
Showing 44 changed files with 225 additions and 220 deletions.
18 changes: 9 additions & 9 deletions checkbase.php
Expand Up @@ -60,7 +60,7 @@ function display_themechecks() {
}
}
}

if ( defined( 'TC_TRAC' ) ) {

if ( defined( 'TC_PRE' ) ) $results = TC_PRE . $results;
Expand Down Expand Up @@ -89,7 +89,7 @@ function tc_grep( $error, $file ) {
$error = ltrim( $error );
$pre = ( FALSE !== ( $pos = strpos( $this_line, $error ) ) ? substr( $this_line, 0, $pos ) : FALSE );
$pre = ltrim( htmlspecialchars( $pre ) );
$bad_lines .= __("<pre class='tc-grep'>Line ", "themecheck") . ( $line_index+1 ) . ": " . $pre . htmlspecialchars( substr( stristr( $this_line, $error ), 0, 75 ) ) . "</pre>";
$bad_lines .= "<pre class='tc-grep'>". __("Line ", "theme-check") . ( $line_index+1 ) . ": " . $pre . htmlspecialchars( substr( stristr( $this_line, $error ), 0, 75 ) ) . "</pre>";
}
$line_index++;
}
Expand All @@ -108,7 +108,7 @@ function tc_preg( $preg, $file ) {
$error = ltrim( $error );
$pre = ( FALSE !== ( $pos = strpos( $this_line, $error ) ) ? substr( $this_line, 0, $pos ) : FALSE );
$pre = ltrim( htmlspecialchars( $pre ) );
$bad_lines .= __("<pre class='tc-grep'>Line ", "themecheck") . ( $line_index+1 ) . ": " . $pre . htmlspecialchars( substr( stristr( $this_line, $error ), 0, 75 ) ) . "</pre>";
$bad_lines .= "<pre class='tc-grep'>" . __("Line ", "theme-check") . ( $line_index+1 ) . ": " . $pre . htmlspecialchars( substr( stristr( $this_line, $error ), 0, 75 ) ) . "</pre>";
}
$line_index++;

Expand Down Expand Up @@ -156,7 +156,7 @@ function listdir( $dir ) {
$files = array();
$dir_iterator = new RecursiveDirectoryIterator( $dir );
$iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST);

foreach ($iterator as $file) {
array_push( $files, $file->getPathname() );
}
Expand All @@ -177,9 +177,9 @@ function old_listdir( $start_dir='.' ) {
array_push( $files, $filepath );
}
closedir( $fh );

} else {

# false if the function was called with an invalid non-directory argument
$files = false;
}
Expand Down Expand Up @@ -264,7 +264,7 @@ function get_theme_data_from_contents( $theme_data ) {
*
*/
function tc_get_themes() {

if ( ! class_exists( 'WP_Theme' ) )
return get_themes();

Expand All @@ -283,11 +283,11 @@ function tc_get_themes() {
$wp_themes[ $name ] = $theme;
}

return $wp_themes;
return $wp_themes;
}

function tc_get_theme_data( $theme_file ) {

if ( ! class_exists( 'WP_Theme' ) )
return get_theme_data( $theme_file );

Expand Down
10 changes: 5 additions & 5 deletions checks/admin_menu.php
Expand Up @@ -10,8 +10,8 @@ function check( $php_files, $css_files, $other_files) {
//check for levels deprecated in 2.0 in creating menus.

$checks = array(
'/([^_](add_(admin|submenu|menu|dashboard|posts|media|links|pages|comments|theme|plugins|users|management|options)_page)\s?\([^,]*,[^,]*,\s[\'|"]?(level_[0-9]|[0-9])[^;|\r|\r\n]*)/' => __( 'User levels were deprecated in <strong>2.0</strong>. Please see <a href="http://codex.wordpress.org/Roles_and_Capabilities">Roles_and_Capabilities</a>', 'themecheck' ),
'/[^a-z0-9](current_user_can\s?\(\s?[\'\"]level_[0-9][\'\"]\s?\))[^\r|\r\n]*/' => __( 'User levels were deprecated in <strong>2.0</strong>. Please see <a href="http://codex.wordpress.org/Roles_and_Capabilities">Roles_and_Capabilities</a>', 'themecheck' )
'/([^_](add_(admin|submenu|menu|dashboard|posts|media|links|pages|comments|theme|plugins|users|management|options)_page)\s?\([^,]*,[^,]*,\s[\'|"]?(level_[0-9]|[0-9])[^;|\r|\r\n]*)/' => __( 'User levels were deprecated in <strong>2.0</strong>. Please see <a href="http://codex.wordpress.org/Roles_and_Capabilities">Roles_and_Capabilities</a>', 'theme-check' ),
'/[^a-z0-9](current_user_can\s?\(\s?[\'\"]level_[0-9][\'\"]\s?\))[^\r|\r\n]*/' => __( 'User levels were deprecated in <strong>2.0</strong>. Please see <a href="http://codex.wordpress.org/Roles_and_Capabilities">Roles_and_Capabilities</a>', 'theme-check' )
);

foreach ( $php_files as $php_key => $phpfile ) {
Expand All @@ -20,7 +20,7 @@ function check( $php_files, $css_files, $other_files) {
if ( preg_match( $key, $phpfile, $matches ) ) {
$filename = tc_filename( $php_key );
$grep = ( isset( $matches[2] ) ) ? tc_grep( $matches[2], $php_key ) : tc_grep( $matches[1], $php_key );
$this->error[] = sprintf(__('<span class="tc-lead tc-warning">WARNING</span>: <strong>%1$s</strong>. %2$s%3$s', 'themecheck'), $filename, $check, $grep );
$this->error[] = sprintf('<span class="tc-lead tc-warning">'.__( 'WARNING', 'theme-check' ) . '</span>: <strong>%1$s</strong>. %2$s%3$s, $filename, $check, $grep );
$ret = false;
}
}
Expand All @@ -30,7 +30,7 @@ function check( $php_files, $css_files, $other_files) {
//check for add_admin_page
$checks = array(
'/([^_]add_(admin|submenu|menu|dashboard|posts|media|links|pages|comments|plugins|users|management|options)_page\()/' => __( 'Themes should use <strong>add_theme_page()</strong> for adding admin pages.', 'themecheck' )
'/([^_]add_(admin|submenu|menu|dashboard|posts|media|links|pages|comments|plugins|users|management|options)_page\()/' => __( 'Themes should use <strong>add_theme_page()</strong> for adding admin pages.', 'theme-check' )
);


Expand All @@ -41,7 +41,7 @@ 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-required">REQUIRED</span>: <strong>%1$s</strong>. %2$s%3$s', 'themecheck'), $filename, $check, $grep);
$this->error[] = sprintf('<span class="tc-lead tc-required">'.__( 'REQUIRED', 'theme-check' ); .'</span>: <strong>%1$s</strong>. %2$s%3$s', $filename, $check, $grep);
$ret = false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions checks/artisteer.php
Expand Up @@ -14,14 +14,14 @@ function check( $php_files, $css_files, $other_files) {
if (
strpos( $php, 'art_normalize_widget_style_tokens' ) !== false
|| strpos( $php, 'art_include_lib' ) !== false
|| strpos( $php, '_remove_last_slash($url) {' ) !== false
|| strpos( $php, '_remove_last_slash($url) {' ) !== false
|| strpos( $php, 'adi_normalize_widget_style_tokens' ) !== false
|| strpos( $php, 'm_normalize_widget_style_tokens' ) !== false
|| strpos ( $php, "bw = '<!--- BEGIN Widget --->';" ) !== false
|| strpos ( $php, "ew = '<!-- end_widget -->';" ) !== false
|| strpos ( $php, "end_widget' => '<!-- end_widget -->'") !== false
) {
$this->error[] = "<span class='tc-lead tc-warning'>WARNING</span>: " . __( 'This theme appears to have been auto-generated. Generated themes are not allowed in the themes directory.', 'themecheck' );
$this->error[] = "<span class='tc-lead tc-warning'>" . __('WARNING', 'theme-check' ). "</span>: " . __( 'This theme appears to have been auto-generated. Generated themes are not allowed in the themes directory.', 'theme-check' );
$ret = false;
}

Expand Down
26 changes: 13 additions & 13 deletions checks/badthings.php
Expand Up @@ -6,15 +6,15 @@ function check( $php_files, $css_files, $other_files ) {
$ret = true;

$checks = array(
'/(?<![_|a-z0-9|\.])eval\s?\(/i' => __( 'eval() is not allowed.', 'themecheck' ),
'/[^a-z0-9](?<!_)(popen|proc_open|[^_]exec|shell_exec|system|passthru)\(/' => __( 'PHP sytem calls should be disabled by server admins anyway!', 'themecheck' ),
'/\s?ini_set\(/' => __( 'Themes should not change server PHP settings', 'themecheck' ),
'/base64_decode/' => __( 'base64_decode() is not allowed', 'themecheck' ),
'/base64_encode/' => __( 'base64_encode() is not allowed', 'themecheck' ),
'/uudecode/ims' => __( 'uudecode() is not allowed', 'themecheck' ),
'/str_rot13/ims' => __( 'str_rot13() is not allowed', 'themecheck' ),
'/cx=[0-9]{21}:[a-z0-9]{10}/' => __( 'Google search code detected', 'themecheck' ),
'/pub-[0-9]{16}/i' => __( 'Googe advertising code detected', 'themecheck' )
'/(?<![_|a-z0-9|\.])eval\s?\(/i' => __( 'eval() is not allowed.', 'theme-check' ),
'/[^a-z0-9](?<!_)(popen|proc_open|[^_]exec|shell_exec|system|passthru)\(/' => __( 'PHP system calls are often disabled by server admins and should not be in themes', 'theme-check' ),
'/\s?ini_set\(/' => __( 'Themes should not change server PHP settings', 'theme-check' ),
'/base64_decode/' => __( 'base64_decode() is not allowed', 'theme-check' ),
'/base64_encode/' => __( 'base64_encode() is not allowed', 'theme-check' ),
'/uudecode/ims' => __( 'uudecode() is not allowed', 'theme-check' ),
'/str_rot13/ims' => __( 'str_rot13() is not allowed', 'theme-check' ),
'/cx=[0-9]{21}:[a-z0-9]{10}/' => __( 'Google search code detected', 'theme-check' ),
'/pub-[0-9]{16}/i' => __( 'Google advertising code detected', 'theme-check' )
);

$grep = '';
Expand All @@ -26,16 +26,16 @@ function check( $php_files, $css_files, $other_files ) {
$filename = tc_filename( $php_key );
$error = ltrim( trim( $matches[0], '(' ) );
$grep = tc_grep( $error, $php_key );
$this->error[] = sprintf(__('<span class="tc-lead tc-warning">WARNING</span>: Found <strong>%1$s</strong> in the file <strong>%2$s</strong>. %3$s. %4$s', 'themecheck'), $error, $filename, $check, $grep );
$this->error[] = sprintf('<span class="tc-lead tc-warning">'. __( 'WARNING', 'theme-check' ) . '</span>: Found <strong>%1$s</strong> in the file <strong>%2$s</strong>. %3$s. %4$s', $error, $filename, $check, $grep );
$ret = false;
}
}
}


$checks = array(
'/cx=[0-9]{21}:[a-z0-9]{10}/' => __( 'Google search code detected', 'themecheck' ),
'/pub-[0-9]{16}/' => __( 'Google advertising code detected', 'themecheck' )
'/cx=[0-9]{21}:[a-z0-9]{10}/' => __( 'Google search code detected', 'theme-check' ),
'/pub-[0-9]{16}/' => __( 'Google advertising code detected', 'theme-check' )
);

foreach ( $other_files as $php_key => $phpfile ) {
Expand All @@ -45,7 +45,7 @@ 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-warning">WARNING</span>: Found <strong>%1$s</strong> in the file <strong>%2$s</strong>. %3$s.%4$s', 'themecheck'), $error, $filename, $check, $grep);
$this->error[] = sprintf(__('<span class="tc-lead tc-warning">WARNING</span>: Found <strong>%1$s</strong> in the file <strong>%2$s</strong>. %3$s.%4$s', 'theme-check'), $error, $filename, $check, $grep);
$ret = false;
}
}
Expand Down
34 changes: 17 additions & 17 deletions checks/basic.php
Expand Up @@ -11,29 +11,29 @@ function check( $php_files, $css_files, $other_files) {
$ret = true;

$checks = array(
'DOCTYPE' => __( 'See: <a href="http://codex.wordpress.org/HTML_to_XHTML">http://codex.wordpress.org/HTML_to_XHTML</a><pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"?&gt;</pre>', 'themecheck' ),
'wp_footer\(' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/wp_footer">wp_footer</a><pre> &lt;?php wp_footer(); ?&gt;</pre>', 'themecheck' ),
'wp_head\(' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/wp_head">wp_head</a><pre> &lt;?php wp_head(); ?&gt;</pre>', 'themecheck' ),
'language_attributes' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/language_attributes">language_attributes</a><pre>&lt;html &lt;?php language_attributes(); ?&gt;</pre>', 'themecheck' ),
'charset' => __( 'There must be a charset defined in the Content-Type or the meta charset tag in the head.', 'themecheck' ),
'add_theme_support\(\s?("|\')automatic-feed-links("|\')\s?\)' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/add_theme_support">add_theme_support</a><pre> &lt;?php add_theme_support( $feature ); ?&gt;</pre>', 'themecheck' ),
'comments_template\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/comments_template">comments_template</a><pre> &lt;?php comments_template( $file, $separate_comments ); ?&gt;</pre>', 'themecheck' ),
'wp_list_comments\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/wp_list_comments">wp_list_comments</a><pre> &lt;?php wp_list_comments( $args ); ?&gt;</pre>', 'themecheck' ),
'comment_form\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/comment_form">comment_form</a><pre> &lt;?php comment_form(); ?&gt;</pre>', 'themecheck' ),
'body_class' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/body_class">body_class</a><pre> &lt;?php body_class( $class ); ?&gt;</pre>', 'themecheck' ),
'wp_link_pages\(' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/wp_link_pages">wp_link_pages</a><pre> &lt;?php wp_link_pages( $args ); ?&gt;</pre>', 'themecheck' ),
'post_class\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/post_class">post_class</a><pre> &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;</pre>', 'themecheck' )
'DOCTYPE' => __( 'See: <a href="http://codex.wordpress.org/HTML_to_XHTML">http://codex.wordpress.org/HTML_to_XHTML</a><pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"?&gt;</pre>', 'theme-check' ),
'wp_footer\(' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/wp_footer">wp_footer</a><pre> &lt;?php wp_footer(); ?&gt;</pre>', 'theme-check' ),
'wp_head\(' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/wp_head">wp_head</a><pre> &lt;?php wp_head(); ?&gt;</pre>', 'theme-check' ),
'language_attributes' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/language_attributes">language_attributes</a><pre>&lt;html &lt;?php language_attributes(); ?&gt;</pre>', 'theme-check' ),
'charset' => __( 'There must be a charset defined in the Content-Type or the meta charset tag in the head.', 'theme-check' ),
'add_theme_support\(\s?("|\')automatic-feed-links("|\')\s?\)' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/add_theme_support">add_theme_support</a><pre> &lt;?php add_theme_support( $feature ); ?&gt;</pre>', 'theme-check' ),
'comments_template\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/comments_template">comments_template</a><pre> &lt;?php comments_template( $file, $separate_comments ); ?&gt;</pre>', 'theme-check' ),
'wp_list_comments\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/wp_list_comments">wp_list_comments</a><pre> &lt;?php wp_list_comments( $args ); ?&gt;</pre>', 'theme-check' ),
'comment_form\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/comment_form">comment_form</a><pre> &lt;?php comment_form(); ?&gt;</pre>', 'theme-check' ),
'body_class' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/body_class">body_class</a><pre> &lt;?php body_class( $class ); ?&gt;</pre>', 'theme-check' ),
'wp_link_pages\(' => __( 'See: <a href="http://codex.wordpress.org/Function_Reference/wp_link_pages">wp_link_pages</a><pre> &lt;?php wp_link_pages( $args ); ?&gt;</pre>', 'theme-check' ),
'post_class\(' => __( 'See: <a href="http://codex.wordpress.org/Template_Tags/post_class">post_class</a><pre> &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;</pre>', 'theme-check' )
);

foreach ($checks as $key => $check) {
checkcount();
if ( !preg_match( '/' . $key . '/i', $php ) ) {
if ( $key === 'add_theme_support\(\s?("|\')automatic-feed-links("|\')\s?\)' ) $key = __( 'add_theme_support( \'automatic-feed-links\' )', 'themecheck');
if ( $key === 'wp_enqueue_script\(\s?("|\')comment-reply("|\')' ) $key = __( 'wp_enqueue_script( \'comment-reply\' )', 'themecheck');
if ( $key === 'body_class' ) $key = __( 'body_class call in body tag', 'themecheck');
if ( $key === 'register_sidebar[s]?\(' ) $key = __( 'register_sidebar() or register_sidebars()', 'themecheck');
if ( $key === 'add_theme_support\(\s?("|\')automatic-feed-links("|\')\s?\)' ) $key = __( 'add_theme_support( \'automatic-feed-links\' )', 'theme-check');
if ( $key === 'wp_enqueue_script\(\s?("|\')comment-reply("|\')' ) $key = __( 'wp_enqueue_script( \'comment-reply\' )', 'theme-check');
if ( $key === 'body_class' ) $key = __( 'body_class call in body tag', 'theme-check');
if ( $key === 'register_sidebar[s]?\(' ) $key = __( 'register_sidebar() or register_sidebars()', 'theme-check');
$key = ltrim( trim ( trim( $key, '(' ), '\\' ) );
$this->error[] = sprintf( __( '<span class="tc-lead tc-required">REQUIRED</span>: Could not find <strong>%1$s</strong>. %2$s', 'themecheck' ), $key, $check );
$this->error[] = sprintf( __( '<span class="tc-lead tc-required">REQUIRED</span>: Could not find <strong>%1$s</strong>. %2$s', 'theme-check' ), $key, $check );
$ret = false;
}
}
Expand Down
8 changes: 4 additions & 4 deletions checks/comment_reply.php
Expand Up @@ -6,16 +6,16 @@ function check( $php_files, $css_files, $other_files) {

$php = implode( ' ', $php_files );
$ret = true;

checkcount();

if ( ! preg_match( '/wp_enqueue_script\(\s?("|\')comment-reply("|\')/i', $php ) ) {
if ( ! preg_match( '/comment-reply/', $php ) ) {
$check = __( 'See: <a href="http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display">Migrating Plugins and Themes to 2.7/Enhanced Comment Display</a><pre> &lt;?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?&gt;</pre>', 'themecheck' );
$this->error[] = sprintf(__('<span class="tc-lead tc-required">REQUIRED</span>: Could not find the <strong>comment-reply</strong> script enqueued. %1$s', 'themecheck'), $check);
$check = __( 'See: <a href="http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display">Migrating Plugins and Themes to 2.7/Enhanced Comment Display</a><pre> &lt;?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?&gt;</pre>', 'theme-check' );
$this->error[] = sprintf(__('<span class="tc-lead tc-required">REQUIRED</span>: Could not find the <strong>comment-reply</strong> script enqueued. %1$s', 'theme-check'), $check);
$ret = false;
} else {
$this->error[] = __('<span class="tc-lead tc-info">INFO</span>: Could not find the <strong>comment-reply</strong> script enqueued, however a reference to \'comment-reply\' was found. Make sure that the comment-reply script is being enqueued properly on singular pages.', 'themecheck');
$this->error[] = __('<span class="tc-lead tc-info">INFO</span>: Could not find the <strong>comment-reply</strong> script enqueued, however a reference to \'comment-reply\' was found. Make sure that the comment-reply script is being enqueued properly on singular pages.', 'theme-check');
}
}
return $ret;
Expand Down
2 changes: 1 addition & 1 deletion checks/commpage.php
Expand Up @@ -12,7 +12,7 @@ function check( $php_files, $css_files, $other_files ) {
if (strpos( $php, 'paginate_comments_links' ) === false &&
(strpos( $php, 'next_comments_link' ) === false && strpos( $php, 'previous_comments_link' ) === false ) ) {

$this->error[] = __( '<span class="tc-lead tc-required">REQUIRED</span>: The theme doesn\'t have comment pagination code in it. Use <strong>paginate_comments_links()</strong> or <strong>next_comments_link()</strong> and <strong>previous_comments_link()</strong> to add comment pagination.', 'themecheck' );
$this->error[] = __( '<span class="tc-lead tc-required">REQUIRED</span>: The theme doesn\'t have comment pagination code in it. Use <strong>paginate_comments_links()</strong> or <strong>next_comments_link()</strong> and <strong>previous_comments_link()</strong> to add comment pagination.', 'theme-check' );
$ret = false;
}

Expand Down
2 changes: 1 addition & 1 deletion checks/constants.php
Expand Up @@ -21,7 +21,7 @@ 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</span>: <strong>%1$s</strong> was found in the file <strong>%2$s</strong>. Use <strong>%3$s</strong> instead.%4$s', 'themecheck'), $error, $filename, $check, $grep );
$this->error[] = sprintf(__('<span class="tc-lead tc-recommended">RECOMMENDED</span>: <strong>%1$s</strong> was found in the file <strong>%2$s</strong>. Use <strong>%3$s</strong> instead.%4$s', 'theme-check'), $error, $filename, $check, $grep );
}
}
}
Expand Down

0 comments on commit 3b6ad31

Please sign in to comment.