Changeset 45932 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 09/03/2019 12:39:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r45926 r45932 1541 1541 switch ( $comment->comment_type ) { 1542 1542 case 'trackback': 1543 /* translators: %s: post title*/1543 /* translators: %s: Post title. */ 1544 1544 $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; 1545 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname*/1545 /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ 1546 1546 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1547 /* translators: %s: trackback/pingback/comment author URL*/1547 /* translators: %s: Trackback/pingback/comment author URL. */ 1548 1548 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1549 /* translators: %s: comment text*/1549 /* translators: %s: Comment text. */ 1550 1550 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1551 1551 $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; 1552 /* translators: Trackback notification email subject. 1: Site title, 2: Post title */1552 /* translators: Trackback notification email subject. 1: Site title, 2: Post title. */ 1553 1553 $subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title ); 1554 1554 break; 1555 1555 case 'pingback': 1556 /* translators: %s: post title*/1556 /* translators: %s: Post title. */ 1557 1557 $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; 1558 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname*/1558 /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ 1559 1559 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1560 /* translators: %s: trackback/pingback/comment author URL*/1560 /* translators: %s: Trackback/pingback/comment author URL. */ 1561 1561 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1562 /* translators: %s: comment text*/1562 /* translators: %s: Comment text. */ 1563 1563 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1564 1564 $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; 1565 /* translators: Pingback notification email subject. 1: Site title, 2: Post title */1565 /* translators: Pingback notification email subject. 1: Site title, 2: Post title. */ 1566 1566 $subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title ); 1567 1567 break; 1568 1568 default: // Comments 1569 /* translators: %s: post title*/1569 /* translators: %s: Post title. */ 1570 1570 $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; 1571 /* translators: 1: comment author's name, 2: comment author's IP address, 3: comment author's hostname*/1571 /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */ 1572 1572 $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1573 /* translators: %s: comment author email*/1573 /* translators: %s: Comment author email. */ 1574 1574 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1575 /* translators: %s: trackback/pingback/comment author URL*/1575 /* translators: %s: Trackback/pingback/comment author URL. */ 1576 1576 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1577 /* translators: %s: comment text*/1577 /* translators: %s: Comment text. */ 1578 1578 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1579 1579 $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; 1580 /* translators: Comment notification email subject. 1: Site title, 2: Post title */1580 /* translators: Comment notification email subject. 1: Site title, 2: Post title. */ 1581 1581 $subject = sprintf( __( '[%1$s] Comment: "%2$s"' ), $blogname, $post->post_title ); 1582 1582 break; 1583 1583 } 1584 1584 $notify_message .= get_permalink( $comment->comment_post_ID ) . "#comments\r\n\r\n"; 1585 /* translators: %s: comment URL*/1585 /* translators: %s: Comment URL. */ 1586 1586 $notify_message .= sprintf( __( 'Permalink: %s' ), get_comment_link( $comment ) ) . "\r\n"; 1587 1587 1588 1588 if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) { 1589 1589 if ( EMPTY_TRASH_DAYS ) { 1590 /* translators: Comment moderation. %s: Comment action URL */1590 /* translators: Comment moderation. %s: Comment action URL. */ 1591 1591 $notify_message .= sprintf( __( 'Trash it: %s' ), admin_url( "comment.php?action=trash&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n"; 1592 1592 } else { 1593 /* translators: Comment moderation. %s: Comment action URL */1593 /* translators: Comment moderation. %s: Comment action URL. */ 1594 1594 $notify_message .= sprintf( __( 'Delete it: %s' ), admin_url( "comment.php?action=delete&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n"; 1595 1595 } 1596 /* translators: Comment moderation. %s: Comment action URL */1596 /* translators: Comment moderation. %s: Comment action URL. */ 1597 1597 $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n"; 1598 1598 } … … 1721 1721 switch ( $comment->comment_type ) { 1722 1722 case 'trackback': 1723 /* translators: %s: post title*/1723 /* translators: %s: Post title. */ 1724 1724 $notify_message = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; 1725 1725 $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; 1726 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname*/1726 /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ 1727 1727 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1728 /* translators: %s: trackback/pingback/comment author URL*/1728 /* translators: %s: Trackback/pingback/comment author URL. */ 1729 1729 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1730 1730 $notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1731 1731 break; 1732 1732 case 'pingback': 1733 /* translators: %s: post title*/1733 /* translators: %s: Post title. */ 1734 1734 $notify_message = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; 1735 1735 $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; 1736 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname*/1736 /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ 1737 1737 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1738 /* translators: %s: trackback/pingback/comment author URL*/1738 /* translators: %s: Trackback/pingback/comment author URL. */ 1739 1739 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1740 1740 $notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1741 1741 break; 1742 1742 default: // Comments 1743 /* translators: %s: post title*/1743 /* translators: %s: Post title. */ 1744 1744 $notify_message = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; 1745 1745 $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; 1746 /* translators: 1: comment author's name, 2: comment author's IP address, 3: comment author's hostname*/1746 /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */ 1747 1747 $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1748 /* translators: %s: comment author email*/1748 /* translators: %s: Comment author email. */ 1749 1749 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1750 /* translators: %s: trackback/pingback/comment author URL*/1750 /* translators: %s: Trackback/pingback/comment author URL. */ 1751 1751 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1752 /* translators: %s: comment text*/1752 /* translators: %s: Comment text. */ 1753 1753 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1754 1754 break; 1755 1755 } 1756 1756 1757 /* translators: Comment moderation. %s: Comment action URL */1757 /* translators: Comment moderation. %s: Comment action URL. */ 1758 1758 $notify_message .= sprintf( __( 'Approve it: %s' ), admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1759 1759 1760 1760 if ( EMPTY_TRASH_DAYS ) { 1761 /* translators: Comment moderation. %s: Comment action URL */1761 /* translators: Comment moderation. %s: Comment action URL. */ 1762 1762 $notify_message .= sprintf( __( 'Trash it: %s' ), admin_url( "comment.php?action=trash&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1763 1763 } else { 1764 /* translators: Comment moderation. %s: Comment action URL */1764 /* translators: Comment moderation. %s: Comment action URL. */ 1765 1765 $notify_message .= sprintf( __( 'Delete it: %s' ), admin_url( "comment.php?action=delete&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1766 1766 } 1767 1767 1768 /* translators: Comment moderation. %s: Comment action URL */1768 /* translators: Comment moderation. %s: Comment action URL. */ 1769 1769 $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1770 1770 1771 1771 $notify_message .= sprintf( 1772 /* translators: Comment moderation. %s: Number of comments awaiting approval */1772 /* translators: Comment moderation. %s: Number of comments awaiting approval. */ 1773 1773 _n( 1774 1774 'Currently %s comment is waiting for approval. Please visit the moderation panel:', … … 1780 1780 $notify_message .= admin_url( 'edit-comments.php?comment_status=moderated#wpbody-content' ) . "\r\n"; 1781 1781 1782 /* translators: Comment moderation notification email subject. 1: Site name, 2: Post title*/1782 /* translators: Comment moderation notification email subject. 1: Site title, 2: Post title. */ 1783 1783 $subject = sprintf( __( '[%1$s] Please moderate: "%2$s"' ), $blogname, $post->post_title ); 1784 1784 $message_headers = ''; … … 1848 1848 // but check to see if it's the admin whose password we're changing, and skip this 1849 1849 if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) { 1850 /* translators: %s: user name*/1850 /* translators: %s: User name. */ 1851 1851 $message = sprintf( __( 'Password changed for user: %s' ), $user->user_login ) . "\r\n"; 1852 1852 // The blogname option is escaped with esc_html on the way into the database in sanitize_option … … 1856 1856 $wp_password_change_notification_email = array( 1857 1857 'to' => get_option( 'admin_email' ), 1858 /* translators: Password change notification email subject. %s: Site title */1858 /* translators: Password change notification email subject. %s: Site title. */ 1859 1859 'subject' => __( '[%s] Password Changed' ), 1860 1860 'message' => $message, … … 1925 1925 $switched_locale = switch_to_locale( get_locale() ); 1926 1926 1927 /* translators: %s: site title*/1927 /* translators: %s: Site title. */ 1928 1928 $message = sprintf( __( 'New user registration on your site %s:' ), $blogname ) . "\r\n\r\n"; 1929 /* translators: %s: user login*/1929 /* translators: %s: User login. */ 1930 1930 $message .= sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n\r\n"; 1931 /* translators: %s: user email address*/1931 /* translators: %s: User email address. */ 1932 1932 $message .= sprintf( __( 'Email: %s' ), $user->user_email ) . "\r\n"; 1933 1933 1934 1934 $wp_new_user_notification_email_admin = array( 1935 1935 'to' => get_option( 'admin_email' ), 1936 /* translators: New user registration notification email subject. %s: Site title */1936 /* translators: New user registration notification email subject. %s: Site title. */ 1937 1937 'subject' => __( '[%s] New User Registration' ), 1938 1938 'message' => $message, … … 1982 1982 $switched_locale = switch_to_locale( get_user_locale( $user ) ); 1983 1983 1984 /* translators: %s: user login*/1984 /* translators: %s: User login. */ 1985 1985 $message = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n\r\n"; 1986 1986 $message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n"; … … 1991 1991 $wp_new_user_notification_email = array( 1992 1992 'to' => $user->user_email, 1993 /* translators: Login details notification email subject. %s: Site title */1993 /* translators: Login details notification email subject. %s: Site title. */ 1994 1994 'subject' => __( '[%s] Login Details' ), 1995 1995 'message' => $message,
Note: See TracChangeset
for help on using the changeset viewer.