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