Skip to content

Commit 7f02a26

Browse files
claytoncollieclaude
andcommitted
Move hostingProvider and isMultisite from customData to top-level body
These are static environment metadata that belong as first-class fields in the POST payload rather than embedded in the customData array. Monitor reads them directly with a backward-compatible fallback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 55bc194 commit 7f02a26

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

includes/classes/SupportMonitor/Monitor.php

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -466,25 +466,17 @@ public function send_daily_report() {
466466
'value' => $this->xmlrpc_enabled(),
467467
'group' => 'system',
468468
],
469-
[
470-
'key' => 'hosting_provider',
471-
'value' => $this->get_hosting_provider(),
472-
'group' => 'system',
473-
],
474-
[
475-
'key' => 'is_multisite',
476-
'value' => is_multisite(),
477-
'group' => 'system',
478-
],
479469
];
480470

481471
$body = [
482-
'url' => TENUP_EXPERIENCE_IS_NETWORK ? network_home_url() : home_url(),
483-
'platform' => 'wordpress',
484-
'packages' => $this->get_packages(),
485-
'activityLogs' => $logs,
486-
'customData' => $custom_data,
487-
'users' => $this->get_users(),
472+
'url' => TENUP_EXPERIENCE_IS_NETWORK ? network_home_url() : home_url(),
473+
'platform' => 'wordpress',
474+
'hostingProvider' => $this->get_hosting_provider(),
475+
'isMultisite' => is_multisite(),
476+
'packages' => $this->get_packages(),
477+
'activityLogs' => $logs,
478+
'customData' => $custom_data,
479+
'users' => $this->get_users(),
488480
];
489481

490482
$this->send_request( $body );

0 commit comments

Comments
 (0)