buddypress/tests/phpunit/testcases
r-a-y 9e6fa3262c 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.

Fixes #6894 (2.4-branch).

git-svn-id: https://buddypress.svn.wordpress.org/branches/2.4@10586 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2016-02-12 23:30:39 +00:00
..
activity Introduce fields parameter to bp_has_activities() stack. 2015-10-08 16:59:40 +00:00
admin bp_core_get_directory_page_ids() should skip bp_is_active() check in save context. 2015-03-10 15:23:36 +00:00
blogs Blogs: Record activity item for blog post if it doesn't exist when a post comment is posted. 2015-10-14 16:37:30 +00:00
core Tests: Fix avatar test due to changes in #6737. (2.4 branch) 2015-12-03 16:04:51 +00:00
friends Fix SQL syntax error in BP_Friends_Friendship::search_friends(). 2015-07-02 12:54:28 +00:00
groups Groups: new function to get groups from which a user is banned. 2015-10-10 13:07:23 +00:00
members Tests: Update members search pagination test. (2.4 branch) 2015-12-03 16:08:50 +00:00
messages Messages: Return generic WP Error in messages_new_message() when necessary. 2016-02-12 23:30:39 +00:00
notifications Notifications: Tests for all_for_user cache deletion. 2015-05-21 20:05:12 +00:00
routing URI: Allow root profiles to work when the 'Members' page is nested. 2015-10-08 04:52:31 +00:00
settings Improve sanitization of email notification settings. 2015-11-11 03:22:53 +00:00
xprofile Merge similar translation strings throughout BuddyPress. 2015-10-14 16:03:03 +00:00