| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/mscinformatics2022/wp-content/plugins/polylang/js/build/ |
Upload File : |
/******/ "use strict";
;// ./js/src/lib/ajax-filter/index.js
/**
* @package Polylang
*/
/**
* Adds data to all ajax requests made with jQuery.
*
* @since 3.7
*
* @param {Object} data The data to add.
* @returns {void}
*/
function ajaxFilter( data ) {
if ( 'undefined' === typeof jQuery || ! data ) {
return;
}
const dataStr = jQuery.param( data );
jQuery.ajaxPrefilter( function ( options ) {
if ( -1 === options.url.indexOf( ajaxurl ) && -1 === ajaxurl.indexOf( options.url ) ) {
return;
}
if (
'undefined' === typeof options.data ||
null === options.data ||
'string' === typeof options.data && '' === options.data.trim()
) {
// An empty string or null/undefined.
options.data = dataStr;
} else if ( 'string' === typeof options.data ) {
// A non-empty string: can be a JSON string or a query string.
try {
options.data = JSON.stringify( Object.assign( JSON.parse( options.data ), data ) );
} catch ( exception ) {
// A non-empty non-JSON string is considered a query string.
options.data = `${ options.data }&${ dataStr }`;
}
} else if ( jQuery.isPlainObject( options.data ) ) {
// An object.
options.data = Object.assign( options.data, data );
}
} );
}
;// ./js/src/admin.js
/**
* @package Polylang
*/
ajaxFilter( pll_admin?.ajax_filter );