Skip to content

Commit

Permalink
Corrects version information
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-mollie committed Feb 27, 2014
1 parent 728af4a commit a2c8d4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MPM/mpm_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function __construct()
global $wp_version;
$this->api = new Mollie_API_Client;
$this->api->setApiKey($this->get_option('api_key'));
$this->api->addVersionString('WordPress', isset($wp_version) ? $wp_version : 'Unknown');
$this->api->addVersionString('WooCommerce', get_option('woocommerce_version', 'Unknown'));
$this->api->addVersionString('MollieWoo', $this->plugin_version);
$this->api->addVersionString('WordPress/' . (isset($wp_version) ? $wp_version : 'Unknown'));
$this->api->addVersionString('WooCommerce/' . get_option('woocommerce_version', 'Unknown'));
$this->api->addVersionString('MollieWoo/' . $this->plugin_version);
$this->methods = $this->api->methods->all();
}
catch (Mollie_API_Exception $e)
Expand Down

0 comments on commit a2c8d4f

Please sign in to comment.