@@ 5248-5259 (lines=12) @@ | ||
5245 | * @param Array $properties |
|
5246 | * @return Array amended properties. |
|
5247 | */ |
|
5248 | public static function filter_register_request_body( $properties ) { |
|
5249 | $tracking = new Tracking(); |
|
5250 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5251 | ||
5252 | return array_merge( |
|
5253 | $properties, |
|
5254 | array( |
|
5255 | '_ui' => $tracks_identity['_ui'], |
|
5256 | '_ut' => $tracks_identity['_ut'], |
|
5257 | ) |
|
5258 | ); |
|
5259 | } |
|
5260 | ||
5261 | /** |
|
5262 | * Filters the token request body to include tracking properties. |
|
@@ 5267-5278 (lines=12) @@ | ||
5264 | * @param Array $properties |
|
5265 | * @return Array amended properties. |
|
5266 | */ |
|
5267 | public static function filter_token_request_body( $properties ) { |
|
5268 | $tracking = new Tracking(); |
|
5269 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5270 | ||
5271 | return array_merge( |
|
5272 | $properties, |
|
5273 | array( |
|
5274 | '_ui' => $tracks_identity['_ui'], |
|
5275 | '_ut' => $tracks_identity['_ut'], |
|
5276 | ) |
|
5277 | ); |
|
5278 | } |
|
5279 | ||
5280 | /** |
|
5281 | * If the db version is showing something other that what we've got now, bump it to current. |