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