Changeset 1180663
- Timestamp:
- 06/14/2015 05:00:04 PM (11 years ago)
- Location:
- captain-up/trunk
- Files:
-
- 4 edited
-
README.md (modified) (1 diff)
-
captainup.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
utils.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
captain-up/trunk/README.md
r1079524 r1180663 97 97 ## Changelog 98 98 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 99 104 ###### 2.1.0 100 105 -
captain-up/trunk/captainup.php
r1079524 r1180663 4 4 Plugin URI: https://www.captainup.com 5 5 Description: 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.06 Version: 2.2.0 7 7 Author: Captain Up Team 8 8 License: GPL2 … … 380 380 } 381 381 382 ?> -
captain-up/trunk/readme.txt
r1079524 r1180663 3 3 Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 1.05 Tested up to: 4.2.2 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 123 123 == Changelog == 124 124 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 125 130 = 2.1.0 = 131 126 132 * **New**: Automatic user integration with WordPress user accounts 127 133 * **Upgrade**: Support for WordPress 4.1 -
captain-up/trunk/utils.php
r1079525 r1180663 61 61 $data = wp_remote_retrieve_body(wp_remote_get($api_endpoint)); 62 62 # 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; 64 64 } 65 65 … … 98 98 // Remove all `null`, `undefined`, arrays and objects from the object 99 99 foreach($user as $key => $value) { 100 if( empty($value) || $value == '') {101 unset($user[$key]);100 if(is_null($value)) { 101 unset($user[$key]); 102 102 } 103 103 } … … 113 113 // Sign the serialized object with SHA-512 in lowercase hexadecimal digits 114 114 $signed_user = hash_hmac('sha512', $signed_user, $secret); 115 // Encode it as Base64115 // Encode it as base 64 116 116 $signed_user = base64_encode($signed_user); 117 117 // remove new lines and and the '=' part at the end, and return
Note: See TracChangeset
for help on using the changeset viewer.