@@ 5521-5532 (lines=12) @@ | ||
5518 | * @param array $properties |
|
5519 | * @return array amended properties. |
|
5520 | */ |
|
5521 | public static function filter_register_request_body( $properties ) { |
|
5522 | $tracking = new Tracking(); |
|
5523 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5524 | ||
5525 | return array_merge( |
|
5526 | $properties, |
|
5527 | array( |
|
5528 | '_ui' => $tracks_identity['_ui'], |
|
5529 | '_ut' => $tracks_identity['_ut'], |
|
5530 | ) |
|
5531 | ); |
|
5532 | } |
|
5533 | ||
5534 | /** |
|
5535 | * Filters the token request body to include tracking properties. |
|
@@ 5540-5551 (lines=12) @@ | ||
5537 | * @param array $properties |
|
5538 | * @return array amended properties. |
|
5539 | */ |
|
5540 | public static function filter_token_request_body( $properties ) { |
|
5541 | $tracking = new Tracking(); |
|
5542 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5543 | ||
5544 | return array_merge( |
|
5545 | $properties, |
|
5546 | array( |
|
5547 | '_ui' => $tracks_identity['_ui'], |
|
5548 | '_ut' => $tracks_identity['_ut'], |
|
5549 | ) |
|
5550 | ); |
|
5551 | } |
|
5552 | ||
5553 | /** |
|
5554 | * If the db version is showing something other that what we've got now, bump it to current. |