Opened 5 years ago
Closed 5 years ago
#8136 closed enhancement (fixed)
We should have `Secondary Item Id` in filters for `friends_format_notifications` function
Reported by: | bhargavbhandari90 | Owned by: | imath |
---|---|---|---|
Milestone: | 6.0.0 | Priority: | normal |
Severity: | normal | Version: | 4.4.0 |
Component: | Core | Keywords: | has-patch 2nd-opinion |
Cc: |
Description
In file src/bp-friends/bp-friends-notifications.php
We have a function friends_format_notifications
to get notification of user friendships.
In the function there are 4 filters as follow:
- - bp_friends_single_friendship_accepted_notification
- - bp_friends_multiple_friendship_accepted_notification
- - bp_friends_single_friendship_request_notification
- - bp_friends_multiple_friendship_request_notification
But for these filters, we don't have secondary item id
passed in arguments. Some users might need that secondary item id as well.
Let me know if there is specific reason not to pass secondary item id in those filters.
Attachments (3)
Change History (11)
#1
follow-up:
↓ 2
@
5 years ago
- Milestone changed from Awaiting Review to Up Next
Thanks for your patch @bhargavbhandari90, let's work on it during the next development cycle.
#2
in reply to:
↑ 1
@
5 years ago
Replying to imath:
Thanks for your patch @bhargavbhandari90, let's work on it during the next development cycle.
Sure.
#3
follow-up:
↓ 4
@
5 years ago
Looks good to me. Let's add the parameter to both the string
and array
versions of the logic. Thanks, @bhargavbhandari90!
#4
in reply to:
↑ 3
@
5 years ago
Replying to dcavins:
Looks good to me. Let's add the parameter to both the
string
andarray
versions of the logic. Thanks, @bhargavbhandari90!
Thanks @dcavins . I forgot about that.
#5
@
5 years ago
- Milestone changed from Up Next to 6.0.0
Move the first tickets to next major release.
#6
@
5 years ago
@imath This one seems to have an "approved" patch from @dcavins
Do you have any feedback, with improvements to the patch or possible breaking changes it might incur?
made documentation alignment proper