Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2013 03:10:11 PM (12 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-groups/bp-groups-template.php

    r7513 r7520  
    18971897        return apply_filters( 'bp_get_total_group_count_for_user', groups_total_groups_for_user( $user_id ), $user_id );
    18981898    }
     1899    add_filter( 'bp_get_total_group_count_for_user', 'bp_core_number_format' );
    18991900
    19001901
Note: See TracChangeset for help on using the changeset viewer.