Make WordPress Core


Ignore:
Timestamp:
01/11/2019 06:03:46 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the minor WordPress.WP.I18n violations.

WordPress.WP.I18n.MissingTranslatorsComment is in progress in #44360.

See #45934.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r43571 r44562  
    837837        // Look for the alternative callback style. Ignore the previous default.
    838838        if ( $args['topic_count_text_callback'] === 'default_topic_count_text' ) {
     839            // wpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralPlural
    839840            $translate_nooped_plural = _n_noop( '%s item', '%s items' );
    840841        } else {
     
    843844    } elseif ( isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) {
    844845        // If no callback exists, look for the old-style single_text and multiple_text arguments.
     846        // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralPlural
    845847        $translate_nooped_plural = _n_noop( $args['single_text'], $args['multiple_text'] );
    846848    } else {
Note: See TracChangeset for help on using the changeset viewer.