| Server IP : 185.68.16.147 / Your IP : 216.73.216.209 Web Server : Apache System : Linux web789.default-host.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : jt292766 ( 1182) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/jt292766/konstruktbud.com.ua/www/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 );