@@ 5440-5451 (lines=12) @@ | ||
5437 | * @param array $properties |
|
5438 | * @return array amended properties. |
|
5439 | */ |
|
5440 | public static function filter_register_request_body( $properties ) { |
|
5441 | $tracking = new Tracking(); |
|
5442 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5443 | ||
5444 | return array_merge( |
|
5445 | $properties, |
|
5446 | array( |
|
5447 | '_ui' => $tracks_identity['_ui'], |
|
5448 | '_ut' => $tracks_identity['_ut'], |
|
5449 | ) |
|
5450 | ); |
|
5451 | } |
|
5452 | ||
5453 | /** |
|
5454 | * Filters the token request body to include tracking properties. |
|
@@ 5459-5470 (lines=12) @@ | ||
5456 | * @param array $properties |
|
5457 | * @return array amended properties. |
|
5458 | */ |
|
5459 | public static function filter_token_request_body( $properties ) { |
|
5460 | $tracking = new Tracking(); |
|
5461 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5462 | ||
5463 | return array_merge( |
|
5464 | $properties, |
|
5465 | array( |
|
5466 | '_ui' => $tracks_identity['_ui'], |
|
5467 | '_ut' => $tracks_identity['_ut'], |
|
5468 | ) |
|
5469 | ); |
|
5470 | } |
|
5471 | ||
5472 | /** |
|
5473 | * If the db version is showing something other that what we've got now, bump it to current. |