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