@@ 5276-5287 (lines=12) @@ | ||
5273 | * @param Array $properties |
|
5274 | * @return Array amended properties. |
|
5275 | */ |
|
5276 | public static function filter_register_request_body( $properties ) { |
|
5277 | $tracking = new Tracking(); |
|
5278 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5279 | ||
5280 | return array_merge( |
|
5281 | $properties, |
|
5282 | array( |
|
5283 | '_ui' => $tracks_identity['_ui'], |
|
5284 | '_ut' => $tracks_identity['_ut'], |
|
5285 | ) |
|
5286 | ); |
|
5287 | } |
|
5288 | ||
5289 | /** |
|
5290 | * Filters the token request body to include tracking properties. |
|
@@ 5295-5306 (lines=12) @@ | ||
5292 | * @param Array $properties |
|
5293 | * @return Array amended properties. |
|
5294 | */ |
|
5295 | public static function filter_token_request_body( $properties ) { |
|
5296 | $tracking = new Tracking(); |
|
5297 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5298 | ||
5299 | return array_merge( |
|
5300 | $properties, |
|
5301 | array( |
|
5302 | '_ui' => $tracks_identity['_ui'], |
|
5303 | '_ut' => $tracks_identity['_ut'], |
|
5304 | ) |
|
5305 | ); |
|
5306 | } |
|
5307 | ||
5308 | /** |
|
5309 | * If the db version is showing something other that what we've got now, bump it to current. |