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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user