diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
index ca0a8de714..d95c21bf4d 100644
a
|
b
|
function wp_list_comments( $args = array(), $comments = null ) { |
2194 | 2194 | * and 200 characters, respectively. |
2195 | 2195 | * @since 4.6.0 Introduced the 'action' argument. |
2196 | 2196 | * @since 4.9.6 Introduced the 'cookies' default comment field. |
| 2197 | * @since 5.3.0 Introduced the 'novalidate_form' argument. |
2197 | 2198 | * |
2198 | 2199 | * @param array $args { |
2199 | 2200 | * Optional. Default arguments and form fields to override. |
… |
… |
function wp_list_comments( $args = array(), $comments = null ) { |
2214 | 2215 | * Default 'Your email address will not be published.'. |
2215 | 2216 | * @type string $comment_notes_after HTML element for a message displayed after the textarea field. |
2216 | 2217 | * @type string $action The comment form element action attribute. Default '/wp-comments-post.php'. |
| 2218 | * @type bool $novalidate_form Whether the novalidate attribute is added to the comment from when the format is html5. Default true. |
2217 | 2219 | * @type string $id_form The comment form element id attribute. Default 'commentform'. |
2218 | 2220 | * @type string $id_submit The comment submit element id attribute. Default 'submit'. |
2219 | 2221 | * @type string $class_form The comment form element class attribute. Default 'comment-form'. |
… |
… |
function comment_form( $args = array(), $post_id = null ) { |
2320 | 2322 | 'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>' . ( $req ? $required_text : '' ) . '</p>', |
2321 | 2323 | 'comment_notes_after' => '', |
2322 | 2324 | 'action' => site_url( '/wp-comments-post.php' ), |
| 2325 | 'novalidate_form' => 'html5' === $args['format'], |
2323 | 2326 | 'id_form' => 'commentform', |
2324 | 2327 | 'id_submit' => 'submit', |
2325 | 2328 | 'class_form' => 'comment-form', |
… |
… |
function comment_form( $args = array(), $post_id = null ) { |
2383 | 2386 | do_action( 'comment_form_must_log_in_after' ); |
2384 | 2387 | else : |
2385 | 2388 | ?> |
2386 | | <form action="<?php echo esc_url( $args['action'] ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="<?php echo esc_attr( $args['class_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>> |
| 2389 | <form action="<?php echo esc_url( $args['action'] ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="<?php echo esc_attr( $args['class_form'] ); ?>"<?php echo $html5 && ! empty( $args['novalidate_form'] ) ? ' novalidate' : ''; ?>> |
2387 | 2390 | <?php |
2388 | 2391 | /** |
2389 | 2392 | * Fires at the top of the comment form, inside the form tag. |