Skip to content

Commit

Permalink
Glitch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
solstice23 committed Jan 6, 2022
1 parent 9b82aea commit f88a1a3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions unsubscribe-comment-mailnotice.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<?php
require(preg_replace('/wp-content(.*?)$/', '', dirname( __FILE__ )) . 'wp-blog-header.php');
header('HTTP/1.1 200 OK');
$id = $_GET['comment'];
$token = $_GET['token'];
if (get_comment($id) == null){
$id = intval($_GET['comment'] ?? -1);
$token = $_GET['token'] ?? "";
if ($id == -1) {
$page_title = __('参数错误', 'argon');
$title = "<i class='fa fa-close' style='color: #f5365c;margin-right: 12px;'></i>" . __("错误", 'argon');
$info = __("提供的参数错误", 'argon');
}
else if (get_comment($id) == null){
$page_title = __('评论不存在', 'argon');
$title = "<i class='fa fa-close' style='color: #f5365c;margin-right: 12px;'></i>" . __("错误", 'argon');
$info = __("评论 #", 'argon') . $id . __(" 不存在", 'argon');
Expand Down

0 comments on commit f88a1a3

Please sign in to comment.