Skip to:
Content

BuddyPress.org

Opened 5 years ago

Closed 3 years ago

#6120 closed enhancement (fixed)

Utilize the _n() function inside bp_get_the_topic_total_post_count

Reported by: tw2113 Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: Forums 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)

#1 @DJPaul
5 years ago

  • Component changed from Core to Forums
  • Keywords needs-patch good-first-bug added
  • Milestone changed from Awaiting Review to Future Release

Nice catch.

#2 @DJPaul
3 years ago

  • Milestone changed from Future Release to 2.7
  • Resolution set to fixed
  • Status changed from new to closed

this was fixed in r10955

Note: See TracTickets for help on using tickets.