WordPress.org

Make WordPress Core

Ticket #47595: 47595-remove-novalidate-form-attr.0.diff

File 47595-remove-novalidate-form-attr.0.diff, 850 bytes (added by westonruter, 19 months ago)

Option 2: Remove form novalidate attribute altogether

  • src/wp-includes/comment-template.php

    diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
    index ca0a8de714..2a67c5ee49 100644
    a b function comment_form( $args = array(), $post_id = null ) { 
    23832383                        do_action( 'comment_form_must_log_in_after' );
    23842384                else :
    23852385                        ?>
    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' : ''; ?>>
     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'] ); ?>">
    23872387                                <?php
    23882388                                /**
    23892389                                 * Fires at the top of the comment form, inside the form tag.