Ticket #15281: 15281.patch
| File 15281.patch, 2.2 KB (added by , 11 years ago) |
|---|
-
wp-admin/edit-form-comment.php
91 91 <label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?></label> 92 92 </div> 93 93 94 <?php if ( $ip = get_comment_author_IP() ) : ?>95 <div class="misc-pub-section misc-pub-comment-author-ip">96 <?php _e( 'IP address:' ); ?> <strong><a href="<?php echo esc_url( sprintf( 'http://whois.arin.net/rest/ip/%s', $ip ) ); ?>"><?php echo esc_html( $ip ); ?></a></strong>97 </div>98 <?php endif; ?>99 100 94 <div class="misc-pub-section curtime misc-pub-curtime"> 101 95 <?php 102 96 /* translators: Publish box date format, see http://php.net/date */ … … 133 127 </div> 134 128 <?php endif; ?> 135 129 130 <?php 131 /** 132 * Add additional miscellaneous actions to the edit comment form sidebar. 133 * 134 * @since 4.2.0 135 * 136 * @param string Output HTML to display miscellaneous action. 137 * @param object $comment Current comment object. 138 */ 139 echo apply_filters( 'edit_comment_misc_actions', '', $comment ); 140 ?> 141 136 142 </div> <!-- misc actions --> 137 143 <div class="clear"></div> 138 144 </div> -
wp-includes/pluggable.php
1441 1441 $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1442 1442 $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n"; 1443 1443 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1444 $notify_message .= sprintf( __( 'Whois: %s' ), "http://whois.arin.net/rest/ip/{$comment->comment_author_IP}" ) . "\r\n";1445 1444 $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; 1446 1445 $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; 1447 1446 /* translators: 1: blog name, 2: post title */