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