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' => '
+
' . ( $req ? '*' : '' ) . '
+
+
', + 'email' => '
+
' . ( $req ? '*' : '' ) . '
+
+
', + 'url' => '
+
+
+
' ) ), + 'comment_field' => '
+
+
+
', 'must_log_in' => '

' . 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' => '
+

' . __( 'You may use these HTML tags and attributes:' ) . ' ' . allowed_tags() . '

+
', '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 ) {
-

-
- -
+

@@ -1499,6 +1511,7 @@ function comment_form( $args = array(), $post_id = null ) { + $field ) { @@ -1508,10 +1521,11 @@ function comment_form( $args = array(), $post_id = null ) { ?> -

+ +

-

+