Coding Standards: Fix the minor WordPress.WP.I18n violations.
`WordPress.WP.I18n.MissingTranslatorsComment` is in progress in #44360. See #45934. Built from https://develop.svn.wordpress.org/trunk@44562 git-svn-id: http://core.svn.wordpress.org/trunk@44393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -836,12 +836,14 @@ function wp_generate_tag_cloud( $tags, $args = '' ) {
|
||||
} elseif ( ! empty( $args['topic_count_text_callback'] ) ) {
|
||||
// Look for the alternative callback style. Ignore the previous default.
|
||||
if ( $args['topic_count_text_callback'] === 'default_topic_count_text' ) {
|
||||
// wpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralPlural
|
||||
$translate_nooped_plural = _n_noop( '%s item', '%s items' );
|
||||
} else {
|
||||
$translate_nooped_plural = false;
|
||||
}
|
||||
} elseif ( isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) {
|
||||
// If no callback exists, look for the old-style single_text and multiple_text arguments.
|
||||
// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralPlural
|
||||
$translate_nooped_plural = _n_noop( $args['single_text'], $args['multiple_text'] );
|
||||
} else {
|
||||
// This is the default for when no callback, plural, or argument is passed in.
|
||||
|
||||
Reference in New Issue
Block a user