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 : 3.12.153.240
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/blog.diixadigital.com/wp-content/plugins/wpforms-lite/src/Migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/blog.diixadigital.com/wp-content/plugins/wpforms-lite/src/Migrations/Upgrade187.php
<?php

namespace WPForms\Migrations;

use WPForms\Admin\Builder\TemplatesCache;
use WPForms\Tasks\Actions\StripeLinkSubscriptionsTask;

/**
 * Class upgrade for 1.8.7 release.
 *
 * @since 1.8.7
 *
 * @noinspection PhpUnused
 */
class Upgrade187 extends UpgradeBase {

	/**
	 * Run upgrade.
	 *
	 * @since 1.8.7
	 *
	 * @return bool|null
	 */
	public function run() {

		$sync_result  = $this->update_templates_cache() && $this->maybe_create_logs_table();
		$async_result = $this->run_async( StripeLinkSubscriptionsTask::class );

		return $async_result === null ? null : $sync_result && $async_result;
	}

	/**
	 * Update templates' cache.
	 *
	 * @since 1.8.7
	 *
	 * @return bool
	 */
	private function update_templates_cache(): bool {

		$templates_cache = new TemplatesCache();

		$templates_cache->init();
		$templates_cache->update();

		return true;
	}

	/**
	 * Maybe create logs' table.
	 * Previously, logs' table was created dynamically on the first access to the Tools->Logs admin page.
	 * As from 1.8.7, we create it only once during the activation of the plugin.
	 * So, the table may not exist, and we must maybe create it during migration to 1.8.7.
	 *
	 * @since 1.8.7
	 *
	 * @return bool
	 */
	private function maybe_create_logs_table(): bool {

		$log = wpforms()->get( 'log' );

		if ( ! $log ) {
			return false;
		}

		$log->create_table();

		return true;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit