HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux sa-dev.otherchirps.net 5.15.0-139-generic #149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025 x86_64
User: www-data (33)
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/html/wp-content/plugins/editorplus/assets/scripts/lodash-conflict.js
const isLodash = () => {
	let isLodashLib = false;

	// If _ is defined and the function _.forEach exists then we know underscore OR lodash are in place
	if ( 'undefined' != typeof _ && 'function' == typeof _.forEach ) {

		// A small sample of some of the functions that exist in lodash but not underscore
		const funcs = [ 'get', 'set', 'at', 'cloneDeep' ];

		// Simplest if assume exists to start
		isLodashLib = true;

		funcs.forEach( function( func ) {

			// If just one of the functions do not exist, then not lodash
			isLodashLib = 'function' != typeof _[func] ? false : isLodashLib;
		});
	}

	if ( isLodashLib ) {

		// We know that lodash is loaded in the _ variable
		return true;
	} else {

		// We know that lodash is NOT loaded
		return false;
	}
};

wp.domReady( () => {
	if ( isLodash() ) {
		_.noConflict();
	}
});