@@ 5335-5346 (lines=12) @@ | ||
5332 | * @param Array $properties |
|
5333 | * @return Array amended properties. |
|
5334 | */ |
|
5335 | public static function filter_register_request_body( $properties ) { |
|
5336 | $tracking = new Tracking(); |
|
5337 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5338 | ||
5339 | return array_merge( |
|
5340 | $properties, |
|
5341 | array( |
|
5342 | '_ui' => $tracks_identity['_ui'], |
|
5343 | '_ut' => $tracks_identity['_ut'], |
|
5344 | ) |
|
5345 | ); |
|
5346 | } |
|
5347 | ||
5348 | /** |
|
5349 | * Filters the token request body to include tracking properties. |
|
@@ 5354-5365 (lines=12) @@ | ||
5351 | * @param Array $properties |
|
5352 | * @return Array amended properties. |
|
5353 | */ |
|
5354 | public static function filter_token_request_body( $properties ) { |
|
5355 | $tracking = new Tracking(); |
|
5356 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5357 | ||
5358 | return array_merge( |
|
5359 | $properties, |
|
5360 | array( |
|
5361 | '_ui' => $tracks_identity['_ui'], |
|
5362 | '_ut' => $tracks_identity['_ut'], |
|
5363 | ) |
|
5364 | ); |
|
5365 | } |
|
5366 | ||
5367 | /** |
|
5368 | * If the db version is showing something other that what we've got now, bump it to current. |