From 7f1ede9baa8ad63f7a395e44c48ba5091e955337 Mon Sep 17 00:00:00 2001 From: Fred Bradley Date: Thu, 9 Jan 2020 21:44:49 +0000 Subject: [PATCH] Add hostname to json output --- src/Check.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Check.php b/src/Check.php index 15a6516..7d522b8 100644 --- a/src/Check.php +++ b/src/Check.php @@ -23,6 +23,7 @@ class Check { public $text; public $version; public $analytics_id; + public $host; private function setting( $setting ) { @@ -44,6 +45,7 @@ public function __construct( $wp_version, $plugin_version ) { $this->wp_version = $wp_version; $this->version = $plugin_version; $this->analytics_id = Analytics::$analytics_id; + $this->host = parse_url(get_site_url())['host']; if ( isset( $_GET['allow_local'] ) && $_GET['allow_local'] == 'lacol_wolla' ) { $this->allow_local = true;