Plugin Directory

Changeset 1180663


Ignore:
Timestamp:
06/14/2015 05:00:04 PM (11 years ago)
Author:
cptup
Message:

version 2.2.0

Location:
captain-up/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • captain-up/trunk/README.md

    r1079524 r1180663  
    9797## Changelog
    9898
     99###### 2.2.0
     100
     101* Support for WordPress 4.2.2
     102* Fixed issue when updating blank user attributes with secure user integration
     103
    99104###### 2.1.0
    100105
  • captain-up/trunk/captainup.php

    r1079524 r1180663  
    44Plugin URI: https://www.captainup.com
    55Description: Add Game Mechanics to your site and increase your engagement and retention. 2 minutes install: Simply add your free Captain Up API Key and you are good to go. The plugin also adds widgets you can use to show leaderboards and activities within your site.
    6 Version: 2.1.0
     6Version: 2.2.0
    77Author: Captain Up Team
    88License: GPL2
     
    380380}
    381381
    382 ?>
  • captain-up/trunk/readme.txt

    r1079524 r1180663  
    33Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google
    44Requires at least: 3.0.1
    5 Tested up to: 4.1.0
     5Tested up to: 4.2.2
    66Stable tag: trunk
    77License: GPLv2 or later
     
    123123== Changelog ==
    124124
     125= 2.2.0 =
     126
     127* Support for WordPress 4.2.2
     128* Fixed issue when updating blank user attributes with secure user integration
     129
    125130= 2.1.0 =
     131
    126132* **New**: Automatic user integration with WordPress user accounts
    127133* **Upgrade**: Support for WordPress 4.1
  • captain-up/trunk/utils.php

    r1079525 r1180663  
    6161            $data = wp_remote_retrieve_body(wp_remote_get($api_endpoint));
    6262            # Return the JSON decoded data, or false if the request failed.
    63             return data ? json_decode($data) : false;
     63            return $data ? json_decode($data) : false;
    6464        }
    6565
     
    9898            // Remove all `null`, `undefined`, arrays and objects from the object
    9999            foreach($user as $key => $value) {
    100                 if(empty($value) || $value == '') {
    101                 unset($user[$key]);
     100                if(is_null($value)) {
     101                    unset($user[$key]);
    102102                }
    103103            }
     
    113113            // Sign the serialized object with SHA-512 in lowercase hexadecimal digits
    114114            $signed_user = hash_hmac('sha512', $signed_user, $secret);
    115             // Encode it as Base64
     115            // Encode it as base 64
    116116            $signed_user = base64_encode($signed_user);
    117117            // remove new lines and and the '=' part at the end, and return
Note: See TracChangeset for help on using the changeset viewer.