diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index 0687d7e..5795362 100644
a
|
b
|
function comment_form( $args = array(), $post_id = null ) { |
2258 | 2258 | } |
2259 | 2259 | |
2260 | 2260 | $req = get_option( 'require_name_email' ); |
2261 | | $aria_req = ( $req ? " aria-required='true'" : '' ); |
2262 | 2261 | $html_req = ( $req ? " required='required'" : '' ); |
2263 | 2262 | $html5 = 'html5' === $args['format']; |
2264 | 2263 | $fields = array( |
2265 | 2264 | 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . |
2266 | | '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $aria_req . $html_req . ' /></p>', |
| 2265 | '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . ' /></p>', |
2267 | 2266 | 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . |
2268 | | '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $aria_req . $html_req . ' /></p>', |
| 2267 | '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $html_req . ' /></p>', |
2269 | 2268 | 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' . |
2270 | 2269 | '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>', |
2271 | 2270 | ); |
… |
… |
function comment_form( $args = array(), $post_id = null ) { |
2282 | 2281 | $fields = apply_filters( 'comment_form_default_fields', $fields ); |
2283 | 2282 | $defaults = array( |
2284 | 2283 | 'fields' => $fields, |
2285 | | 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" aria-required="true" required="required"></textarea></p>', |
| 2284 | 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea></p>', |
2286 | 2285 | /** This filter is documented in wp-includes/link-template.php */ |
2287 | 2286 | 'must_log_in' => '<p class="must-log-in">' . sprintf( |
2288 | 2287 | /* translators: %s: login URL */ |