@@ 5264-5275 (lines=12) @@ | ||
5261 | * @param Array $properties |
|
5262 | * @return Array amended properties. |
|
5263 | */ |
|
5264 | public static function filter_register_request_body( $properties ) { |
|
5265 | $tracking = new Tracking(); |
|
5266 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5267 | ||
5268 | return array_merge( |
|
5269 | $properties, |
|
5270 | array( |
|
5271 | '_ui' => $tracks_identity['_ui'], |
|
5272 | '_ut' => $tracks_identity['_ut'], |
|
5273 | ) |
|
5274 | ); |
|
5275 | } |
|
5276 | ||
5277 | /** |
|
5278 | * Filters the token request body to include tracking properties. |
|
@@ 5283-5294 (lines=12) @@ | ||
5280 | * @param Array $properties |
|
5281 | * @return Array amended properties. |
|
5282 | */ |
|
5283 | public static function filter_token_request_body( $properties ) { |
|
5284 | $tracking = new Tracking(); |
|
5285 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5286 | ||
5287 | return array_merge( |
|
5288 | $properties, |
|
5289 | array( |
|
5290 | '_ui' => $tracks_identity['_ui'], |
|
5291 | '_ut' => $tracks_identity['_ut'], |
|
5292 | ) |
|
5293 | ); |
|
5294 | } |
|
5295 | ||
5296 | /** |
|
5297 | * If the db version is showing something other that what we've got now, bump it to current. |