@@ 5362-5373 (lines=12) @@ | ||
5359 | * @param Array $properties |
|
5360 | * @return Array amended properties. |
|
5361 | */ |
|
5362 | public static function filter_register_request_body( $properties ) { |
|
5363 | $tracking = new Tracking(); |
|
5364 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5365 | ||
5366 | return array_merge( |
|
5367 | $properties, |
|
5368 | array( |
|
5369 | '_ui' => $tracks_identity['_ui'], |
|
5370 | '_ut' => $tracks_identity['_ut'], |
|
5371 | ) |
|
5372 | ); |
|
5373 | } |
|
5374 | ||
5375 | /** |
|
5376 | * Filters the token request body to include tracking properties. |
|
@@ 5381-5392 (lines=12) @@ | ||
5378 | * @param Array $properties |
|
5379 | * @return Array amended properties. |
|
5380 | */ |
|
5381 | public static function filter_token_request_body( $properties ) { |
|
5382 | $tracking = new Tracking(); |
|
5383 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5384 | ||
5385 | return array_merge( |
|
5386 | $properties, |
|
5387 | array( |
|
5388 | '_ui' => $tracks_identity['_ui'], |
|
5389 | '_ut' => $tracks_identity['_ut'], |
|
5390 | ) |
|
5391 | ); |
|
5392 | } |
|
5393 | ||
5394 | /** |
|
5395 | * If the db version is showing something other that what we've got now, bump it to current. |