Changeset 47114 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 01/27/2020 04:31:48 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r47086 r47114 1585 1585 $subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title ); 1586 1586 break; 1587 1587 1588 case 'pingback': 1588 1589 /* translators: %s: Post title. */ … … 1598 1599 $subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title ); 1599 1600 break; 1601 1600 1602 default: // Comments 1601 1603 /* translators: %s: Post title. */ … … 1607 1609 /* translators: %s: Trackback/pingback/comment author URL. */ 1608 1610 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1611 1612 if ( $comment->comment_parent && user_can( $post->post_author, 'edit_comment', $comment->comment_parent ) ) { 1613 /* translators: Comment moderation. %s: Parent comment edit URL. */ 1614 $notify_message .= sprintf( __( 'In reply to: %s' ), admin_url( "comment.php?action=editcomment&c={$comment->comment_parent}#wpbody-content" ) ) . "\r\n"; 1615 } 1616 1609 1617 /* translators: %s: Comment text. */ 1610 1618 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; … … 1614 1622 break; 1615 1623 } 1624 1616 1625 $notify_message .= get_permalink( $comment->comment_post_ID ) . "#comments\r\n\r\n"; 1617 1626 /* translators: %s: Comment URL. */ … … 1762 1771 $notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1763 1772 break; 1773 1764 1774 case 'pingback': 1765 1775 /* translators: %s: Post title. */ … … 1772 1782 $notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1773 1783 break; 1784 1774 1785 default: // Comments 1775 1786 /* translators: %s: Post title. */ … … 1782 1793 /* translators: %s: Trackback/pingback/comment author URL. */ 1783 1794 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1795 1796 if ( $comment->comment_parent ) { 1797 /* translators: Comment moderation. %s: Parent comment edit URL. */ 1798 $notify_message .= sprintf( __( 'In reply to: %s' ), admin_url( "comment.php?action=editcomment&c={$comment->comment_parent}#wpbody-content" ) ) . "\r\n"; 1799 } 1800 1784 1801 /* translators: %s: Comment text. */ 1785 1802 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
Note: See TracChangeset
for help on using the changeset viewer.