27558ed678
[34537] hooked `wp_new_comment_notify_postauthor()` to the 'wp_set_comment_status' when a comment had been approved. When performing multiple actions on a comment in the same request (as happens in `Tests_Ajax_DeleteComment::test_ajax_trash_double_action()`, and may happen sometimes in real life too), and when one of those actions involves deleting the comment, the `$comment_ID` passed to `wp_new_comment_notify_postauthor()` can correspond to an already-deleted comment. The `comment_status` check should account for this possibility. See #14078. git-svn-id: https://develop.svn.wordpress.org/trunk@34545 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
src | ||
tests | ||
tools/i18n | ||
.editorconfig | ||
.gitignore | ||
.jshintrc | ||
.travis.yml | ||
Gruntfile.js | ||
package.json | ||
phpunit.xml.dist | ||
wp-cli.yml | ||
wp-config-sample.php | ||
wp-tests-config-sample.php |