Added delete link to comment notification mail.

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


git-svn-id: http://svn.automattic.com/wordpress/trunk@524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle
2003-11-05 00:11:03 +00:00
parent df4544620c
commit f76b19dde7
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;