From a2baa65780543e03203c715a50168d005e1f83de Mon Sep 17 00:00:00 2001 From: Aditya Dhade Date: Tue, 24 Dec 2024 19:21:05 +0530 Subject: [PATCH] Refactor activation logic to directly call REST API health check function --- plugins/optimization-detective/load.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/plugins/optimization-detective/load.php b/plugins/optimization-detective/load.php index 11ee99392..be09dfdd7 100644 --- a/plugins/optimization-detective/load.php +++ b/plugins/optimization-detective/load.php @@ -60,7 +60,7 @@ static function () use ( $bootstrap ): void { * means that the plugin must be bootstrapped here to run the activation logic. */ $bootstrap(); - od_plugin_activation(); + od_rest_api_health_check_plugin_activation(); } ); } @@ -144,12 +144,3 @@ class_alias( OD_URL_Metric_Group_Collection::class, 'OD_URL_Metrics_Group_Collec require_once __DIR__ . '/site-health/load.php'; } ); - -/** - * Activation hook for the plugin. - * - * @since n.e.x.t - */ -function od_plugin_activation(): void { - od_rest_api_health_check_plugin_activation(); -}