Added missing API hooks.

git-svn-id: https://develop.svn.wordpress.org/trunk@1013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-03-25 20:28:09 +00:00
parent 84635f1a44
commit a45c044297
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: