I've added mailing triggers to wp_notify_postauthor and wp_notify_moderator to know when each one is called.
I create test user with role of author.
I author test post by that user.
I post anonymous comment on that post.
I should receive an email to the admin/moderation account triggered by wp_notify_moderator and one to the test user triggered by wp_notify_postauthor.
I receive emails to both admin and author triggered by wp_notify_moderator. I can't get the wp_notify_postauthor to fire.
Do I misunderstand the expected behavior of these functions? I really want to turn off author notifications, so I thought I could just redefine wp_notify_postauthor to return true but it doesn't seem to work.