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