Make WordPress Core

Ticket #15281: 15281.2.patch

File 15281.2.patch, 2.9 KB (added by rachelbaker, 11 years ago)

Refreshed patch and removed Whois from wp_notify_moderator message

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

     
    8383<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>
    8484</fieldset>
    8585
    86 <?php if ( $ip = get_comment_author_IP() ) : ?>
    87 <div class="misc-pub-section misc-pub-comment-author-ip">
    88         <span aria-hidden="true"><?php _e( 'IP address:' ); ?></span> <strong><a href="<?php echo esc_url( sprintf( 'http://whois.arin.net/rest/ip/%s', $ip ) ); ?>"> <span class="screen-reader-text"><?php _e( 'IP address:' ); ?> </span><?php echo esc_html( $ip ); ?></a></strong>
    89 </div>
    90 <?php endif; ?>
    91 
    9286<div class="misc-pub-section curtime misc-pub-curtime">
    9387<?php
    9488/* translators: Publish box date format, see http://php.net/date */
     
    134128</div>
    135129<?php endif; ?>
    136130
     131<?php
     132        /**
     133         * Add additional miscellaneous actions to the edit comment form sidebar.
     134         *
     135         * @since 4.3.0
     136         *
     137         * @param string Output HTML to display miscellaneous action.
     138         * @param object $comment Current comment object.
     139         */
     140         echo apply_filters( 'edit_comment_misc_actions', '', $comment );
     141?>
     142
    137143</div> <!-- misc actions -->
    138144<div class="clear"></div>
    139145</div>
  • src/wp-includes/pluggable.php

     
    14621462                        $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    14631463                        $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n";
    14641464                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
    1465                         $notify_message .= sprintf( __( 'Whois: %s' ), "http://whois.arin.net/rest/ip/{$comment->comment_author_IP}" ) . "\r\n";
    14661465                        $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n";
    14671466                        $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n";
    14681467                        /* translators: 1: blog name, 2: post title */
     
    15931592                        $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    15941593                        $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n";
    15951594                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
    1596                         $notify_message .= sprintf( __( 'Whois: %s' ), "http://whois.arin.net/rest/ip/{$comment->comment_author_IP}" ) . "\r\n";
    15971595                        $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n";
    15981596                        break;
    15991597        }