External Libraries: Update the jQuery Form library.
This updates the `jquery-form` library from version `4.2.1` to `4.3.0`. A full list of changes can be found on GitHub: https://github.com/jquery-form/form/compare/v4.2.1...v4.3.0. Fixes #52685. Built from https://develop.svn.wordpress.org/trunk@50546 git-svn-id: http://core.svn.wordpress.org/trunk@50159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
235b19b3b0
commit
cd3e85fe23
|
@ -1,12 +1,23 @@
|
||||||
/*!
|
/*!
|
||||||
* jQuery Form Plugin
|
* jQuery Form Plugin
|
||||||
* version: 4.2.1
|
* version: 4.3.0
|
||||||
* Requires jQuery v1.7 or later
|
* Requires jQuery v1.7.2 or later
|
||||||
|
* Project repository: https://github.com/jquery-form/form
|
||||||
|
|
||||||
* Copyright 2017 Kevin Morris
|
* Copyright 2017 Kevin Morris
|
||||||
* Copyright 2006 M. Alsup
|
* Copyright 2006 M. Alsup
|
||||||
* Project repository: https://github.com/jquery-form/form
|
|
||||||
* Dual licensed under the MIT and LGPLv3 licenses.
|
* Dual licensed under the LGPL-2.1+ or MIT licenses
|
||||||
* https://github.com/jquery-form/form#license
|
* https://github.com/jquery-form/form#license
|
||||||
|
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
*/
|
*/
|
||||||
/* global ActiveXObject */
|
/* global ActiveXObject */
|
||||||
|
|
||||||
|
@ -125,7 +136,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint consistent-this: ["error", "$form"] */
|
/* eslint consistent-this: ["error", "$form"] */
|
||||||
var method, action, url, $form = this;
|
var method, action, url, isMsie, iframeSrc, $form = this;
|
||||||
|
|
||||||
if (typeof options === 'function') {
|
if (typeof options === 'function') {
|
||||||
options = {success: options};
|
options = {success: options};
|
||||||
|
@ -154,12 +165,16 @@
|
||||||
// clean url (don't include hash vaue)
|
// clean url (don't include hash vaue)
|
||||||
url = (url.match(/^([^#]+)/) || [])[1];
|
url = (url.match(/^([^#]+)/) || [])[1];
|
||||||
}
|
}
|
||||||
|
// IE requires javascript:false in https, but this breaks chrome >83 and goes against spec.
|
||||||
|
// Instead of using javascript:false always, let's only apply it for IE.
|
||||||
|
isMsie = /(MSIE|Trident)/.test(navigator.userAgent || '');
|
||||||
|
iframeSrc = (isMsie && /^https/i.test(window.location.href || '')) ? 'javascript:false' : 'about:blank'; // eslint-disable-line no-script-url
|
||||||
|
|
||||||
options = $.extend(true, {
|
options = $.extend(true, {
|
||||||
url : url,
|
url : url,
|
||||||
success : $.ajaxSettings.success,
|
success : $.ajaxSettings.success,
|
||||||
type : method || $.ajaxSettings.type,
|
type : method || $.ajaxSettings.type,
|
||||||
iframeSrc : /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank' // eslint-disable-line no-script-url
|
iframeSrc : iframeSrc
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
// hook for manipulating the form data before it is extracted;
|
// hook for manipulating the form data before it is extracted;
|
||||||
|
@ -725,7 +740,8 @@
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} else if (e === SERVER_ABORT && xhr) {
|
}
|
||||||
|
if (e === SERVER_ABORT && xhr) {
|
||||||
xhr.abort('server abort');
|
xhr.abort('server abort');
|
||||||
deferred.reject(xhr, 'error', 'server abort');
|
deferred.reject(xhr, 'error', 'server abort');
|
||||||
|
|
||||||
|
@ -1000,6 +1016,10 @@
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.beforeFormUnbind) {
|
||||||
|
options.beforeFormUnbind(this, options);
|
||||||
|
}
|
||||||
|
|
||||||
return this.ajaxFormUnbind()
|
return this.ajaxFormUnbind()
|
||||||
.on('submit.form-plugin', options, doAjaxSubmit)
|
.on('submit.form-plugin', options, doAjaxSubmit)
|
||||||
.on('click.form-plugin', options, captureSubmittingElement);
|
.on('click.form-plugin', options, captureSubmittingElement);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-alpha-50545';
|
$wp_version = '5.8-alpha-50546';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue