@@ 5265-5276 (lines=12) @@ | ||
5262 | * @param Array $properties |
|
5263 | * @return Array amended properties. |
|
5264 | */ |
|
5265 | public static function filter_register_request_body( $properties ) { |
|
5266 | $tracking = new Tracking(); |
|
5267 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5268 | ||
5269 | return array_merge( |
|
5270 | $properties, |
|
5271 | array( |
|
5272 | '_ui' => $tracks_identity['_ui'], |
|
5273 | '_ut' => $tracks_identity['_ut'], |
|
5274 | ) |
|
5275 | ); |
|
5276 | } |
|
5277 | ||
5278 | /** |
|
5279 | * Filters the token request body to include tracking properties. |
|
@@ 5284-5295 (lines=12) @@ | ||
5281 | * @param Array $properties |
|
5282 | * @return Array amended properties. |
|
5283 | */ |
|
5284 | public static function filter_token_request_body( $properties ) { |
|
5285 | $tracking = new Tracking(); |
|
5286 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5287 | ||
5288 | return array_merge( |
|
5289 | $properties, |
|
5290 | array( |
|
5291 | '_ui' => $tracks_identity['_ui'], |
|
5292 | '_ut' => $tracks_identity['_ut'], |
|
5293 | ) |
|
5294 | ); |
|
5295 | } |
|
5296 | ||
5297 | /** |
|
5298 | * If the db version is showing something other that what we've got now, bump it to current. |