From 965b6d54b6a284b668f458687cf5050c3e0148b4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 6 Oct 2014 22:11:15 +0000 Subject: [PATCH] Add aria-describedby attributes to comment_form(). props joedolson, bramd. fixes #24148. Built from https://develop.svn.wordpress.org/trunk@29846 git-svn-id: http://core.svn.wordpress.org/trunk@29609 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 20da50a23a..3083fc5223 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -2104,7 +2104,7 @@ function comment_form( $args = array(), $post_id = null ) { 'author' => '

' . ' ' . '

', 'email' => '

' . - '

', + '

', 'url' => '

' . '

', ); @@ -2121,13 +2121,13 @@ function comment_form( $args = array(), $post_id = null ) { $fields = apply_filters( 'comment_form_default_fields', $fields ); $defaults = array( 'fields' => $fields, - 'comment_field' => '

', + 'comment_field' => '

', /** This filter is documented in wp-includes/link-template.php */ 'must_log_in' => '

' . sprintf( __( 'You must be logged in to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '

', /** This filter is documented in wp-includes/link-template.php */ 'logged_in_as' => '

' . sprintf( __( 'Logged in as %2$s. Log out?' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '

', - 'comment_notes_before' => '

' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '

', - 'comment_notes_after' => '

' . sprintf( __( 'You may use these HTML tags and attributes: %s' ), ' ' . allowed_tags() . '' ) . '

', + 'comment_notes_before' => '

' . __( 'Your email address will not be published.' ) . ''. ( $req ? $required_text : '' ) . '

', + 'comment_notes_after' => '

' . sprintf( __( 'You may use these HTML tags and attributes: %s' ), ' ' . allowed_tags() . '' ) . '

', 'id_form' => 'commentform', 'id_submit' => 'submit', 'class_submit' => 'submit',