From 80ea451b183a3ffc13667699686bd4f409014f0c Mon Sep 17 00:00:00 2001 From: saxmatt Date: Thu, 25 Mar 2004 20:28:09 +0000 Subject: [PATCH] Added missing API hooks. git-svn-id: http://svn.automattic.com/wordpress/trunk@1013 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 c3c56aa29..a229412b0 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: