Skip to:
Content

BuddyPress.org


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

    r7513 r7520  
    26532653        return apply_filters( 'bp_get_total_favorite_count_for_user', bp_activity_total_favorites_for_user( $user_id ) );
    26542654    }
     2655    add_filter( 'bp_get_total_favorite_count_for_user', 'bp_core_number_format' );
    26552656
    26562657/**
     
    26862687        return apply_filters( 'bp_get_total_mention_count_for_user', bp_get_user_meta( $user_id, 'bp_new_mention_count', true ) );
    26872688    }
     2689    add_filter( 'bp_get_total_mention_count_for_user', 'bp_core_number_format' );
    26882690
    26892691/**
Note: See TracChangeset for help on using the changeset viewer.