Skip to content

Commit

Permalink
Merge pull request #62 from auth0/dev
Browse files Browse the repository at this point in the history
Updated info headers
  • Loading branch information
glena committed May 14, 2015
2 parents 3ea0699 + 6e3e662 commit a2a9779
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion WP_Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Wordpress Auth0 Integration
* Description: Implements the Auth0 Single Sign On solution into Wordpress
* Version: 1.2
* Version: 1.2.1
* Author: Auth0
* Author URI: https://auth0.com
*/
Expand All @@ -12,6 +12,7 @@
define('WPA0_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__) ));
define('WPA0_LANG', 'wp-auth0');
define('AUTH0_DB_VERSION', 2);
define('WPA0_VERSION', '1.2.1');

class WP_Auth0 {
public static function init(){
Expand Down
7 changes: 5 additions & 2 deletions lib/WP_Auth0_Api_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ protected static function get_info_headers() {
global $wp_version;

return array(
'User-Agent' => 'PHP/' . phpversion(),
'Auth0-Client', 'PHP/WordPress/' . $wp_version
'User-Agent' => 'PHP/' . phpversion() . ' (WordPress:' . $wp_version . ')',
'Auth0-Client' => base64_encode(json_encode(array(
'name' => 'wp-auth0',
'version' => WPA0_VERSION
)))
);
}

Expand Down

0 comments on commit a2a9779

Please sign in to comment.