Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/05/2013 02:04:59 PM (13 years ago)
Author:
boonebgorges
Message:

Don't double number-format directory pagination counts

By running total item counts through number_format_i18n() twice, certain
number formats were getting messed up.

Fixes #5228

Props sgr33n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-template.php

    r7439 r7513  
    421421    $total     = bp_core_number_format( $blogs_template->total_blog_count );
    422422
    423     echo sprintf( _n( 'Viewing site %1$s to %2$s (of %3$s site)', 'Viewing site %1$s to %2$s (of %3$s sites)', $total, 'buddypress' ), $from_num, $to_num, number_format_i18n( $total ) );
     423    echo sprintf( _n( 'Viewing site %1$s to %2$s (of %3$s site)', 'Viewing site %1$s to %2$s (of %3$s sites)', $total, 'buddypress' ), $from_num, $to_num, $total );
    424424}
    425425
Note: See TracChangeset for help on using the changeset viewer.