Skip to content

Commit e04f88d

Browse files
committed
Prepare 3.1.1 release
1 parent 6baa9ed commit e04f88d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Changelog_en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.1.1
4+
5+
- Fix an issue that may cause error messages show multiply times.
6+
37
## 3.1.0
48

59
You may get an unpredictable 403 Forbidden from IPIP.net, and any future request to IPIP.net will be blocked with mysterious reason. The entry is changed from 'window.open' to <a> link so that you can right-click and open it with Private-Browsing/Incognito-Mode.

wp-ipip.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: WP-IPIP
55
Plugin URI: https://github.com/catscarlet/wp-ipip
66
Description: 根据评论 IP 地址定位物理地址,使用 IPIP.net 数据库。
7-
Version: 3.1.0
7+
Version: 3.1.1
88
Author: 石樱灯笼
99
Author URI: https://www.catscarlet.com
1010
*/
@@ -69,6 +69,5 @@ function wp_ipip($comment_text, $comment = null)
6969

7070
$wpipip_mobile = '<div class="wp-ipip-comment" id="wp-ipip-mobile-prefix-'.$comment->comment_ID.'" style="display: none;"><a class="wp-ipip-link" ip="'.$comment->comment_author_IP.'" title="点击跳转到 IPIP.net 查看 '.$comment->comment_author_IP.' 详情">地址: '.$info.'</a></div>';
7171

72-
7372
return $wpipip.$wpipip_mobile.$comment_text;
7473
}

0 commit comments

Comments
 (0)