HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcodewordpressapi/public/wp-content/plugins/polylang/js/build/admin.js
/******/ "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 );