Make WordPress Core

Ticket #15281: 15281.patch

File 15281.patch, 2.2 KB (added by joedolson, 11 years ago)

Remove arin.net links from email and comment edit.

  • wp-admin/edit-form-comment.php

     
    9191<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>
    9292</div>
    9393
    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 
    10094<div class="misc-pub-section curtime misc-pub-curtime">
    10195<?php
    10296/* translators: Publish box date format, see http://php.net/date */
     
    133127</div>
    134128<?php endif; ?>
    135129
     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
    136142</div> <!-- misc actions -->
    137143<div class="clear"></div>
    138144</div>
  • wp-includes/pluggable.php

     
    14411441                        $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    14421442                        $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n";
    14431443                        $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";
    14451444                        $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n";
    14461445                        $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n";
    14471446                        /* translators: 1: blog name, 2: post title */