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