From e7be7a0a8d2a88f41e851c754fc4535e41bab8dc Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 17 Mar 2014 20:20:15 +0000 Subject: [PATCH] Use get_comment_link() in wp_notify_postauthor(). Fixes pagination for the link directly to the moderated comment. props eatingrules. fixes #26133. Built from https://develop.svn.wordpress.org/trunk@27567 git-svn-id: http://core.svn.wordpress.org/trunk@27410 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 1f0723fe7c..ccdad5ae51 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1132,7 +1132,7 @@ function wp_notify_postauthor( $comment_id, $deprecated = null ) { break; } $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"; + $notify_message .= sprintf( __('Permalink: %s'), get_comment_link( $comment_id ) ) . "\r\n"; if ( user_can( $post->post_author, 'edit_comment', $comment_id ) ) { if ( EMPTY_TRASH_DAYS )