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