@@ 87-98 (lines=12) @@ | ||
84 | * @param array $properties Already prepared tracking properties. |
|
85 | * @return array amended properties. |
|
86 | */ |
|
87 | public static function filter_register_request_body( $properties ) { |
|
88 | $tracking = new Tracking(); |
|
89 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
90 | ||
91 | return array_merge( |
|
92 | $properties, |
|
93 | array( |
|
94 | '_ui' => $tracks_identity['_ui'], |
|
95 | '_ut' => $tracks_identity['_ut'], |
|
96 | ) |
|
97 | ); |
|
98 | } |
|
99 | } |
|
100 |
@@ 5531-5542 (lines=12) @@ | ||
5528 | * @param array $properties |
|
5529 | * @return array amended properties. |
|
5530 | */ |
|
5531 | public static function filter_token_request_body( $properties ) { |
|
5532 | $tracking = new Tracking(); |
|
5533 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5534 | ||
5535 | return array_merge( |
|
5536 | $properties, |
|
5537 | array( |
|
5538 | '_ui' => $tracks_identity['_ui'], |
|
5539 | '_ut' => $tracks_identity['_ut'], |
|
5540 | ) |
|
5541 | ); |
|
5542 | } |
|
5543 | ||
5544 | /** |
|
5545 | * If the db version is showing something other that what we've got now, bump it to current. |