Skip to:
Content

BuddyPress.org

Changeset 8696


Ignore:
Timestamp:
07/27/2014 12:53:08 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Replace $bp global touches in messages_screen_compose() with calls to bp_get_messages_slug().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-screens.php

    r8695 r8696  
    4545 */
    4646function messages_screen_compose() {
    47     global $bp;
    4847
    4948    if ( bp_action_variables() ) {
     
    6968                if ( messages_send_notice( $_POST['subject'], $_POST['content'] ) ) {
    7069                    bp_core_add_message( __( 'Notice sent successfully!', 'buddypress' ) );
    71                     bp_core_redirect( bp_loggedin_user_domain() . $bp->messages->slug . '/inbox/' );
     70                    bp_core_redirect( bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox/' );
    7271                } else {
    7372                    bp_core_add_message( __( 'There was an error sending that notice, please try again', 'buddypress' ), 'error' );
     
    8887                if ( ! empty( $thread_id ) ) {
    8988                    bp_core_add_message( __( 'Message sent successfully!', 'buddypress' ) );
    90                     bp_core_redirect( bp_loggedin_user_domain() . $bp->messages->slug . '/view/' . $thread_id . '/' );
     89                    bp_core_redirect( bp_loggedin_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id . '/' );
    9190                } else {
    9291                    bp_core_add_message( __( 'There was an error sending that message, please try again', 'buddypress' ), 'error' );
Note: See TracChangeset for help on using the changeset viewer.