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