Changeset 10586 for branches/2.4/src/bp-messages/bp-messages-functions.php
- Timestamp:
- 02/12/2016 11:30:39 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/src/bp-messages/bp-messages-functions.php
r10304 r10586 175 175 176 176 // Bail if message failed to send. 177 if ( ! $message->send() ) { 177 $send = $message->send(); 178 if ( false === is_int( $send ) ) { 179 if ( 'wp_error' === $r['error_type'] ) { 180 if ( is_wp_error( $send ) ) { 181 return $send; 182 } else { 183 return new WP_Error( 'message_generic_error', __( 'Message was not sent. Please try again.', 'buddypress' ) ); 184 } 185 } 186 178 187 return false; 179 188 }
Note: See TracChangeset
for help on using the changeset viewer.