mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
[34106] moved post author notification to a hook, and in the process, missed the 'spam' check. This changeset restores that check. To make unit testing easier, the notification callbacks have been refactored to return values: false when various conditions aren't met (eg, approved comments should not trigger moderation emails), and the return value of the `wp_notify_*()` function otherwise. Props cfinke, kraftbj. See #33587. git-svn-id: https://develop.svn.wordpress.org/trunk@34250 602fd350-edb4-49c9-b593-d223f7449a82