@@ 5460-5471 (lines=12) @@ | ||
5457 | * @param array $properties |
|
5458 | * @return array amended properties. |
|
5459 | */ |
|
5460 | public static function filter_register_request_body( $properties ) { |
|
5461 | $tracking = new Tracking(); |
|
5462 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5463 | ||
5464 | return array_merge( |
|
5465 | $properties, |
|
5466 | array( |
|
5467 | '_ui' => $tracks_identity['_ui'], |
|
5468 | '_ut' => $tracks_identity['_ut'], |
|
5469 | ) |
|
5470 | ); |
|
5471 | } |
|
5472 | ||
5473 | /** |
|
5474 | * Filters the token request body to include tracking properties. |
|
@@ 5479-5490 (lines=12) @@ | ||
5476 | * @param array $properties |
|
5477 | * @return array amended properties. |
|
5478 | */ |
|
5479 | public static function filter_token_request_body( $properties ) { |
|
5480 | $tracking = new Tracking(); |
|
5481 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5482 | ||
5483 | return array_merge( |
|
5484 | $properties, |
|
5485 | array( |
|
5486 | '_ui' => $tracks_identity['_ui'], |
|
5487 | '_ut' => $tracks_identity['_ut'], |
|
5488 | ) |
|
5489 | ); |
|
5490 | } |
|
5491 | ||
5492 | /** |
|
5493 | * If the db version is showing something other that what we've got now, bump it to current. |