Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/29/2011 11:06:58 PM (14 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-messages/bp-messages-template.php

    r5329 r5417  
    255255    function bp_get_message_thread_delete_link() {
    256256        global $messages_template, $bp;
    257         return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/delete/' . $messages_template->thread->thread_id, 'messages_delete_thread' ) );
     257        return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/delete/' . $messages_template->thread->thread_id ), 'messages_delete_thread' ) );
    258258    }
    259259
     
    480480
    481481        if ( 1 == (int)$messages_template->thread->is_active ) {
    482             $link = wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/deactivate/' . $messages_template->thread->id, 'messages_deactivate_notice' );
     482            $link = wp_nonce_url( trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/deactivate/' . $messages_template->thread->id ), 'messages_deactivate_notice' );
    483483        } else {
    484             $link = wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/activate/' . $messages_template->thread->id, 'messages_activate_notice' );
     484            $link = wp_nonce_url( trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/activate/' . $messages_template->thread->id ), 'messages_activate_notice' );
    485485        }
    486486        return apply_filters( 'bp_get_message_activate_deactivate_link', $link );
Note: See TracChangeset for help on using the changeset viewer.