[buddypress-trac] [BuddyPress Trac] #6894: BP Messages - Causes PHP Error - Wrong call of a function

buddypress-trac noreply at wordpress.org
Fri Feb 12 23:29:34 UTC 2016


#6894: BP Messages - Causes PHP Error - Wrong call of a function
-----------------------------------+--------------------
 Reporter:  Jon Ziemlich           |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  2.4.4
Component:  Component - Messaging  |     Version:  2.4.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch              |
-----------------------------------+--------------------

Comment (by r-a-y):

 In [changeset:"10585"]:
 {{{
 #!CommitTicketReference repository="" revision="10585"
 Messages: Return generic WP Error in `messages_new_message()` when
 necessary.

 In #6535, we added an `'error_type'` parameter in `messages_new_message()`
 that supports returning a WP Error object if error type is set to
 `'wp_error'`.  However, we did not return a WP error further down in the
 `messages_new_message()` function, which can result in a potential fatal
 error to occur.

 This commit rectifies this and includes a unit test.

 Anti-props r-a-y.

 See #6894 (trunk).
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6894#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list