WordPress.org

Make WordPress Core

Ticket #13026: 13026-comment-form-text.diff

File 13026-comment-form-text.diff, 1.7 KB (added by lloydbudd, 4 years ago)

Great points nacin! We should actually make it explicit. There are so many naive people out there, and so much poor language out there regarding contact forms being "email", so here is a patch with "email address" -- you knew this was the true path based on your commit msg of "regarding publication of email addresses" ;-)

  • wp-includes/comment-template.php

     
    15071507                '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>', 
    15081508                '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>', 
    15091509                '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>', 
    1510                 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email will not be published.' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>', 
     1510                'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>', 
    15111511                'comment_notes_after'  => '<dl class="form-allowed-tags"><dt>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</dt> <dd><code>' . allowed_tags() . '</code></dd></dl>', 
    15121512                'id_form'              => 'commentform', 
    15131513                'id_submit'            => 'submit',