Added delete link to comment notification mail.

Contribution from Craig R Hughes craig at hughes-family dot org


git-svn-id: https://develop.svn.wordpress.org/trunk@524 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little
2003-11-05 00:11:03 +00:00
parent e2a1a8ff47
commit 67d98d79de
2 changed files with 7 additions and 1 deletions

View File

@@ -356,7 +356,11 @@ switch($action) {
$result = $wpdb->query("DELETE FROM $tablecomments WHERE comment_ID=$comment");
header ('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
if($HTTP_SERVER_VARS['HTTP_REFERER'] != "") {
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
} else {
header('Location: '.$siteurl.'/wp-admin/');
}
break;