@@ 5296-5307 (lines=12) @@ | ||
5293 | * @param Array $properties |
|
5294 | * @return Array amended properties. |
|
5295 | */ |
|
5296 | public static function filter_register_request_body( $properties ) { |
|
5297 | $tracking = new Tracking(); |
|
5298 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5299 | ||
5300 | return array_merge( |
|
5301 | $properties, |
|
5302 | array( |
|
5303 | '_ui' => $tracks_identity['_ui'], |
|
5304 | '_ut' => $tracks_identity['_ut'], |
|
5305 | ) |
|
5306 | ); |
|
5307 | } |
|
5308 | ||
5309 | /** |
|
5310 | * Filters the token request body to include tracking properties. |
|
@@ 5315-5326 (lines=12) @@ | ||
5312 | * @param Array $properties |
|
5313 | * @return Array amended properties. |
|
5314 | */ |
|
5315 | public static function filter_token_request_body( $properties ) { |
|
5316 | $tracking = new Tracking(); |
|
5317 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5318 | ||
5319 | return array_merge( |
|
5320 | $properties, |
|
5321 | array( |
|
5322 | '_ui' => $tracks_identity['_ui'], |
|
5323 | '_ut' => $tracks_identity['_ut'], |
|
5324 | ) |
|
5325 | ); |
|
5326 | } |
|
5327 | ||
5328 | /** |
|
5329 | * If the db version is showing something other that what we've got now, bump it to current. |