diff options
author | Weston Ruter <westonruter@git.wordpress.org> | 2025-06-12 20:45:40 +0000 |
---|---|---|
committer | Weston Ruter <westonruter@git.wordpress.org> | 2025-06-12 20:45:40 +0000 |
commit | b29a5c23a4a663d7c9720be638425a2c0bd4fe14 (patch) | |
tree | c3edc8e6b216780bbc7b9bcb0ce9b7abf5ad0158 /wp-includes/js/jquery/ui/jquery.effects.explode.min.js | |
parent | 49e642d6931612eda711fa0b406b3c99b2a272ae (diff) | |
download | wordpress-b29a5c23a4a663d7c9720be638425a2c0bd4fe14.tar.gz wordpress-b29a5c23a4a663d7c9720be638425a2c0bd4fe14.zip |
Comments: Remove `novalidate` attribute from comments form by default.
Browser support for client-side validation is now reliable. Blocking the form submission when there is a missing/invalid field prevents the possibility of losing comment content when bfcache does not restore the previous page when going back.
To retain the `novalidate` attribute, the `comment_form()`'s args now accepts a `novalidate` key which will add the attribute when it is `true`. This can also be supplied by the `comment_form_default_fields` filter, for example:
{{{#!php
add_filter( 'comment_form_defaults', function ( $args ) {
$args['novalidate'] = true;
return $args;
} );
}}}
Fixes #47595.
Props westonruter, joedolson, sabernhardt, afercia, SergeyBiryukov, guddu1315, pfefferle, oglekler, bugnumber9.
git-svn-id: https://develop.svn.wordpress.org/trunk@60304 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'wp-includes/js/jquery/ui/jquery.effects.explode.min.js')
0 files changed, 0 insertions, 0 deletions