|
@@ 5378-5389 (lines=12) @@
|
| 5375 |
|
* @param Array $properties |
| 5376 |
|
* @return Array amended properties. |
| 5377 |
|
*/ |
| 5378 |
|
public static function filter_register_request_body( $properties ) { |
| 5379 |
|
$tracking = new Tracking(); |
| 5380 |
|
$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
| 5381 |
|
|
| 5382 |
|
return array_merge( |
| 5383 |
|
$properties, |
| 5384 |
|
array( |
| 5385 |
|
'_ui' => $tracks_identity['_ui'], |
| 5386 |
|
'_ut' => $tracks_identity['_ut'], |
| 5387 |
|
) |
| 5388 |
|
); |
| 5389 |
|
} |
| 5390 |
|
|
| 5391 |
|
/** |
| 5392 |
|
* Filters the token request body to include tracking properties. |
|
@@ 5397-5408 (lines=12) @@
|
| 5394 |
|
* @param Array $properties |
| 5395 |
|
* @return Array amended properties. |
| 5396 |
|
*/ |
| 5397 |
|
public static function filter_token_request_body( $properties ) { |
| 5398 |
|
$tracking = new Tracking(); |
| 5399 |
|
$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
| 5400 |
|
|
| 5401 |
|
return array_merge( |
| 5402 |
|
$properties, |
| 5403 |
|
array( |
| 5404 |
|
'_ui' => $tracks_identity['_ui'], |
| 5405 |
|
'_ut' => $tracks_identity['_ut'], |
| 5406 |
|
) |
| 5407 |
|
); |
| 5408 |
|
} |
| 5409 |
|
|
| 5410 |
|
/** |
| 5411 |
|
* If the db version is showing something other that what we've got now, bump it to current. |