#14078 closed enhancement (fixed)
Don't send notifications for comments too early
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | minor | Version: | 3.0 |
Component: | Comments | Keywords: | |
Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (10)
#1
@
15 years ago
- Milestone changed from Unassigned to Future Release
I think there is a typo in your patch, you have commented $comment out.
#2
@
15 years ago
Think that's ok.. $comment is already set by that stage. Not sure why I left the comment in... Rush job.
#5
@
10 years ago
- Keywords needs-patch added; has-patch needs-testing removed
This patch changes the conditions under which the notification can be sent. Note the multiple possible values for the condition in the switch statement.
Note: See
TracTickets for help on using
tickets.
Move notifications