Wordpress/tests
Peter Wilson 733a81d74d Comments: Check if `wp_new_comment()` returns an error.
Adds checks throughout to allow for `wp_new_comment()` returning a `WP_Error` instance.

Updates the docs for the `pre_comment_approved` filter to include that it can be passed an error.

Props enrico.sorcinelli, ryotsun.
Fixes #39730.



git-svn-id: https://develop.svn.wordpress.org/trunk@41980 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-23 22:11:11 +00:00
..
phpunit Comments: Check if `wp_new_comment()` returns an error. 2017-10-23 22:11:11 +00:00
qunit Customize: Allow menu creation in locations pane 2017-10-18 14:50:34 +00:00