Opened 18 years ago
Closed 17 years ago
#8862 closed defect (bug) (worksforme)
The delete_comment action is raised twice.
| Reported by: | Jehan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Comments | Version: | 2.7 |
| Severity: | normal | Keywords: | reporter-feedback needs-patch needs-testing |
| Cc: | Focuses: |
Description
Hi,
I have a hook on a delete_comment action. When I delete a comment, it works well but... twice, though my code has clearly only one add_action hook on it.
For my problem, it is fortunately not a big issue... But it is still a bug, and maybe more annoying for other people.
It has been seen on the latest released version (2.7).
Change History (5)
#2
@
17 years ago
he's meaning that if you add an option that increments a counter when the delete_comment hook gets fired, it gets triggered twice.
it *could* be that both the "normal" delete action (through http post) and the ajax delete action get fired, else I really can't see how this can possibly occur.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Sorry, what do you mean by deleted twice? Could you show/explain your code?