Make WordPress Core


Ignore:
Timestamp:
12/17/2004 10:25:00 AM (21 years ago)
Author:
saxmatt
Message:

Comment notification fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-functions.php

    r1969 r1970  
    726726function wp_notify_moderator($comment_id) {
    727727    global $wpdb;
    728     global $querystring_start, $querystring_equal, $querystring_separator;
    729728
    730729    if( get_settings( "moderation_notify" ) == 0 )
     
    738737    $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'");
    739738
    740     $notify_message  = "A new comment on the post #$comment->comment_post_ID \"".$post->post_title."\" is waiting for your approval\r\n\r\n";
    741     $notify_message .= "Author : $comment->comment_author (IP: $comment->comment_author_IP , $comment_author_domain)\r\n";
     739    $notify_message  = "A new comment on the post #$comment->comment_post_ID \"".$post->post_title."\" is waiting for your approval\n";
     740    $notify_message .= get_permalink($comment->comment_post_ID);
     741    $notify_message .= "\n\nAuthor : $comment->comment_author (IP: $comment->comment_author_IP , $comment_author_domain)\r\n";
    742742    $notify_message .= "E-mail : $comment->comment_author_email\r\n";
    743743    $notify_message .= "URL    : $comment->comment_author_url\r\n";
     
    749749    $notify_message .= get_settings('siteurl') . "/wp-admin/moderation.php\r\n";
    750750
    751     $subject = '[' . get_settings('blogname') . '] Please approve: "' .$post->post_title.'"';
     751    $subject = '[' . get_settings('blogname') . '] Please moderate: "' .$post->post_title.'"';
    752752    $admin_email = get_settings("admin_email");
    753753    $from  = "From: $admin_email";
Note: See TracChangeset for help on using the changeset viewer.