Skip to content

Commit

Permalink
chore: add plugin slug & version
Browse files Browse the repository at this point in the history
  • Loading branch information
jishat committed Oct 9, 2024
1 parent 1e61cb9 commit f60a9cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Telemetry/Feedback/Feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ public function handleDeactivateFeedback()
$report['site_lang'] = get_bloginfo('language');
$report['feedback_key'] = sanitize_text_field(wp_unslash($_POST['reason_key'])) ?: null;
$report['feedback'] = sanitize_text_field(wp_unslash($_POST["reason_{$report['feedback_key']}"])) ?: null;
$report['plugin_slug'] = TelemetryConfig::getPrefix();
$report['plugin_version'] = TelemetryConfig::getversion();

Telemetry::sendReport('deactivate-reason', $report);

Expand Down

0 comments on commit f60a9cc

Please sign in to comment.