@@ 5495-5506 (lines=12) @@ | ||
5492 | * @param array $properties |
|
5493 | * @return array amended properties. |
|
5494 | */ |
|
5495 | public static function filter_register_request_body( $properties ) { |
|
5496 | $tracking = new Tracking(); |
|
5497 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5498 | ||
5499 | return array_merge( |
|
5500 | $properties, |
|
5501 | array( |
|
5502 | '_ui' => $tracks_identity['_ui'], |
|
5503 | '_ut' => $tracks_identity['_ut'], |
|
5504 | ) |
|
5505 | ); |
|
5506 | } |
|
5507 | ||
5508 | /** |
|
5509 | * Filters the token request body to include tracking properties. |
|
@@ 5514-5525 (lines=12) @@ | ||
5511 | * @param array $properties |
|
5512 | * @return array amended properties. |
|
5513 | */ |
|
5514 | public static function filter_token_request_body( $properties ) { |
|
5515 | $tracking = new Tracking(); |
|
5516 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5517 | ||
5518 | return array_merge( |
|
5519 | $properties, |
|
5520 | array( |
|
5521 | '_ui' => $tracks_identity['_ui'], |
|
5522 | '_ut' => $tracks_identity['_ut'], |
|
5523 | ) |
|
5524 | ); |
|
5525 | } |
|
5526 | ||
5527 | /** |
|
5528 | * If the db version is showing something other that what we've got now, bump it to current. |