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