@@ 5184-5195 (lines=12) @@ | ||
5181 | * @param array $properties |
|
5182 | * @return array amended properties. |
|
5183 | */ |
|
5184 | public static function filter_token_request_body( $properties ) { |
|
5185 | $tracking = new Tracking(); |
|
5186 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5187 | ||
5188 | return array_merge( |
|
5189 | $properties, |
|
5190 | array( |
|
5191 | '_ui' => $tracks_identity['_ui'], |
|
5192 | '_ut' => $tracks_identity['_ut'], |
|
5193 | ) |
|
5194 | ); |
|
5195 | } |
|
5196 | ||
5197 | /** |
|
5198 | * If the db version is showing something other that what we've got now, bump it to current. |
@@ 74-85 (lines=12) @@ | ||
71 | * @param array $properties Already prepared tracking properties. |
|
72 | * @return array amended properties. |
|
73 | */ |
|
74 | public static function filter_register_request_body( $properties ) { |
|
75 | $tracking = new Tracking(); |
|
76 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
77 | ||
78 | return array_merge( |
|
79 | $properties, |
|
80 | array( |
|
81 | '_ui' => $tracks_identity['_ui'], |
|
82 | '_ut' => $tracks_identity['_ut'], |
|
83 | ) |
|
84 | ); |
|
85 | } |
|
86 | ||
87 | } |
|
88 |