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