WordPress.org

Make WordPress Core

Ticket #18633: comment_email.patch

File comment_email.patch, 1.6 KB (added by evansolomon, 3 years ago)

Update default messaging to explain who will be able to see commenters' email addresses

  • wp-includes/comment-template.php

     
    15341534                'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 
    15351535                'must_log_in'          => '<p class="must-log-in">' .  sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 
    15361536                'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 
    1537                 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 
     1537                'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will only be visible to the blog owner.' ) . ( $req ? $required_text : '' ) . '</p>', 
    15381538                'comment_notes_after'  => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', 
    15391539                'id_form'              => 'commentform', 
    15401540                'id_submit'            => 'submit',