|
@@ 5565-5576 (lines=12) @@
|
| 5562 |
|
* @param array $properties |
| 5563 |
|
* @return array amended properties. |
| 5564 |
|
*/ |
| 5565 |
|
public static function filter_register_request_body( $properties ) { |
| 5566 |
|
$tracking = new Tracking(); |
| 5567 |
|
$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
| 5568 |
|
|
| 5569 |
|
return array_merge( |
| 5570 |
|
$properties, |
| 5571 |
|
array( |
| 5572 |
|
'_ui' => $tracks_identity['_ui'], |
| 5573 |
|
'_ut' => $tracks_identity['_ut'], |
| 5574 |
|
) |
| 5575 |
|
); |
| 5576 |
|
} |
| 5577 |
|
|
| 5578 |
|
/** |
| 5579 |
|
* Filters the token request body to include tracking properties. |
|
@@ 5584-5595 (lines=12) @@
|
| 5581 |
|
* @param array $properties |
| 5582 |
|
* @return array amended properties. |
| 5583 |
|
*/ |
| 5584 |
|
public static function filter_token_request_body( $properties ) { |
| 5585 |
|
$tracking = new Tracking(); |
| 5586 |
|
$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
| 5587 |
|
|
| 5588 |
|
return array_merge( |
| 5589 |
|
$properties, |
| 5590 |
|
array( |
| 5591 |
|
'_ui' => $tracks_identity['_ui'], |
| 5592 |
|
'_ut' => $tracks_identity['_ut'], |
| 5593 |
|
) |
| 5594 |
|
); |
| 5595 |
|
} |
| 5596 |
|
|
| 5597 |
|
/** |
| 5598 |
|
* If the db version is showing something other that what we've got now, bump it to current. |