[buddypress-trac] [BuddyPress Trac] #6535: Entering an invalid username when composing a message shows generic error

buddypress-trac noreply at wordpress.org
Thu Jun 25 18:12:26 UTC 2015


#6535: Entering an invalid username when composing a message shows generic error
-----------------------------------+-----------------------
 Reporter:  r-a-y                  |      Owner:
     Type:  enhancement            |     Status:  new
 Priority:  normal                 |  Milestone:  2.4
Component:  Component - Messaging  |    Version:  1.0
 Severity:  normal                 |   Keywords:  has-patch
-----------------------------------+-----------------------
 When an invalid username is entered when composing a message, a generic
 error message is shown:

 > Message was not sent. Please try again.

 We should output a better error message for users.

 I've attached a patch that changes `messages_new_message()` to add an
 `$error_type` parameter.  When `$error_type` is 'wp_error', this uses the
 `WP_Error` API to return error messages.

 This will allow us to grab error messages without having to parse out all
 invalid recipients again in `bp_messages_action_create_message()`.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6535>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list