Changeset 35415
- Timestamp:
- 10/28/2015 06:02:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r35365 r35415 1458 1458 // we want to reverse this for the plain text arena of emails. 1459 1459 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1460 1460 $comment_content = wp_specialchars_decode( $comment->comment_content ); 1461 1461 1462 switch ( $comment->comment_type ) { 1462 1463 case 'trackback': … … 1465 1466 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1466 1467 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1467 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment ->comment_content ) . "\r\n\r\n";1468 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1468 1469 $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; 1469 1470 /* translators: 1: blog name, 2: post title */ … … 1475 1476 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1476 1477 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1477 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment ->comment_content ) . "\r\n\r\n";1478 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1478 1479 $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; 1479 1480 /* translators: 1: blog name, 2: post title */ … … 1486 1487 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1487 1488 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1488 $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment ->comment_content ) . "\r\n\r\n";1489 $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1489 1490 $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; 1490 1491 /* translators: 1: blog name, 2: post title */ … … 1609 1610 // we want to reverse this for the plain text arena of emails. 1610 1611 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1612 $comment_content = wp_specialchars_decode( $comment->comment_content ); 1611 1613 1612 1614 switch ( $comment->comment_type ) { … … 1617 1619 $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1618 1620 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1619 $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment ->comment_content . "\r\n\r\n";1621 $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1620 1622 break; 1621 1623 case 'pingback': … … 1625 1627 $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1626 1628 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1627 $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment ->comment_content . "\r\n\r\n";1629 $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1628 1630 break; 1629 1631 default: // Comments … … 1633 1635 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1634 1636 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1635 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment ->comment_content ) . "\r\n\r\n";1637 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1636 1638 break; 1637 1639 }
Note: See TracChangeset
for help on using the changeset viewer.