diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 7aba489ed8..b8781ba347 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1465,19 +1465,34 @@ function comment_form( $args = array(), $post_id = null ) { $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); - $req_str = ( $req ? __( ' (required)' ) : '' ); - $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '
', - 'email' => '
', - 'url' => '
' ) ), - 'comment_field' => '', + $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => ' ', + 'email' => '
' . sprintf( __( 'You must be logged in to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '
', - 'logged_in_as' => '' . sprintf( __( 'Logged in as %s. Log out »
' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), + 'logged_in_as' => '' . sprintf( __( 'Logged in as %s. Log out?
' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), + 'comment_notes_before' => '' . __( 'Your email is never published nor shared.' ) . ( $req ? __( ' Required fields are marked *' ) : '' ) . '
', + 'comment_notes_after' => ' ', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply' ), 'title_reply_to' => __( 'Leave a Reply to %s'), - 'cancel_reply_link' => '', - 'label_submit' => __( 'Submit Comment' ), + 'cancel_reply_link' => __( 'Cancel reply' ), + 'label_submit' => __( 'Post Comment' ), ); $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); @@ -1485,10 +1500,7 @@ function comment_form( $args = array(), $post_id = null ) {+ +