From a45c044297ca3f7ea56b2bef5e88974187d6cf95 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 25 Mar 2004 20:28:09 +0000 Subject: [PATCH] Added missing API hooks. git-svn-id: https://develop.svn.wordpress.org/trunk@1013 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index c3c56aa298..a229412b04 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -534,6 +534,7 @@ switch($action) { die ('You don’t have the right to delete '.$authordata->user_nickname.'’s post comments. Go back!'); wp_set_comment_status($comment, "delete"); + do_action('delete_comment', $comment); if (($HTTP_SERVER_VARS['HTTP_REFERER'] != "") && (false == $noredir)) { header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']); @@ -678,7 +679,7 @@ switch($action) { $referredby = $HTTP_POST_VARS['referredby']; if (!empty($referredby)) header('Location: ' . $referredby); else header ("Location: edit.php?p=$comment_post_ID&c=1#comments"); - do_action('edit_comment', $post_ID); + do_action('edit_comment', $comment_ID); break; default: