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