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