buddypress/tests/phpunit
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
..
assets Allow class extending the BP_Attachment class to get the original WordPress upload dir within their upload_dir_filter() method. 2015-10-06 23:53:33 +00:00
includes Unit Tests: Fix resetting of temporary $cached_SERVER_NAME property. 2015-10-22 00:33:18 +00:00
testcases Messages: Return generic WP Error in messages_new_message() when necessary. 2016-02-12 23:30:39 +00:00
bootstrap.php Grunt: move phpUnit tests into new, top-level tests folder. 2014-05-04 12:57:55 +00:00
multisite.xml Grunt: move phpUnit tests into new, top-level tests folder. 2014-05-04 12:57:55 +00:00