1562 | | $comment_content = wp_specialchars_decode( $comment->comment_content ); |
1563 | | |
1564 | | switch ( $comment->comment_type ) { |
1565 | | case 'trackback': |
1566 | | /* translators: %s: Post title. */ |
1567 | | $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; |
1568 | | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1569 | | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1570 | | /* translators: %s: Trackback/pingback/comment author URL. */ |
1571 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1572 | | /* translators: %s: Comment text. */ |
1573 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1574 | | $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; |
1575 | | /* translators: Trackback notification email subject. 1: Site title, 2: Post title. */ |
1576 | | $subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title ); |
1577 | | break; |
1578 | | case 'pingback': |
1579 | | /* translators: %s: Post title. */ |
1580 | | $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
1581 | | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1582 | | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1583 | | /* translators: %s: Trackback/pingback/comment author URL. */ |
1584 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1585 | | /* translators: %s: Comment text. */ |
1586 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1587 | | $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; |
1588 | | /* translators: Pingback notification email subject. 1: Site title, 2: Post title. */ |
1589 | | $subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title ); |
1590 | | break; |
1591 | | default: // Comments |
1592 | | /* translators: %s: Post title. */ |
1593 | | $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
1594 | | /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */ |
1595 | | $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1596 | | /* translators: %s: Comment author email. */ |
1597 | | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1598 | | /* translators: %s: Trackback/pingback/comment author URL. */ |
1599 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1600 | | /* translators: %s: Comment text. */ |
1601 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1602 | | $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; |
1603 | | /* translators: Comment notification email subject. 1: Site title, 2: Post title. */ |
1604 | | $subject = sprintf( __( '[%1$s] Comment: "%2$s"' ), $blogname, $post->post_title ); |
1605 | | break; |
1606 | | } |
| 1558 | |
| 1559 | /* translators: %s: Post title. */ |
| 1560 | $notify_message = sprintf( __( 'New response to your post "%s"' ), get_the_title( $post ) ) . "\r\n"; |
| 1561 | $notify_message .= _wp_get_comment_notify_summary( $comment ); |
| 1562 | |
| 1563 | /* translators: 1: blog name, 2: post title */ |
| 1564 | $subject = sprintf( __( '[%1$s] Response: "%2$s"' ), $blogname, get_the_title( $post ) ); |
| 1565 | |
| 1566 | $notify_message .= __( 'You can see all responses to this post here:' ) . "\r\n"; |
1742 | | $comment_content = wp_specialchars_decode( $comment->comment_content ); |
1743 | | |
1744 | | switch ( $comment->comment_type ) { |
1745 | | case 'trackback': |
1746 | | /* translators: %s: Post title. */ |
1747 | | $notify_message = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
1748 | | $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
1749 | | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1750 | | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1751 | | /* translators: %s: Trackback/pingback/comment author URL. */ |
1752 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1753 | | $notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; |
1754 | | break; |
1755 | | case 'pingback': |
1756 | | /* translators: %s: Post title. */ |
1757 | | $notify_message = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
1758 | | $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
1759 | | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1760 | | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1761 | | /* translators: %s: Trackback/pingback/comment author URL. */ |
1762 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1763 | | $notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; |
1764 | | break; |
1765 | | default: // Comments |
1766 | | /* translators: %s: Post title. */ |
1767 | | $notify_message = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
1768 | | $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
1769 | | /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */ |
1770 | | $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1771 | | /* translators: %s: Comment author email. */ |
1772 | | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1773 | | /* translators: %s: Trackback/pingback/comment author URL. */ |
1774 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1775 | | /* translators: %s: Comment text. */ |
1776 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1777 | | break; |
1778 | | } |
| 1698 | |
| 1699 | $notify_message = sprintf( __( 'A new response to the post "%s" is waiting for your approval' ), get_the_title( $post ) ) . "\r\n"; |
| 1700 | |
| 1701 | $notify_message .= _wp_get_comment_notify_summary( $comment ); |