WordPress.org

Make WordPress Core

Changeset 34521


Ignore:
Timestamp:
09/24/2015 09:06:50 PM (4 years ago)
Author:
ocean90
Message:

Plugins: Don't use _n() for singular/plural strings which have no placeholder for a number.

Fixes #33239.
See #28502.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugins.php

    r34475 r34521  
    445445        <div id="message" class="updated notice is-dismissible">
    446446            <p>
    447                 <?php echo _n(
    448                     'The selected plugin has been <strong>deleted</strong>.',
    449                     'The selected plugins have been <strong>deleted</strong>.',
    450                     $plugins_to_delete );
     447                <?php
     448                if ( 1 == $plugins_to_delete ) {
     449                    _e( 'The selected plugin has been <strong>deleted</strong>.' );
     450                } else {
     451                    _e( 'The selected plugins have been <strong>deleted</strong>.' );
     452                }
    451453                ?>
    452454            </p>
Note: See TracChangeset for help on using the changeset viewer.