Go to file
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
src Comments: Check if `wp_new_comment()` returns an error. 2017-10-23 22:11:11 +00:00
tests Comments: Check if `wp_new_comment()` returns an error. 2017-10-23 22:11:11 +00:00
tools/i18n
.editorconfig General: Remove `.jshintrc` and `*.json` from the 2-space-indent `.editorconfig` group. 2017-10-12 01:57:45 +00:00
.gitignore
.jshintrc General: Remove `.jshintrc` and `*.json` from the 2-space-indent `.editorconfig` group. 2017-10-12 01:57:45 +00:00
.travis.yml
Gruntfile.js Media: Add missing `mediaelement-migrate.js` script to get uglified. 2017-10-18 02:25:06 +00:00
jsdoc.conf.json
package.json Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
phpunit.xml.dist
webpack.config.dev.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
webpack.config.prod.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php