@@ 5409-5420 (lines=12) @@ | ||
5406 | * @param array $properties |
|
5407 | * @return array amended properties. |
|
5408 | */ |
|
5409 | public static function filter_register_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 | * Filters the token request body to include tracking properties. |
|
@@ 5428-5439 (lines=12) @@ | ||
5425 | * @param array $properties |
|
5426 | * @return array amended properties. |
|
5427 | */ |
|
5428 | public static function filter_token_request_body( $properties ) { |
|
5429 | $tracking = new Tracking(); |
|
5430 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5431 | ||
5432 | return array_merge( |
|
5433 | $properties, |
|
5434 | array( |
|
5435 | '_ui' => $tracks_identity['_ui'], |
|
5436 | '_ut' => $tracks_identity['_ut'], |
|
5437 | ) |
|
5438 | ); |
|
5439 | } |
|
5440 | ||
5441 | /** |
|
5442 | * If the db version is showing something other that what we've got now, bump it to current. |