Skip to content

Commit

Permalink
chore: add site url
Browse files Browse the repository at this point in the history
  • Loading branch information
jishat committed Oct 9, 2024
1 parent f60a9cc commit 45a0479
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Telemetry/Feedback/Feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public function handleDeactivateFeedback()
}

$report = [];
$report['url'] = esc_url(home_url());
$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;
Expand Down

0 comments on commit 45a0479

Please sign in to comment.