Make WordPress Core

Changeset 27567


Ignore:
Timestamp:
03/17/2014 08:19:29 PM (11 years ago)
Author:
nacin
Message:

Use get_comment_link() in wp_notify_postauthor().

Fixes pagination for the link directly to the moderated comment.

props eatingrules.
fixes #26133.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r27484 r27567  
    11331133    }
    11341134    $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n";
    1135     $notify_message .= sprintf( __('Permalink: %s'), get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id ) . "\r\n";
     1135    $notify_message .= sprintf( __('Permalink: %s'), get_comment_link( $comment_id ) ) . "\r\n";
    11361136
    11371137    if ( user_can( $post->post_author, 'edit_comment', $comment_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.