Changeset 13503 for trunk/src/bp-friends/bp-friends-notifications.php
- Timestamp:
- 06/18/2023 04:11:04 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-notifications.php
r13441 r13503 29 29 */ 30 30 function friends_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { 31 $friends_slug = bp_get_friends_slug(); 32 $custom_friends_slug = bp_rewrites_get_slug( 'members', 'member_' . $friends_slug, $friends_slug ); 31 $friends_slug = bp_get_friends_slug(); 33 32 34 33 switch ( $action ) { 35 34 case 'friendship_accepted': 36 $link = bp_loggedin_user_url( 37 array( 38 'single_item_component' => $custom_friends_slug, 39 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $friends_slug . '_my_friends', 'my-friends' ), 40 ) 41 ); 35 $link = bp_loggedin_user_url( bp_members_get_path_chunks( array( $friends_slug, 'my-friends' ) ) ); 42 36 43 37 // $action and $amount are used to generate dynamic filter names. … … 61 55 'new', 62 56 1, 63 bp_loggedin_user_url( 64 array( 65 'single_item_component' => $custom_friends_slug, 66 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $friends_slug . '_requests', 'requests' ), 67 ) 68 ) 57 bp_loggedin_user_url( bp_members_get_path_chunks( array( $friends_slug, 'requests' ) ) ) 69 58 ); 70 59
Note: See TracChangeset
for help on using the changeset viewer.