Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/29/2011 11:06:58 PM (13 years ago)
Author:
boonebgorges
Message:

Ensures links are constructed with trailing slash in groups, members, and messages components. See #3779

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-activity.php

    r5302 r5417  
    130130                $text = sprintf( __( '%d accepted group membership requests', 'buddypress' ), (int)$total_items, $group->name );
    131131                $filter = 'bp_groups_multiple_membership_request_accepted_notification';
    132                 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1';
     132                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
    133133
    134134                if ( 'string' == $format ) {
     
    166166                $text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int)$total_items, $group->name );
    167167                $filter = 'bp_groups_multiple_membership_request_rejected_notification';
    168                 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1';
     168                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
    169169
    170170                if ( 'string' == $format ) {
     
    202202                $text = sprintf( __( 'You were promoted to an admin in %d groups', 'buddypress' ), (int)$total_items );
    203203                $filter = 'bp_groups_multiple_member_promoted_to_admin_notification';
    204                 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1';
     204                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
    205205
    206206                if ( 'string' == $format ) {
     
    238238                $text = sprintf( __( 'You were promoted to a mod in %d groups', 'buddypress' ), (int)$total_items );
    239239                $filter = 'bp_groups_multiple_member_promoted_to_mod_notification';
    240                 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1';
     240                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
    241241
    242242                if ( 'string' == $format ) {
Note: See TracChangeset for help on using the changeset viewer.