Ticket #15281: whois.diff

File whois.diff, 1.7 KB (added by ozh, 3 years ago)

correct arin link

Line 
1Index: wp-includes/pluggable.php
2===================================================================
3--- wp-includes/pluggable.php   (revision 16292)
4+++ wp-includes/pluggable.php   (working copy)
5@@ -1025,7 +1025,7 @@
6                $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
7                $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n";
8                $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
9-               $notify_message .= sprintf( __('Whois  : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s'), $comment->comment_author_IP ) . "\r\n";
10+               $notify_message .= sprintf( __('Whois  : http://whois.arin.net/rest/ip/%s'), $comment->comment_author_IP ) . "\r\n";
11                $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
12                $notify_message .= __('You can see all comments on this post here: ') . "\r\n";
13                /* translators: 1: blog name, 2: post title */
14@@ -1138,7 +1138,7 @@
15                        $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
16                        $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n";
17                        $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
18-                       $notify_message .= sprintf( __('Whois  : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s'), $comment->comment_author_IP ) . "\r\n";
19+                       $notify_message .= sprintf( __('Whois  : http://whois.arin.net/rest/ip/%s'), $comment->comment_author_IP ) . "\r\n";
20                        $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
21                        break;
22        }