Skip to content

Commit

Permalink
Refactor activation logic to directly call REST API health check func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
b1ink0 committed Dec 24, 2024
1 parent 7e4e057 commit a2baa65
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions plugins/optimization-detective/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
);
}
Expand Down Expand Up @@ -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();
}

0 comments on commit a2baa65

Please sign in to comment.