@@ 5566-5577 (lines=12) @@ | ||
5563 | * @param array $properties |
|
5564 | * @return array amended properties. |
|
5565 | */ |
|
5566 | public static function filter_token_request_body( $properties ) { |
|
5567 | $tracking = new Tracking(); |
|
5568 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5569 | ||
5570 | return array_merge( |
|
5571 | $properties, |
|
5572 | array( |
|
5573 | '_ui' => $tracks_identity['_ui'], |
|
5574 | '_ut' => $tracks_identity['_ut'], |
|
5575 | ) |
|
5576 | ); |
|
5577 | } |
|
5578 | ||
5579 | /** |
|
5580 | * If the db version is showing something other that what we've got now, bump it to current. |
@@ 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 |