Make WordPress Core

Ticket #44998: 44998.diff

File 44998.diff, 1.8 KB (added by ramonopoly, 6 years ago)

Adding a patch to make the translator's comments consistent

  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index 703598bbb6..d46a410638 100644
    a b if ( ! function_exists( 'wp_notify_postauthor' ) ) : 
    15541554                        default: // Comments
    15551555                                /* translators: %s: post title */
    15561556                                $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n";
    1557                                 /* translators: 1: comment author, 2: comment author's IP address, 3: comment author's hostname */
     1557                                /* translators: 1: comment author's name, 2: comment author's IP address, 3: comment author's hostname */
    15581558                                $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    15591559                                /* translators: %s: comment author email */
    15601560                                $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
    if ( ! function_exists( 'wp_notify_moderator' ) ) : 
    17241724                                /* translators: %s: post title */
    17251725                                $notify_message  = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
    17261726                                $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
    1727                                 /* translators: 1: comment author name, 2: comment author's IP address, 3: comment author's hostname */
     1727                                /* translators: 1: comment author's name, 2: comment author's IP address, 3: comment author's hostname */
    17281728                                $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    17291729                                /* translators: %s: comment author email */
    17301730                                $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";