Skip to content

Commit dfd3b0e

Browse files
committed
External Libraries: Update jQuery Form to version 4.4.0.
Updates the jQuery Form library from version `4.3.0` to `4.4.0`. This release includes hardening fixes, adds support for jQuery 4 and fixes several long-standing bugs. Core registers the `jquery-form` script handle but does not use it, so this update only affects plugins and themes that enqueue it. The following behavior changes may affect them: * JSON responses are now parsed only with `JSON.parse()`. Responses that were previously accepted through `eval()`, such as those with single quotes or unquoted keys, now fail with a parse error. * The `target` option now only inserts string responses. Responses that have already been parsed as JSON or XML are no longer inserted. * Iframe responses that fail to parse now report `parsererror` instead of `success` with no data. A full list of changes can be found on GitHub: jquery-form/form@v4.3.0...v4.4.0. Developed in: WordPress#16038 Props desrosj. Fixes #66711. git-svn-id: https://develop.svn.wordpress.org/trunk@65541 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1cbbc37 commit dfd3b0e

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎package-lock.json‎

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"imagesloaded": "5.0.0",
107107
"jquery": "3.7.1",
108108
"jquery-color": "3.0.0",
109-
"jquery-form": "4.3.0",
109+
"jquery-form": "4.4.0",
110110
"jquery-hoverintent": "1.10.2",
111111
"jquery-migrate": "3.6.0",
112112
"jsonlint": "1.6.3",

‎src/wp-includes/script-loader.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ function wp_default_scripts( $scripts ) {
948948
$scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.14.2', 1 );
949949

950950
// Deprecated, not used in core, most functionality is included in jQuery 1.3.
951-
$scripts->add( 'jquery-form', "/wp-includes/js/jquery/jquery.form$suffix.js", array( 'jquery' ), '4.3.0', 1 );
951+
$scripts->add( 'jquery-form', "/wp-includes/js/jquery/jquery.form$suffix.js", array( 'jquery' ), '4.4.0', 1 );
952952

953953
// jQuery plugins.
954954
$scripts->add( 'jquery-color', '/wp-includes/js/jquery/jquery.color.min.js', array( 'jquery' ), '3.0.0', 1 );

0 commit comments

Comments
 (0)