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-activity/bp-activity-template.php

    r7487 r7513  
    692692        $total     = bp_core_number_format( $activities_template->total_activity_count );
    693693
    694         return sprintf( _n( 'Viewing item %1$s to %2$s (of %3$s item)', 'Viewing item %1$s to %2$s (of %3$s items)', $total, 'buddypress' ), $from_num, $to_num, number_format_i18n( $total ) );
     694        return sprintf( _n( 'Viewing item %1$s to %2$s (of %3$s item)', 'Viewing item %1$s to %2$s (of %3$s items)', $total, 'buddypress' ), $from_num, $to_num, $total );
    695695    }
    696696
Note: See TracChangeset for help on using the changeset viewer.