Changeset 10286 for trunk/src/bp-messages/bp-messages-actions.php
- Timestamp:
- 10/19/2015 07:47:01 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-messages/bp-messages-actions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-actions.php
r10139 r10286 85 85 86 86 // Attempt to send the message 87 $ thread_id= messages_new_message( array(87 $send = messages_new_message( array( 88 88 'recipients' => $recipients, 89 89 'subject' => $_POST['subject'], 90 'content' => $_POST['content'] 90 'content' => $_POST['content'], 91 'error_type' => 'wp_error' 91 92 ) ); 92 93 93 94 // Send the message and redirect to it 94 if ( ! empty( $thread_id ) ) {95 if ( true === is_int( $send ) ) { 95 96 $success = true; 96 97 $feedback = __( 'Message successfully sent.', 'buddypress' ); 97 98 $view = trailingslashit( $member_messages . 'view' ); 98 $redirect_to = trailingslashit( $view . $ thread_id );99 $redirect_to = trailingslashit( $view . $send ); 99 100 100 101 // Message could not be sent 101 102 } else { 102 103 $success = false; 103 $feedback = __( 'Message was not sent. Please try again.', 'buddypress');104 $feedback = $send->get_error_message(); 104 105 } 105 106 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)