diff --git a/src/Telemetry/Events/Event_Subscriber.php b/src/Telemetry/Events/Event_Subscriber.php index d1d81e9..281943f 100644 --- a/src/Telemetry/Events/Event_Subscriber.php +++ b/src/Telemetry/Events/Event_Subscriber.php @@ -51,15 +51,11 @@ public function register() { * @return void */ public function cache_event( $name, $data ) { - $events = []; - self::$events[] = [ 'name' => $name, 'data' => wp_json_encode( $data ), 'stellar_slug' => Config::get_stellar_slug(), ]; - - self::$events = $events; } /**