1460 | | $comment_content = wp_specialchars_decode( $comment->comment_content ); |
1461 | | |
1462 | | switch ( $comment->comment_type ) { |
1463 | | case 'trackback': |
1464 | | /* translators: 1: Post title */ |
1465 | | $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; |
1466 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
1467 | | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1468 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1469 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1470 | | $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; |
1471 | | /* translators: 1: blog name, 2: post title */ |
1472 | | $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); |
1473 | | break; |
1474 | | case 'pingback': |
1475 | | /* translators: 1: Post title */ |
1476 | | $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
1477 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
1478 | | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1479 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1480 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1481 | | $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; |
1482 | | /* translators: 1: blog name, 2: post title */ |
1483 | | $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); |
1484 | | break; |
1485 | | default: // Comments |
1486 | | $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
1487 | | /* translators: 1: comment author, 2: author IP, 3: author domain */ |
1488 | | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1489 | | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1490 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1491 | | $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1492 | | $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; |
1493 | | /* translators: 1: blog name, 2: post title */ |
1494 | | $subject = sprintf( __('[%1$s] Comment: "%2$s"'), $blogname, $post->post_title ); |
1495 | | break; |
1496 | | } |
| 1458 | $notify_message = sprintf( __( 'New response to your post "%s"' ), get_the_title( $post ) ) . "\r\n"; |
| 1459 | $notify_message .= get_comment_notify_text( $comment ); |
| 1460 | $notify_message .= __( 'You can see all responses to this post here:' ) . "\r\n"; |
| 1461 | /* translators: 1: blog name, 2: post title */ |
| 1462 | $subject = sprintf( __('[%1$s] Response: "%2$s"'), $blogname, get_the_title( $post ) ); |
1621 | | |
1622 | | switch ( $comment->comment_type ) { |
1623 | | case 'trackback': |
1624 | | /* translators: 1: Post title */ |
1625 | | $notify_message = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
1626 | | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
1627 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
1628 | | $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1629 | | /* translators: 1: Trackback/pingback/comment author URL */ |
1630 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1631 | | $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; |
1632 | | break; |
1633 | | case 'pingback': |
1634 | | /* translators: 1: Post title */ |
1635 | | $notify_message = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
1636 | | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
1637 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
1638 | | $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1639 | | /* translators: 1: Trackback/pingback/comment author URL */ |
1640 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1641 | | $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; |
1642 | | break; |
1643 | | default: // Comments |
1644 | | /* translators: 1: Post title */ |
1645 | | $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
1646 | | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
1647 | | /* translators: 1: Comment author name, 2: comment author's IP, 3: comment author IP's hostname */ |
1648 | | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1649 | | /* translators: 1: Comment author URL */ |
1650 | | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1651 | | /* translators: 1: Trackback/pingback/comment author URL */ |
1652 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1653 | | /* translators: 1: Comment text */ |
1654 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
1655 | | break; |
1656 | | } |
1657 | | |
| 1587 | $notify_message = sprintf( __('A new response to the post "%s" is waiting for your approval'), get_the_title( $post ) ) . "\r\n"; |
| 1588 | $notify_message .= get_comment_notify_text( $comment ); |
| 1589 | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |