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