@@ 5465-5476 (lines=12) @@ | ||
5462 | * @param array $properties |
|
5463 | * @return array amended properties. |
|
5464 | */ |
|
5465 | public static function filter_register_request_body( $properties ) { |
|
5466 | $tracking = new Tracking(); |
|
5467 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5468 | ||
5469 | return array_merge( |
|
5470 | $properties, |
|
5471 | array( |
|
5472 | '_ui' => $tracks_identity['_ui'], |
|
5473 | '_ut' => $tracks_identity['_ut'], |
|
5474 | ) |
|
5475 | ); |
|
5476 | } |
|
5477 | ||
5478 | /** |
|
5479 | * Filters the token request body to include tracking properties. |
|
@@ 5484-5495 (lines=12) @@ | ||
5481 | * @param array $properties |
|
5482 | * @return array amended properties. |
|
5483 | */ |
|
5484 | public static function filter_token_request_body( $properties ) { |
|
5485 | $tracking = new Tracking(); |
|
5486 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5487 | ||
5488 | return array_merge( |
|
5489 | $properties, |
|
5490 | array( |
|
5491 | '_ui' => $tracks_identity['_ui'], |
|
5492 | '_ut' => $tracks_identity['_ut'], |
|
5493 | ) |
|
5494 | ); |
|
5495 | } |
|
5496 | ||
5497 | /** |
|
5498 | * If the db version is showing something other that what we've got now, bump it to current. |