@@ 5388-5399 (lines=12) @@ | ||
5385 | * @param array $properties |
|
5386 | * @return array amended properties. |
|
5387 | */ |
|
5388 | public static function filter_register_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 | * Filters the token request body to include tracking properties. |
|
@@ 5407-5418 (lines=12) @@ | ||
5404 | * @param array $properties |
|
5405 | * @return array amended properties. |
|
5406 | */ |
|
5407 | public static function filter_token_request_body( $properties ) { |
|
5408 | $tracking = new Tracking(); |
|
5409 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5410 | ||
5411 | return array_merge( |
|
5412 | $properties, |
|
5413 | array( |
|
5414 | '_ui' => $tracks_identity['_ui'], |
|
5415 | '_ut' => $tracks_identity['_ut'], |
|
5416 | ) |
|
5417 | ); |
|
5418 | } |
|
5419 | ||
5420 | /** |
|
5421 | * If the db version is showing something other that what we've got now, bump it to current. |