@@ 1425-1434 (lines=10) @@ | ||
1422 | $comment_content = wp_specialchars_decode( $comment->comment_content ); |
|
1423 | ||
1424 | switch ( $comment->comment_type ) { |
|
1425 | case 'trackback': |
|
1426 | $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; |
|
1427 | /* translators: 1: website name, 2: website IP, 3: website hostname */ |
|
1428 | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
|
1429 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
|
1430 | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
|
1431 | $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; |
|
1432 | /* translators: 1: blog name, 2: post title */ |
|
1433 | $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); |
|
1434 | break; |
|
1435 | case 'pingback': |
|
1436 | $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
|
1437 | /* translators: 1: website name, 2: website IP, 3: website hostname */ |
|
@@ 1435-1444 (lines=10) @@ | ||
1432 | /* translators: 1: blog name, 2: post title */ |
|
1433 | $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); |
|
1434 | break; |
|
1435 | case 'pingback': |
|
1436 | $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
|
1437 | /* translators: 1: website name, 2: website IP, 3: website hostname */ |
|
1438 | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
|
1439 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
|
1440 | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
|
1441 | $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; |
|
1442 | /* translators: 1: blog name, 2: post title */ |
|
1443 | $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); |
|
1444 | break; |
|
1445 | default: // Comments |
|
1446 | $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
|
1447 | /* translators: 1: comment author, 2: author IP, 3: author domain */ |
|
@@ 1593-1600 (lines=8) @@ | ||
1590 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
|
1591 | $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; |
|
1592 | break; |
|
1593 | default: // Comments |
|
1594 | $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
|
1595 | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
|
1596 | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
|
1597 | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
|
1598 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
|
1599 | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
|
1600 | break; |
|
1601 | } |
|
1602 | ||
1603 | $notify_message .= sprintf( __( 'Approve it: %s' ), admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" ) ) . "\r\n"; |