@@ 5309-5320 (lines=12) @@ | ||
5306 | * @param Array $properties |
|
5307 | * @return Array amended properties. |
|
5308 | */ |
|
5309 | public static function filter_register_request_body( $properties ) { |
|
5310 | $tracking = new Tracking(); |
|
5311 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5312 | ||
5313 | return array_merge( |
|
5314 | $properties, |
|
5315 | array( |
|
5316 | '_ui' => $tracks_identity['_ui'], |
|
5317 | '_ut' => $tracks_identity['_ut'], |
|
5318 | ) |
|
5319 | ); |
|
5320 | } |
|
5321 | ||
5322 | /** |
|
5323 | * Filters the token request body to include tracking properties. |
|
@@ 5328-5339 (lines=12) @@ | ||
5325 | * @param Array $properties |
|
5326 | * @return Array amended properties. |
|
5327 | */ |
|
5328 | public static function filter_token_request_body( $properties ) { |
|
5329 | $tracking = new Tracking(); |
|
5330 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5331 | ||
5332 | return array_merge( |
|
5333 | $properties, |
|
5334 | array( |
|
5335 | '_ui' => $tracks_identity['_ui'], |
|
5336 | '_ut' => $tracks_identity['_ut'], |
|
5337 | ) |
|
5338 | ); |
|
5339 | } |
|
5340 | ||
5341 | /** |
|
5342 | * If the db version is showing something other that what we've got now, bump it to current. |