@@ 4872-4883 (lines=12) @@ | ||
4869 | * @param array $properties |
|
4870 | * @return array amended properties. |
|
4871 | */ |
|
4872 | public static function filter_register_request_body( $properties ) { |
|
4873 | $tracking = new Tracking(); |
|
4874 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
4875 | ||
4876 | return array_merge( |
|
4877 | $properties, |
|
4878 | array( |
|
4879 | '_ui' => $tracks_identity['_ui'], |
|
4880 | '_ut' => $tracks_identity['_ut'], |
|
4881 | ) |
|
4882 | ); |
|
4883 | } |
|
4884 | ||
4885 | /** |
|
4886 | * Filters the token request body to include tracking properties. |
|
@@ 4891-4902 (lines=12) @@ | ||
4888 | * @param array $properties |
|
4889 | * @return array amended properties. |
|
4890 | */ |
|
4891 | public static function filter_token_request_body( $properties ) { |
|
4892 | $tracking = new Tracking(); |
|
4893 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
4894 | ||
4895 | return array_merge( |
|
4896 | $properties, |
|
4897 | array( |
|
4898 | '_ui' => $tracks_identity['_ui'], |
|
4899 | '_ut' => $tracks_identity['_ut'], |
|
4900 | ) |
|
4901 | ); |
|
4902 | } |
|
4903 | ||
4904 | /** |
|
4905 | * If the db version is showing something other that what we've got now, bump it to current. |