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