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