$66 GRAYBYTE WORDPRESS FILE MANAGER $98

SERVER : premium267.web-hosting.com #1 SMP Wed Jun 4 13:01:13 UTC 2025
SERVER IP : 69.57.162.29 | ADMIN IP 216.73.216.187
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/njinenkb/jaccul.org/wp-content/plugins/wpforms-lite/src/Migrations/

HOME
Current File : /home/njinenkb/jaccul.org/wp-content/plugins/wpforms-lite/src/Migrations//Upgrade1_9_1.php
<?php

namespace WPForms\Migrations;

/**
 * Class upgrade for 1.9.1 release.
 *
 * @since 1.9.1
 */
class Upgrade1_9_1 extends UpgradeBase {

	/**
	 * Delete existed notifications for the customer.
	 *
	 * @since 1.9.1
	 *
	 * @return bool|null Upgrade result:
	 *                    true - the upgrade completed successfully,
	 *                    false - in the case of failure,
	 *                    null - upgrade started but not yet finished (background task).
	 */
	public function run() {

		$this->clean_summaries_cron_event();

		$notifications_option_key = 'wpforms_notifications';
		$notifications            = get_option( $notifications_option_key, [] );

		if ( empty( $notifications['events'] ) ) {
			return true;
		}

		$notifications['events'] = [];

		update_option( 'wpforms_notifications', $notifications );

		return true;
	}

	/**
	 * Clean summaries and entries count cron events,
	 * Since the 1.9.1 release these cron events recurrences have been changed to single event.
	 * The events will be recreated on the next page load.
	 *
	 * @since 1.9.1
	 */
	private function clean_summaries_cron_event() {

		if ( wp_next_scheduled( 'wpforms_weekly_entries_count_cron' ) ) {
			wp_clear_scheduled_hook( 'wpforms_weekly_entries_count_cron' );
		}

		if ( wp_next_scheduled( 'wpforms_email_summaries_cron' ) ) {
			wp_clear_scheduled_hook( 'wpforms_email_summaries_cron' );
		}
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 May 2026 12.43 PM
njinenkb / njinenkb
0755
Tasks
--
3 May 2026 12.43 PM
njinenkb / njinenkb
0755
Base.php
12.035 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Migrations.php
0.969 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade159.php
0.69 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade1672.php
0.843 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade168.php
1.238 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade175.php
2.673 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade1751.php
0.549 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade177.php
1.211 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade182.php
3.102 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade183.php
0.751 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade184.php
0.888 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade186.php
0.386 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade187.php
1.354 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade1_9_1.php
1.373 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade1_9_2.php
0.89 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade1_9_7.php
0.325 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
Upgrade1_9_8_6.php
2.736 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644
UpgradeBase.php
3.43 KB
3 May 2026 12.43 PM
njinenkb / njinenkb
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF