@@ 5295-5306 (lines=12) @@ | ||
5292 | * @param Array $properties |
|
5293 | * @return Array amended properties. |
|
5294 | */ |
|
5295 | public static function filter_register_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 | * Filters the token request body to include tracking properties. |
|
@@ 5314-5325 (lines=12) @@ | ||
5311 | * @param Array $properties |
|
5312 | * @return Array amended properties. |
|
5313 | */ |
|
5314 | public static function filter_token_request_body( $properties ) { |
|
5315 | $tracking = new Tracking(); |
|
5316 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5317 | ||
5318 | return array_merge( |
|
5319 | $properties, |
|
5320 | array( |
|
5321 | '_ui' => $tracks_identity['_ui'], |
|
5322 | '_ut' => $tracks_identity['_ut'], |
|
5323 | ) |
|
5324 | ); |
|
5325 | } |
|
5326 | ||
5327 | /** |
|
5328 | * If the db version is showing something other that what we've got now, bump it to current. |