@@ 5415-5426 (lines=12) @@ | ||
5412 | * @param array $properties |
|
5413 | * @return array amended properties. |
|
5414 | */ |
|
5415 | public static function filter_register_request_body( $properties ) { |
|
5416 | $tracking = new Tracking(); |
|
5417 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5418 | ||
5419 | return array_merge( |
|
5420 | $properties, |
|
5421 | array( |
|
5422 | '_ui' => $tracks_identity['_ui'], |
|
5423 | '_ut' => $tracks_identity['_ut'], |
|
5424 | ) |
|
5425 | ); |
|
5426 | } |
|
5427 | ||
5428 | /** |
|
5429 | * Filters the token request body to include tracking properties. |
|
@@ 5434-5445 (lines=12) @@ | ||
5431 | * @param array $properties |
|
5432 | * @return array amended properties. |
|
5433 | */ |
|
5434 | public static function filter_token_request_body( $properties ) { |
|
5435 | $tracking = new Tracking(); |
|
5436 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5437 | ||
5438 | return array_merge( |
|
5439 | $properties, |
|
5440 | array( |
|
5441 | '_ui' => $tracks_identity['_ui'], |
|
5442 | '_ut' => $tracks_identity['_ut'], |
|
5443 | ) |
|
5444 | ); |
|
5445 | } |
|
5446 | ||
5447 | /** |
|
5448 | * If the db version is showing something other that what we've got now, bump it to current. |