[buddypress-trac] [BuddyPress Trac] #6120: Utilize the _n() function inside bp_get_the_topic_total_post_count
buddypress-trac
noreply at wordpress.org
Wed Jan 14 06:03:11 UTC 2015
#6120: Utilize the _n() function inside bp_get_the_topic_total_post_count
-------------------------+-----------------------------
Reporter: tw2113 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
Right now we have an if else statement checking on topic post count and
conditionally passing in "%d post" or "%d posts" based on the count.
We would be able to use _n() to calculate the string to display and only
use apply_filters() once, instead of duplicated like it is now.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6120>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list