Closed nk-o closed 3 years ago
PHP:
echo esc_html( sprintf( _n( '%s comment', '%s comments', $args['comments_number'], 'my_domain' ), $args['comments_number'] ) );
Parser thinking comments_number is text domain.
comments_number
More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs. The domains found are my_domain, comments_number
This one works fine:
$comments_number = $args['comments_number']; echo esc_html( sprintf( _n( '%s comment', '%s comments', $comments_number , 'my_domain' ), $comments_number ) );
This is really only relevant to WordPress.org language packs.
PHP:
Parser thinking
comments_number
is text domain.This one works fine: