Added missing API hooks.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-03-25 20:28:09 +00:00
parent 0c1e3856b6
commit 80ea451b18
1 changed files with 2 additions and 1 deletions

View File

@ -534,6 +534,7 @@ switch($action) {
die ('You don&#8217;t have the right to delete <strong>'.$authordata->user_nickname.'</strong>&#8217;s post comments. <a href="post.php">Go back</a>!');
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: