GRAYBYTE WORDPRESS FILE MANAGER9556

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/wpforms-lite/src/Migrations/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/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()->obj( 'log' );

		if ( ! $log ) {
			return false;
		}

		$log->create_table();

		return true;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:21
inteuuod / inteuuod
0755
Tasks
--
July 10 2025 04:32:21
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:21
inteuuod / inteuuod
0644
Base.php
11.871 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
Migrations.php
0.908 KB
November 07 2024 17:15:50
inteuuod / inteuuod
0644
Upgrade159.php
0.69 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
Upgrade1672.php
0.843 KB
June 30 2022 15:09:42
inteuuod / inteuuod
0644
Upgrade168.php
1.238 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
Upgrade175.php
2.673 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
Upgrade1751.php
0.549 KB
August 18 2022 14:59:52
inteuuod / inteuuod
0644
Upgrade177.php
1.211 KB
September 29 2022 15:18:52
inteuuod / inteuuod
0644
Upgrade182.php
3.036 KB
June 07 2023 17:54:22
inteuuod / inteuuod
0644
Upgrade183.php
0.751 KB
August 10 2023 15:19:36
inteuuod / inteuuod
0644
Upgrade184.php
0.888 KB
September 28 2023 15:44:58
inteuuod / inteuuod
0644
Upgrade186.php
0.386 KB
January 16 2024 17:57:58
inteuuod / inteuuod
0644
Upgrade187.php
1.354 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
Upgrade1_9_1.php
1.373 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
Upgrade1_9_2.php
0.89 KB
November 07 2024 17:15:50
inteuuod / inteuuod
0644
UpgradeBase.php
3.43 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF