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