mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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