Use get_comment_link() in wp_notify_postauthor().
Fixes pagination for the link directly to the moderated comment. props eatingrules. fixes #26133. git-svn-id: https://develop.svn.wordpress.org/trunk@27567 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c35a53f8bc
commit
7fa7c1340e
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user