Opened 12 years ago
Closed 10 years ago
#6120 closed enhancement (fixed)
Utilize the _n() function inside bp_get_the_topic_total_post_count
| Reported by: | tw2113 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | Forums | Version: | |
| Severity: | normal | Keywords: | needs-patch good-first-bug |
| Cc: |
Description
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.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Nice catch.