@@ 5377-5388 (lines=12) @@ | ||
5374 | * @param Array $properties |
|
5375 | * @return Array amended properties. |
|
5376 | */ |
|
5377 | public static function filter_register_request_body( $properties ) { |
|
5378 | $tracking = new Tracking(); |
|
5379 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5380 | ||
5381 | return array_merge( |
|
5382 | $properties, |
|
5383 | array( |
|
5384 | '_ui' => $tracks_identity['_ui'], |
|
5385 | '_ut' => $tracks_identity['_ut'], |
|
5386 | ) |
|
5387 | ); |
|
5388 | } |
|
5389 | ||
5390 | /** |
|
5391 | * Filters the token request body to include tracking properties. |
|
@@ 5396-5407 (lines=12) @@ | ||
5393 | * @param Array $properties |
|
5394 | * @return Array amended properties. |
|
5395 | */ |
|
5396 | public static function filter_token_request_body( $properties ) { |
|
5397 | $tracking = new Tracking(); |
|
5398 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5399 | ||
5400 | return array_merge( |
|
5401 | $properties, |
|
5402 | array( |
|
5403 | '_ui' => $tracks_identity['_ui'], |
|
5404 | '_ut' => $tracks_identity['_ut'], |
|
5405 | ) |
|
5406 | ); |
|
5407 | } |
|
5408 | ||
5409 | /** |
|
5410 | * If the db version is showing something other that what we've got now, bump it to current. |