Make WordPress Core


Ignore:
Timestamp:
05/09/2015 07:21:38 PM (10 years ago)
Author:
ocean90
Message:

List Table: Add placeholder to a plural string.

props SergeyBiryukov.
fixes #32034.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r31513 r32473  
    687687        }
    688688
    689         $output = '<span class="displaying-num">' . sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
     689        $output = '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
    690690
    691691        $current = $this->get_pagenum();
     
    11111111        if ( isset( $this->_pagination_args['total_items'] ) ) {
    11121112            $response['total_items_i18n'] = sprintf(
    1113                 _n( '1 item', '%s items', $this->_pagination_args['total_items'] ),
     1113                _n( '%s item', '%s items', $this->_pagination_args['total_items'] ),
    11141114                number_format_i18n( $this->_pagination_args['total_items'] )
    11151115            );
Note: See TracChangeset for help on using the changeset viewer.