@@ 5506-5517 (lines=12) @@ | ||
5503 | * @param Array $properties |
|
5504 | * @return Array amended properties. |
|
5505 | */ |
|
5506 | public static function filter_register_request_body( $properties ) { |
|
5507 | $tracking = new Tracking(); |
|
5508 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5509 | ||
5510 | return array_merge( |
|
5511 | $properties, |
|
5512 | array( |
|
5513 | '_ui' => $tracks_identity['_ui'], |
|
5514 | '_ut' => $tracks_identity['_ut'], |
|
5515 | ) |
|
5516 | ); |
|
5517 | } |
|
5518 | ||
5519 | /** |
|
5520 | * Filters the token request body to include tracking properties. |
|
@@ 5525-5536 (lines=12) @@ | ||
5522 | * @param Array $properties |
|
5523 | * @return Array amended properties. |
|
5524 | */ |
|
5525 | public static function filter_token_request_body( $properties ) { |
|
5526 | $tracking = new Tracking(); |
|
5527 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5528 | ||
5529 | return array_merge( |
|
5530 | $properties, |
|
5531 | array( |
|
5532 | '_ui' => $tracks_identity['_ui'], |
|
5533 | '_ut' => $tracks_identity['_ut'], |
|
5534 | ) |
|
5535 | ); |
|
5536 | } |
|
5537 | ||
5538 | /** |
|
5539 | * If the db version is showing something other that what we've got now, bump it to current. |