Re: Persistent Caching and Private Messaging
No need to hack BP.
Put the following in your theme’s functions.php:
`
function ray_bp_get_send_public_message_link() {
global $bp;
return wp_nonce_url( $bp->loggedin_user->domain . $bp->activity->slug . ‘/?r=’ . $bp->displayed_user->userdata->user_login );
}
add_filter( ‘bp_get_send_public_message_link’, ‘ray_bp_get_send_public_message_link’ );
function ray_bp_get_send_private_message_link() {
global $bp;
return wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . ‘/compose/?r=’ . $bp->displayed_user->userdata->user_login );
}
add_filter( ‘bp_get_send_private_message_link’, ‘ray_bp_get_send_private_message_link’ );`