Changeset 1970
- Timestamp:
- 12/17/04 10:25:00 (4 years ago)
- Files:
-
- trunk/wp-includes/comment-functions.php (modified) (3 diffs)
- trunk/wp-includes/functions-post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/comment-functions.php
r1969 r1970 726 726 function wp_notify_moderator($comment_id) { 727 727 global $wpdb; 728 global $querystring_start, $querystring_equal, $querystring_separator;729 728 730 729 if( get_settings( "moderation_notify" ) == 0 ) … … 738 737 $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'"); 739 738 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"; 742 742 $notify_message .= "E-mail : $comment->comment_author_email\r\n"; 743 743 $notify_message .= "URL : $comment->comment_author_url\r\n"; … … 749 749 $notify_message .= get_settings('siteurl') . "/wp-admin/moderation.php\r\n"; 750 750 751 $subject = '[' . get_settings('blogname') . '] Please approve: "' .$post->post_title.'"';751 $subject = '[' . get_settings('blogname') . '] Please moderate: "' .$post->post_title.'"'; 752 752 $admin_email = get_settings("admin_email"); 753 753 $from = "From: $admin_email"; trunk/wp-includes/functions-post.php
r1964 r1970 427 427 428 428 if ( !$approved ) 429 wp_notify_moderator($comment_ ID);429 wp_notify_moderator($comment_id); 430 430 431 431 if ( get_settings('comments_notify') && $approved ) 432 wp_notify_postauthor($comment_ ID, 'comment');432 wp_notify_postauthor($comment_id, 'comment'); 433 433 434 434 return $result;
