Opened 13 years ago
Closed 12 years ago
#4998 closed enhancement (fixed)
bp_total_mention_count_for_user() et al should default to displayed user
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 1.8 | Priority: | low |
| Severity: | minor | Version: | |
| Component: | Core | Keywords: | |
| Cc: |
Description
It'd make these functions a bit easier to use if bp_total_mention_count_for_user() and the other "_count_" functions defaulted to the displayed user when no param is passed. (displayed rather than loggedin because they're most often used to generate values for profile tabs)
I'm posting a ticket before just making the change because there might be backward compatibility issues with plugins/themes taking advantage of the current behavior. I can't think of anything obvious off the top of my head that would be actively broken, but I thought I'd open it for discussion.
I think this should be fine. I also can't see an instance where this would break anything.