Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Add hostname to json output
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Jan 9, 2020
1 parent 67e333b commit 7f1ede9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Check {
public $text;
public $version;
public $analytics_id;
public $host;

private function setting( $setting ) {

Expand All @@ -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;
Expand Down

0 comments on commit 7f1ede9

Please # to comment.