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