Added missing API hooks.
git-svn-id: https://develop.svn.wordpress.org/trunk@1013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
84635f1a44
commit
a45c044297
|
@ -534,6 +534,7 @@ switch($action) {
|
||||||
die ('You don’t have the right to delete <strong>'.$authordata->user_nickname.'</strong>’s post comments. <a href="post.php">Go back</a>!');
|
die ('You don’t have the right to delete <strong>'.$authordata->user_nickname.'</strong>’s post comments. <a href="post.php">Go back</a>!');
|
||||||
|
|
||||||
wp_set_comment_status($comment, "delete");
|
wp_set_comment_status($comment, "delete");
|
||||||
|
do_action('delete_comment', $comment);
|
||||||
|
|
||||||
if (($HTTP_SERVER_VARS['HTTP_REFERER'] != "") && (false == $noredir)) {
|
if (($HTTP_SERVER_VARS['HTTP_REFERER'] != "") && (false == $noredir)) {
|
||||||
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
||||||
|
@ -678,7 +679,7 @@ switch($action) {
|
||||||
$referredby = $HTTP_POST_VARS['referredby'];
|
$referredby = $HTTP_POST_VARS['referredby'];
|
||||||
if (!empty($referredby)) header('Location: ' . $referredby);
|
if (!empty($referredby)) header('Location: ' . $referredby);
|
||||||
else header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
|
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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue