__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace WPForms\Migrations;

/**
 * Class upgrade for 1.9.8.6 release.
 *
 * @since 1.9.8.6
 */
class Upgrade1_9_8_6 extends UpgradeBase {

	/**
	 * Run upgrade.
	 *
	 * @since 1.9.8.6
	 */
	public function run(): bool {

		$activated_plugins = [];

		$this->check_wpconsent_activation( $activated_plugins );
		$this->check_sugar_calendar_activation( $activated_plugins );
		$this->check_duplicator_activation( $activated_plugins );
		$this->check_uncanny_automator_activation( $activated_plugins );

		add_option( 'wpforms_rotation_activated_plugins', $activated_plugins );

		return true;
	}

	/**
	 * Check WPConsent plugin activation time.
	 *
	 * @since 1.9.8.6
	 *
	 * @param array $activated_plugins Reference to activated plugins array.
	 */
	private function check_wpconsent_activation( array &$activated_plugins ): void {

		$wpconsent = get_option( 'wpconsent_activated' );

		$wpconsent_time = $wpconsent['wpconsent'] ?? null;

		if ( empty( $wpconsent_time ) ) {
			$wpconsent_time = $wpconsent['wpconsent_pro'] ?? null;
		}

		if ( ! empty( $wpconsent_time ) ) {
			$activated_plugins['wpconsent'] = $wpconsent_time;
		}
	}

	/**
	 * Check Sugar Calendar plugin activation time.
	 *
	 * @since 1.9.8.6
	 *
	 * @param array $activated_plugins Reference to activated plugins array.
	 */
	private function check_sugar_calendar_activation( array &$activated_plugins ): void {

		$sugar_calendar_activated_time = get_option( 'sugar_calendar_activated_time' );

		if ( ! empty( $sugar_calendar_activated_time ) ) {
			$activated_plugins['sugar-calendar'] = (int) $sugar_calendar_activated_time;
		}
	}

	/**
	 * Check Duplicator plugin activation time.
	 *
	 * @since 1.9.8.6
	 *
	 * @param array $activated_plugins Reference to activated plugins array.
	 */
	private function check_duplicator_activation( array &$activated_plugins ): void {

		$duplicator_install_info = get_option( 'duplicator_install_info' );

		$duplicator_time = $duplicator_install_info['time'] ?? null;

		if ( empty( $duplicator_time ) ) {
			$duplicator_pro_install_info = get_option( 'duplicator_pro_install_info' );

			$duplicator_time = $duplicator_pro_install_info['time'] ?? null;
		}

		if ( ! empty( $duplicator_time ) ) {
			$activated_plugins['duplicator'] = $duplicator_time;
		}
	}

	/**
	 * Check Uncanny Automator plugin activation time.
	 *
	 * @since 1.9.8.6
	 *
	 * @param array $activated_plugins Reference to activated plugins array.
	 */
	private function check_uncanny_automator_activation( array &$activated_plugins ): void {

		$uncanny_automator_v6_options_migrated = get_option( 'uncanny_automator_v6_options_migrated' );

		if ( ! empty( $uncanny_automator_v6_options_migrated ) ) {
			$activated_plugins['uncanny-automator'] = (int) $uncanny_automator_v6_options_migrated;
		}
	}
}

Filemanager

Name Type Size Permission Actions
Tasks Folder 0775
Base.php File 12.02 KB 0775
Migrations.php File 992 B 0775
Upgrade159.php File 707 B 0775
Upgrade1672.php File 863 B 0775
Upgrade168.php File 1.24 KB 0775
Upgrade175.php File 2.67 KB 0775
Upgrade1751.php File 562 B 0775
Upgrade177.php File 1.21 KB 0775
Upgrade182.php File 3.1 KB 0775
Upgrade183.php File 769 B 0775
Upgrade184.php File 909 B 0775
Upgrade186.php File 395 B 0775
Upgrade187.php File 1.35 KB 0775
Upgrade1_9_1.php File 1.37 KB 0775
Upgrade1_9_2.php File 911 B 0775
Upgrade1_9_7.php File 333 B 0775
Upgrade1_9_8_6.php File 2.74 KB 0775
UpgradeBase.php File 3.43 KB 0775
Filemanager