WordPress.org

Make WordPress Core

Ticket #43805: 43805.2.diff

File 43805.2.diff, 1011 bytes (added by andraganescu, 11 months ago)

Refreshed patch 43805.diff

  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index 3b81242f4d..418973ea92 100644
    a b function wp_notify_postauthor( $comment_id, $deprecated = null ) { 
    16021602                                $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
    16031603                                /* translators: %s: Trackback/pingback/comment author URL. */
    16041604                                $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
     1605                                if ( 0 !== $comment->comment_parent ) {
     1606                                        /* translators: Comment parent. 1: Comment parent URL */
     1607                                        $notify_message .= sprintf( __( 'In reply to: %s' ), admin_url( "comment.php?action=editcomment&c={$comment->comment_parent}" ) ) . "\r\n";
     1608                                }
    16051609                                /* translators: %s: Comment text. */
    16061610                                $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
    16071611                                $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n";