@@ 5340-5351 (lines=12) @@ | ||
5337 | * @param Array $properties |
|
5338 | * @return Array amended properties. |
|
5339 | */ |
|
5340 | public static function filter_register_request_body( $properties ) { |
|
5341 | $tracking = new Tracking(); |
|
5342 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5343 | ||
5344 | return array_merge( |
|
5345 | $properties, |
|
5346 | array( |
|
5347 | '_ui' => $tracks_identity['_ui'], |
|
5348 | '_ut' => $tracks_identity['_ut'], |
|
5349 | ) |
|
5350 | ); |
|
5351 | } |
|
5352 | ||
5353 | /** |
|
5354 | * Filters the token request body to include tracking properties. |
|
@@ 5359-5370 (lines=12) @@ | ||
5356 | * @param Array $properties |
|
5357 | * @return Array amended properties. |
|
5358 | */ |
|
5359 | public static function filter_token_request_body( $properties ) { |
|
5360 | $tracking = new Tracking(); |
|
5361 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5362 | ||
5363 | return array_merge( |
|
5364 | $properties, |
|
5365 | array( |
|
5366 | '_ui' => $tracks_identity['_ui'], |
|
5367 | '_ut' => $tracks_identity['_ut'], |
|
5368 | ) |
|
5369 | ); |
|
5370 | } |
|
5371 | ||
5372 | /** |
|
5373 | * If the db version is showing something other that what we've got now, bump it to current. |