Skip to:
Content

BuddyPress.org

Changeset 5418


Ignore:
Timestamp:
11/29/2011 11:09:34 PM (12 years ago)
Author:
boonebgorges
Message:

Ensures links are constructed with trailing slash in settings and xprofile components. Fixes #3779

Location:
trunk/bp-xprofile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-screens.php

    r5329 r5418  
    3838    // Make sure a group is set.
    3939    if ( !bp_action_variable( 1 ) )
    40         bp_core_redirect( bp_displayed_user_domain() . $bp->profile->slug . '/edit/group/1' );
     40        bp_core_redirect( trailingslashit( bp_displayed_user_domain() . $bp->profile->slug . '/edit/group/1' ) );
    4141
    4242    // Check the field group exists
  • trunk/bp-xprofile/bp-xprofile-template.php

    r5329 r5418  
    717717
    718718        if ( !empty( $groups[$i]->fields ) ) {
    719             $link = $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id;
     719            $link = trailingslashit( $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id );
    720720            $tabs[] = sprintf( '<li %1$s><a href="%2$s">%3$s</a></li>', $selected, $link, esc_html( $groups[$i]->name ) );
    721721        }
Note: See TracChangeset for help on using the changeset viewer.