-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-secure-plugin-updates.php
More file actions
45 lines (39 loc) · 1.23 KB
/
Copy pathwp-secure-plugin-updates.php
File metadata and controls
45 lines (39 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Plugin Name: Secure Plugin Updates Lab
* Description: Experiments with delayed auto-updates, provider approval checks, and package integrity gates for WordPress plugin updates.
* Version: 1.0.0
* Requires at least: 6.5
* Requires PHP: 7.4
* Author: Secure Plugin Updates Lab
* Text Domain: wp-secure-plugin-updates
*
* @package WSPU
*/
declare(strict_types=1);
if (! defined('ABSPATH')) {
exit;
}
define('WSPU_VERSION', '1.0.0');
define('WSPU_PLUGIN_FILE', __FILE__);
define('WSPU_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('WSPU_PLUGIN_URL', plugin_dir_url(__FILE__));
require_once WSPU_PLUGIN_DIR . 'includes/class-event-log.php';
require_once WSPU_PLUGIN_DIR . 'includes/class-settings.php';
require_once WSPU_PLUGIN_DIR . 'includes/class-signature-verifier.php';
require_once WSPU_PLUGIN_DIR . 'includes/class-version-first-seen.php';
require_once WSPU_PLUGIN_DIR . 'includes/class-version-approval.php';
require_once WSPU_PLUGIN_DIR . 'includes/class-update-gatekeeper.php';
require_once WSPU_PLUGIN_DIR . 'includes/class-plugin.php';
register_activation_hook(
__FILE__,
static function (): void {
\WSPU\Settings::activate();
}
);
add_action(
'plugins_loaded',
static function (): void {
\WSPU\Plugin::init();
}
);