Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2013 03:10:11 PM (13 years ago)
Author:
boonebgorges
Message:

Improvements to i18n number formatting in activity count functions/templates

This changeset makes number formatting more consistent in the activity
templates of bp-legacy. The logic is as follows:

  • Move all number formatting out of the templates and into the relevant -template.php file.
  • Add number formatting to those _count() template functions that were missing it.
  • Clean up sprintf() swapping arguments to account for string vs int number formats

See #4997, #5228

Fixes #5231

File:
1 edited

Legend:

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

    r7516 r7520  
    648648                return apply_filters( 'bp_get_total_member_count', bp_core_get_active_member_count() );
    649649        }
     650        add_filter( 'bp_get_total_member_count', 'bp_core_number_format' );
    650651
    651652/**
Note: See TracChangeset for help on using the changeset viewer.