Skip to content

Commit

Permalink
Prepare 3.1.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
catscarlet committed Jun 2, 2023
1 parent 6baa9ed commit e04f88d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.1.1

- Fix an issue that may cause error messages show multiply times.

## 3.1.0

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.
Expand Down
3 changes: 1 addition & 2 deletions wp-ipip.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: WP-IPIP
Plugin URI: https://github.com/catscarlet/wp-ipip
Description: 根据评论 IP 地址定位物理地址,使用 IPIP.net 数据库。
Version: 3.1.0
Version: 3.1.1
Author: 石樱灯笼
Author URI: https://www.catscarlet.com
*/
Expand Down Expand Up @@ -69,6 +69,5 @@ function wp_ipip($comment_text, $comment = null)

$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>';


return $wpipip.$wpipip_mobile.$comment_text;
}

0 comments on commit e04f88d

Please sign in to comment.