Make WordPress Core

Ticket #31999: duplicate_comments.patch

File duplicate_comments.patch, 1.4 KB (added by pavelevap, 11 years ago)
  • src/wp-includes/pluggable.php

     
    14241424        switch ( $comment->comment_type ) {
    14251425                case 'trackback':
    14261426                        $notify_message  = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n";
    1427                         /* translators: 1: website name, 2: author IP, 3: author domain */
     1427                        /* translators: 1: website name, 2: website IP, 3: website hostname */
    14281428                        $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    14291429                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
    14301430                        $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n";
     
    14341434                        break;
    14351435                case 'pingback':
    14361436                        $notify_message  = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n";
    1437                         /* translators: 1: comment author, 2: author IP, 3: author domain */
    14381437                        $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    14391438                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
    14401439                        $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n";