WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2010 05:03:27 PM (11 years ago)
Author:
scribu
Message:

Differentiate between localized and raw total pages. See #14579

File:
1 edited

Legend:

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

    r16368 r16429  
    810810
    811811        if ( isset( $total_items ) )
    812             $response['total_items'] = sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) );
    813 
    814         if ( isset( $total_pages ) )
     812            $response['total_items_i18n'] = sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) );
     813
     814        if ( isset( $total_pages ) ) {
    815815            $response['total_pages'] = $total_pages;
     816            $response['total_pages_i18n'] = number_format_i18n( $total_pages );
     817        }
    816818
    817819        die( json_encode( $response ) );
Note: See TracChangeset for help on using the changeset viewer.