Ticket #12584: 12584.diff
File 12584.diff, 5.0 KB (added by , 14 years ago) |
---|
-
wp-includes/pluggable.php
1028 1028 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 1029 1029 // we want to reverse this for the plain text arena of emails. 1030 1030 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1031 $comment_content = wp_specialchars_decode( $comment->comment_content ); 1031 1032 1032 1033 if ( empty( $comment_type ) ) $comment_type = 'comment'; 1033 1034 … … 1038 1039 $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n"; 1039 1040 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1040 1041 $notify_message .= sprintf( __('Whois : http://whois.arin.net/rest/ip/%s'), $comment->comment_author_IP ) . "\r\n"; 1041 $notify_message .= __('Comment: ') . "\r\n" . $comment ->comment_content . "\r\n\r\n";1042 $notify_message .= __('Comment: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1042 1043 $notify_message .= __('You can see all comments on this post here: ') . "\r\n"; 1043 1044 /* translators: 1: blog name, 2: post title */ 1044 1045 $subject = sprintf( __('[%1$s] Comment: "%2$s"'), $blogname, $post->post_title ); … … 1047 1048 /* translators: 1: website name, 2: author IP, 3: author domain */ 1048 1049 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1049 1050 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1050 $notify_message .= __('Excerpt: ') . "\r\n" . $comment ->comment_content . "\r\n\r\n";1051 $notify_message .= __('Excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1051 1052 $notify_message .= __('You can see all trackbacks on this post here: ') . "\r\n"; 1052 1053 /* translators: 1: blog name, 2: post title */ 1053 1054 $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); … … 1056 1057 /* translators: 1: comment author, 2: author IP, 3: author domain */ 1057 1058 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1058 1059 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1059 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment ->comment_content ) . "\r\n\r\n";1060 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment_content ) . "\r\n\r\n"; 1060 1061 $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n"; 1061 1062 /* translators: 1: blog name, 2: post title */ 1062 1063 $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); … … 1127 1128 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 1128 1129 // we want to reverse this for the plain text arena of emails. 1129 1130 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1131 $comment_content = wp_specialchars_decode( $comment->comment_content ); 1130 1132 1131 1133 switch ($comment->comment_type) 1132 1134 { … … 1135 1137 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1136 1138 $notify_message .= sprintf( __('Website : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1137 1139 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1138 $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment ->comment_content . "\r\n\r\n";1140 $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1139 1141 break; 1140 1142 case 'pingback': 1141 1143 $notify_message = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1142 1144 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1143 1145 $notify_message .= sprintf( __('Website : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1144 1146 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1145 $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment ->comment_content . "\r\n\r\n";1147 $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1146 1148 break; 1147 1149 default: //Comments 1148 1150 $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; … … 1151 1153 $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n"; 1152 1154 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1153 1155 $notify_message .= sprintf( __('Whois : http://whois.arin.net/rest/ip/%s'), $comment->comment_author_IP ) . "\r\n"; 1154 $notify_message .= __('Comment: ') . "\r\n" . $comment ->comment_content . "\r\n\r\n";1156 $notify_message .= __('Comment: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1155 1157 break; 1156 1158 } 1157 1159