Don't send notifications for comments too early
|Reported by:||mrmist||Owned by:|
Not sure if this classes as a bug or enhancement, will call it an enhancement for now.
In wp_set_comment_status the notifications are currently sent out before the work is done, and there is potential for the subsequent work to fail (due to database issue etc.)
Attached patch (attempts to) move the notification so it is only sent after the work is done.