WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/24/2014 05:07:53 PM (7 years ago)
Author:
johnbillion
Message:

Remove padding from the comment notification emails which is from a bygone fixed-width font era. Prevents alignment issues in email clients which use vairable width fonts for plain text emails. Fixes #16721. Props DrewAPicture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r29789 r30015  
    13861386            /* translators: 1: website name, 2: author IP, 3: author domain */
    13871387            $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    1388             $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
    1389             $notify_message .= __('Excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
    1390             $notify_message .= __('You can see all trackbacks on this post here: ') . "\r\n";
     1388            $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
     1389            $notify_message .= sprintf( __( 'Comment: %s' ), $comment->comment_content ) . "\r\n\r\n";
     1390            $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n";
    13911391            /* translators: 1: blog name, 2: post title */
    13921392            $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title );
     
    13961396            /* translators: 1: comment author, 2: author IP, 3: author domain */
    13971397            $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    1398             $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
    1399             $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment->comment_content ) . "\r\n\r\n";
    1400             $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n";
     1398            $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
     1399            $notify_message .= sprintf( __( 'Comment: %s' ), $comment->comment_content ) . "\r\n\r\n";
     1400            $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n";
    14011401            /* translators: 1: blog name, 2: post title */
    14021402            $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title );
     
    14051405            $notify_message  = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n";
    14061406            /* translators: 1: comment author, 2: author IP, 3: author domain */
    1407             $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    1408             $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n";
    1409             $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
    1410             $notify_message .= sprintf( __('Whois  : http://whois.arin.net/rest/ip/%s'), $comment->comment_author_IP ) . "\r\n";
    1411             $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
    1412             $notify_message .= __('You can see all comments on this post here: ') . "\r\n";
     1407            $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s , %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
     1408            $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n";
     1409            $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
     1410            $notify_message .= sprintf( __( 'Whois: %s' ), "http://whois.arin.net/rest/ip/{$comment->comment_author_IP}" ) . "\r\n";
     1411            $notify_message .= sprintf( __('Comment: %s' ), $comment->comment_content ) . "\r\n\r\n";
     1412            $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n";
    14131413            /* translators: 1: blog name, 2: post title */
    14141414            $subject = sprintf( __('[%1$s] Comment: "%2$s"'), $blogname, $post->post_title );
Note: See TracChangeset for help on using the changeset viewer.