From 98e7f76197e97c0377b0f7d583b91f748926c8a5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 31 Aug 2010 18:24:41 +0000 Subject: [PATCH] Link directly to comment in email notification. Props lancewillett. fixes #12797 git-svn-id: https://develop.svn.wordpress.org/trunk@15553 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index b519832303..e4073a7fd8 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1048,6 +1048,7 @@ function wp_notify_postauthor($comment_id, $comment_type='') { $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); } $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n"; + $notify_message .= sprintf( __('Permalink : %s'), get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id ) . "\r\n"; if ( EMPTY_TRASH_DAYS ) $notify_message .= sprintf( __('Trash it: %s'), admin_url("comment.php?action=trash&c=$comment_id") ) . "\r\n"; else