|
@@ 5328-5339 (lines=12) @@
|
| 5325 |
|
* @param Array $properties |
| 5326 |
|
* @return Array amended properties. |
| 5327 |
|
*/ |
| 5328 |
|
public static function filter_register_request_body( $properties ) { |
| 5329 |
|
$tracking = new Tracking(); |
| 5330 |
|
$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
| 5331 |
|
|
| 5332 |
|
return array_merge( |
| 5333 |
|
$properties, |
| 5334 |
|
array( |
| 5335 |
|
'_ui' => $tracks_identity['_ui'], |
| 5336 |
|
'_ut' => $tracks_identity['_ut'], |
| 5337 |
|
) |
| 5338 |
|
); |
| 5339 |
|
} |
| 5340 |
|
|
| 5341 |
|
/** |
| 5342 |
|
* Filters the token request body to include tracking properties. |
|
@@ 5347-5358 (lines=12) @@
|
| 5344 |
|
* @param Array $properties |
| 5345 |
|
* @return Array amended properties. |
| 5346 |
|
*/ |
| 5347 |
|
public static function filter_token_request_body( $properties ) { |
| 5348 |
|
$tracking = new Tracking(); |
| 5349 |
|
$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
| 5350 |
|
|
| 5351 |
|
return array_merge( |
| 5352 |
|
$properties, |
| 5353 |
|
array( |
| 5354 |
|
'_ui' => $tracks_identity['_ui'], |
| 5355 |
|
'_ut' => $tracks_identity['_ut'], |
| 5356 |
|
) |
| 5357 |
|
); |
| 5358 |
|
} |
| 5359 |
|
|
| 5360 |
|
/** |
| 5361 |
|
* If the db version is showing something other that what we've got now, bump it to current. |