Ticket #33073: 33073.diff
File 33073.diff, 18.4 KB (added by , 9 years ago) |
---|
-
wp-admin/includes/upgrade.php
361 361 $email = $user->user_email; 362 362 $name = $user->user_login; 363 363 $login_url = wp_login_url(); 364 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 364 365 $message = sprintf( __( "Your new WordPress site has been successfully set up at: 365 366 366 367 %1\$s … … 377 378 https://wordpress.org/ 378 379 "), $blog_url, $name, $password, $login_url ); 379 380 381 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 380 382 @wp_mail($email, __('New WordPress Site'), $message); 381 383 } 382 384 endif; -
wp-includes/feed-atom-comments.php
29 29 > 30 30 <title type="text"><?php 31 31 if ( is_singular() ) 32 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 32 33 printf( ent2ncr( __( 'Comments on %s' ) ), get_the_title_rss() ); 33 34 elseif ( is_search() ) 35 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 34 36 printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() ); 35 37 else 38 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 36 39 printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() ); 37 40 ?></title> 38 41 <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle> … … 70 73 $title = get_the_title($comment_post->ID); 71 74 /** This filter is documented in wp-includes/feed.php */ 72 75 $title = apply_filters( 'the_title_rss', $title ); 76 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 73 77 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 74 78 } else { 79 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 75 80 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); 76 81 } 77 82 ?></title> -
wp-includes/feed-rss2-comments.php
34 34 <channel> 35 35 <title><?php 36 36 if ( is_singular() ) 37 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 37 38 printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() ); 38 39 elseif ( is_search() ) 40 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 39 41 printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() ); 40 42 else 43 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 41 44 printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() ); 42 45 ?></title> 43 46 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> … … 69 72 $title = get_the_title($comment_post->ID); 70 73 /** This filter is documented in wp-includes/feed.php */ 71 74 $title = apply_filters( 'the_title_rss', $title ); 75 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 72 76 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 73 77 } else { 78 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 74 79 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); 75 80 } 76 81 ?></title> … … 79 84 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true, false), false); ?></pubDate> 80 85 <guid isPermaLink="false"><?php comment_guid() ?></guid> 81 86 <?php if ( post_password_required($comment_post) ) : ?> 82 <description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description> 87 <description><?php 88 /* translators: Do not use HTML entities ( , etc.): this string is used in XML feeds. */ 89 echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?> 90 </description> 83 91 <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded> 84 92 <?php else : // post pass ?> 85 93 <description><![CDATA[<?php comment_text_rss() ?>]]></description> -
wp-includes/pluggable.php
1439 1439 1440 1440 switch ( $comment->comment_type ) { 1441 1441 case 'trackback': 1442 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1442 1443 $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; 1443 /* translators: 1: website name, 2: website IP, 3: website hostname */1444 /* translators: 1: website name, 2: website IP, 3: website hostname. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1444 1445 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1446 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1445 1447 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1448 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1446 1449 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; 1450 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1447 1451 $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; 1448 /* translators: 1: blog name, 2: post title */1452 /* translators: 1: blog name, 2: post title. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1449 1453 $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); 1450 1454 break; 1451 1455 case 'pingback': 1456 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1452 1457 $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; 1453 /* translators: 1: website name, 2: website IP, 3: website hostname */1458 /* translators: 1: website name, 2: website IP, 3: website hostname. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1454 1459 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1460 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1455 1461 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1462 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1456 1463 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; 1464 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1457 1465 $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; 1458 /* translators: 1: blog name, 2: post title */1466 /* translators: 1: blog name, 2: post title. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1459 1467 $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); 1460 1468 break; 1461 1469 default: // Comments 1470 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1462 1471 $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; 1463 /* translators: 1: comment author, 2: author IP, 3: author domain */1472 /* translators: 1: comment author, 2: author IP, 3: author domain. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1464 1473 $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1474 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1465 1475 $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n"; 1476 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1466 1477 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1478 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1467 1479 $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; 1480 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1468 1481 $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; 1469 /* translators: 1: blog name, 2: post title */1482 /* translators: 1: blog name, 2: post title. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1470 1483 $subject = sprintf( __('[%1$s] Comment: "%2$s"'), $blogname, $post->post_title ); 1471 1484 break; 1472 1485 } 1473 1486 $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n"; 1487 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1474 1488 $notify_message .= sprintf( __('Permalink: %s'), get_comment_link( $comment_id ) ) . "\r\n"; 1475 1489 1476 1490 if ( user_can( $post->post_author, 'edit_comment', $comment_id ) ) { 1477 if ( EMPTY_TRASH_DAYS ) 1491 if ( EMPTY_TRASH_DAYS ) { 1492 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1478 1493 $notify_message .= sprintf( __('Trash it: %s'), admin_url("comment.php?action=trash&c=$comment_id") ) . "\r\n"; 1479 else 1494 } 1495 else { 1496 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1480 1497 $notify_message .= sprintf( __('Delete it: %s'), admin_url("comment.php?action=delete&c=$comment_id") ) . "\r\n"; 1498 } 1499 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1481 1500 $notify_message .= sprintf( __('Spam it: %s'), admin_url("comment.php?action=spam&c=$comment_id") ) . "\r\n"; 1482 1501 } 1483 1502 … … 1485 1504 1486 1505 if ( '' == $comment->comment_author ) { 1487 1506 $from = "From: \"$blogname\" <$wp_email>"; 1488 if ( '' != $comment->comment_author_email ) 1507 if ( '' != $comment->comment_author_email ) { 1489 1508 $reply_to = "Reply-To: $comment->comment_author_email"; 1509 } 1490 1510 } else { 1491 1511 $from = "From: \"$comment->comment_author\" <$wp_email>"; 1492 if ( '' != $comment->comment_author_email ) 1512 if ( '' != $comment->comment_author_email ) { 1493 1513 $reply_to = "Reply-To: \"$comment->comment_author_email\" <$comment->comment_author_email>"; 1514 } 1494 1515 } 1495 1516 1496 1517 $message_headers = "$from\n" … … 1573 1594 1574 1595 switch ( $comment->comment_type ) { 1575 1596 case 'trackback': 1597 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1576 1598 $notify_message = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1577 1599 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1578 /* translators: 1: website name, 2: website IP, 3: website hostname */1600 /* translators: 1: website name, 2: website IP, 3: website hostname. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1579 1601 $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1602 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1580 1603 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1604 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1581 1605 $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 1582 1606 break; 1583 1607 case 'pingback': 1608 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1584 1609 $notify_message = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1585 1610 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1586 /* translators: 1: website name, 2: website IP, 3: website hostname */1611 /* translators: 1: website name, 2: website IP, 3: website hostname. Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1587 1612 $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1613 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1588 1614 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1615 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1589 1616 $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 1590 1617 break; 1591 1618 default: // Comments 1619 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1592 1620 $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1593 1621 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1622 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1594 1623 $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1624 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1595 1625 $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n"; 1626 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1596 1627 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1628 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1597 1629 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; 1598 1630 break; 1599 1631 } 1600 1632 1633 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1601 1634 $notify_message .= sprintf( __('Approve it: %s'), admin_url("comment.php?action=approve&c=$comment_id") ) . "\r\n"; 1602 if ( EMPTY_TRASH_DAYS ) 1635 if ( EMPTY_TRASH_DAYS ) { 1636 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1603 1637 $notify_message .= sprintf( __('Trash it: %s'), admin_url("comment.php?action=trash&c=$comment_id") ) . "\r\n"; 1604 else 1638 } 1639 else { 1640 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1605 1641 $notify_message .= sprintf( __('Delete it: %s'), admin_url("comment.php?action=delete&c=$comment_id") ) . "\r\n"; 1642 } 1643 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1606 1644 $notify_message .= sprintf( __('Spam it: %s'), admin_url("comment.php?action=spam&c=$comment_id") ) . "\r\n"; 1607 1645 1646 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1608 1647 $notify_message .= sprintf( _n('Currently %s comment is waiting for approval. Please visit the moderation panel:', 1609 1648 'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting), number_format_i18n($comments_waiting) ) . "\r\n"; 1610 1649 $notify_message .= admin_url("edit-comments.php?comment_status=moderated") . "\r\n"; 1611 1650 1651 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1612 1652 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), $blogname, $post->post_title ); 1613 1653 $message_headers = ''; 1614 1654 … … 1672 1712 // send a copy of password change notification to the admin 1673 1713 // but check to see if it's the admin whose password we're changing, and skip this 1674 1714 if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) { 1715 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1675 1716 $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 1676 1717 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 1677 1718 // we want to reverse this for the plain text arena of emails. 1678 1719 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1720 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1679 1721 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message); 1680 1722 } 1681 1723 } … … 1699 1741 // we want to reverse this for the plain text arena of emails. 1700 1742 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1701 1743 1744 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1702 1745 $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n"; 1746 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1703 1747 $message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n"; 1748 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1704 1749 $message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n"; 1705 1750 1706 1751 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message); … … 1718 1763 $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); 1719 1764 $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user->user_login ) ); 1720 1765 1766 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1721 1767 $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n"; 1768 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1722 1769 $message .= __('To set your password, visit the following address:') . "\r\n\r\n"; 1723 1770 $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">\r\n\r\n"; 1724 1771 1725 1772 $message .= wp_login_url() . "\r\n"; 1726 1773 1774 /* translators: Do not use HTML entities ( , etc.): this string is used in e-mails. */ 1727 1775 wp_mail($user->user_email, sprintf(__('[%s] Your username and password info'), $blogname), $message); 1728 1776 1729 1777 }