| @@ 88-99 (lines=12) @@ | ||
| 85 | * @param array $properties Already prepared tracking properties. |
|
| 86 | * @return array amended properties. |
|
| 87 | */ |
|
| 88 | public static function filter_register_request_body( $properties ) { |
|
| 89 | $tracking = new Tracking(); |
|
| 90 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
| 91 | ||
| 92 | return array_merge( |
|
| 93 | $properties, |
|
| 94 | array( |
|
| 95 | '_ui' => $tracks_identity['_ui'], |
|
| 96 | '_ut' => $tracks_identity['_ut'], |
|
| 97 | ) |
|
| 98 | ); |
|
| 99 | } |
|
| 100 | ||
| 101 | } |
|
| 102 | ||
| @@ 5561-5572 (lines=12) @@ | ||
| 5558 | * @param array $properties |
|
| 5559 | * @return array amended properties. |
|
| 5560 | */ |
|
| 5561 | public static function filter_token_request_body( $properties ) { |
|
| 5562 | $tracking = new Tracking(); |
|
| 5563 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
| 5564 | ||
| 5565 | return array_merge( |
|
| 5566 | $properties, |
|
| 5567 | array( |
|
| 5568 | '_ui' => $tracks_identity['_ui'], |
|
| 5569 | '_ut' => $tracks_identity['_ut'], |
|
| 5570 | ) |
|
| 5571 | ); |
|
| 5572 | } |
|
| 5573 | ||
| 5574 | /** |
|
| 5575 | * If the db version is showing something other that what we've got now, bump it to current. |
|