WordPress.org

Make WordPress Core

Ticket #43805: 43805.diff

File 43805.diff, 718 bytes (added by danieltj, 17 months ago)

Include post parent URL in notify mod email

  • wp-includes/pluggable.php

    diff --git wp-includes/pluggable.php wp-includes/pluggable.php
    index 32fab32..7d9f896 100644
    function wp_notify_moderator($comment_id) { 
    16581658                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
    16591659                        /* translators: 1: Comment text */
    16601660                        $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
     1661                        if ( 0 !== $comment->comment_parent ) {
     1662                                /* translators: Comment parent. 1: Comment parent URL */
     1663                                $notify_message .= sprintf( __( 'In reply to: %s' ), admin_url( "comment.php?action=editcomment&c={$comment->comment_parent}" ) ) . "\r\n";
     1664                        }
    16611665                        break;
    16621666        }
    16631667