Changeset 13034
- Timestamp:
- 08/09/2021 10:00:02 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-notifications.php
r12893 r13034 615 615 * @param string $notification_link The permalink for notification. 616 616 */ 617 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name );617 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link ); 618 618 } else { 619 619 -
trunk/src/bp-notifications/actions/bulk-manage.php
r11933 r13034 64 64 } 65 65 66 // URL to redirect to. 67 if ( bp_is_current_action( 'unread' ) ) { 68 $redirect = bp_get_notifications_unread_permalink( bp_displayed_user_id() ); 69 } elseif ( bp_is_current_action( 'read' ) ) { 70 $redirect = bp_get_notifications_read_permalink( bp_displayed_user_id() ); 71 } 72 66 73 // Redirect. 67 bp_core_redirect( bp_displayed_user_domain() . bp_get_notifications_slug() . '/' . bp_current_action() . '/');74 bp_core_redirect( $redirect ); 68 75 } 69 76 add_action( 'bp_actions', 'bp_notifications_action_bulk_manage' ); -
trunk/src/bp-notifications/actions/delete.php
r11933 r13034 39 39 } 40 40 41 // URL to redirect to. 42 if ( bp_is_current_action( 'unread' ) ) { 43 $redirect = bp_get_notifications_unread_permalink( bp_displayed_user_id() ); 44 } elseif ( bp_is_current_action( 'read' ) ) { 45 $redirect = bp_get_notifications_read_permalink( bp_displayed_user_id() ); 46 } 47 41 48 // Redirect. 42 bp_core_redirect( bp_displayed_user_domain() . bp_get_notifications_slug() . '/' . bp_current_action() . '/');49 bp_core_redirect( $redirect ); 43 50 } 44 51 add_action( 'bp_actions', 'bp_notifications_action_delete' ); -
trunk/src/bp-notifications/bp-notifications-template.php
r12646 r13034 158 158 * @param int $user_id The user ID. 159 159 */ 160 return apply_filters( 'bp_get_notifications_ unread_permalink', $retval, $user_id );160 return apply_filters( 'bp_get_notifications_read_permalink', $retval, $user_id ); 161 161 } 162 162 -
trunk/src/bp-notifications/screens/read.php
r11933 r13034 64 64 65 65 // Redirect. 66 bp_core_redirect( bp_ displayed_user_domain() . bp_get_notifications_slug() . '/read/');66 bp_core_redirect( bp_get_notifications_read_permalink( bp_displayed_user_id() ) ); 67 67 } 68 68 add_action( 'bp_actions', 'bp_notifications_action_mark_unread' ); -
trunk/src/bp-notifications/screens/unread.php
r11933 r13034 64 64 65 65 // Redirect. 66 bp_core_redirect( bp_ displayed_user_domain() . bp_get_notifications_slug() . '/unread/');66 bp_core_redirect( bp_get_notifications_unread_permalink( bp_displayed_user_id() ) ); 67 67 } 68 68 add_action( 'bp_actions', 'bp_notifications_action_mark_read' );
Note: See TracChangeset
for help on using the changeset viewer.