Skip to:
Content

BuddyPress.org

Changeset 5414


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

Ensures links are constructed with trailing slash in activity component. See #3779

Location:
trunk/bp-activity
Files:
3 edited

Legend:

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

    r5297 r5414  
    8989    // Set redirect to users' activity stream
    9090    } else {
    91         $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . bp_get_activity_slug() . '/' . $activity->id;
     91        $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . bp_get_activity_slug() . '/' . $activity->id . '/';
    9292    }
    9393
  • trunk/bp-activity/bp-activity-akismet.php

    r5327 r5414  
    175175                'id'         => 'activity_make_spam_' . bp_get_activity_id(),
    176176                'link_class' => 'bp-secondary-action spam-activity confirm button item-button',
    177                 'link_href'  => wp_nonce_url( bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . bp_get_activity_id(), 'bp_activity_akismet_spam_' . bp_get_activity_id() ),
     177                'link_href'  => wp_nonce_url( bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . bp_get_activity_id() . '/', 'bp_activity_akismet_spam_' . bp_get_activity_id() ),
    178178                'link_text'  => __( 'Spam', 'buddypress' ),
    179179                'wrapper'    => false,
     
    204204                'id'         => 'activity_make_spam_' . bp_get_activity_comment_id(),
    205205                'link_class' => 'bp-secondary-action spam-activity-comment confirm',
    206                 'link_href'  => wp_nonce_url( bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . bp_get_activity_comment_id() . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_akismet_spam_' . bp_get_activity_comment_id() ),
     206                'link_href'  => wp_nonce_url( bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . bp_get_activity_comment_id() . '/?cid=' . bp_get_activity_comment_id(), 'bp_activity_akismet_spam_' . bp_get_activity_comment_id() ),
    207207                'link_text'  => __( 'Spam', 'buddypress' ),
    208208                'wrapper'    => false,
  • trunk/bp-activity/bp-activity-screens.php

    r5396 r5414  
    248248        is_user_logged_in() ?
    249249            bp_core_redirect( $bp->loggedin_user->domain ) :
    250             bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $bp->current_action ) ) );
     250            bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $bp->current_action . '/' ) ) );
    251251    }
    252252
Note: See TracChangeset for help on using the changeset viewer.