Skip to content

Commit

Permalink
adds wpversion to the logger action
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Mar 7, 2019
1 parent 757eb02 commit 36f9b77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Modules/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function send_log() {
$environment['theme']['name'] = $theme->get( 'Name' );
$environment['theme']['author'] = $theme->get( 'Author' );
$environment['plugins'] = get_option( 'active_plugins' );

global $wp_version;
wp_remote_post(
self::TRACKING_ENDPOINT,
array(
Expand All @@ -166,6 +166,7 @@ public function send_log() {
'site' => get_site_url(),
'slug' => $this->product->get_slug(),
'version' => $this->product->get_version(),
'wp_version' => $wp_version,
'data' => apply_filters( $this->product->get_key() . '_logger_data', array() ),
'environment' => $environment,
'license' => apply_filters( $this->product->get_key() . '_license_status', '' ),
Expand Down

0 comments on commit 36f9b77

Please sign in to comment.