@@ 5561-5572 (lines=12) @@ | ||
5558 | * @param array $properties |
|
5559 | * @return array amended properties. |
|
5560 | */ |
|
5561 | public static function filter_token_request_body( $properties ) { |
|
5562 | $tracking = new Tracking(); |
|
5563 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
5564 | ||
5565 | return array_merge( |
|
5566 | $properties, |
|
5567 | array( |
|
5568 | '_ui' => $tracks_identity['_ui'], |
|
5569 | '_ut' => $tracks_identity['_ut'], |
|
5570 | ) |
|
5571 | ); |
|
5572 | } |
|
5573 | ||
5574 | /** |
|
5575 | * If the db version is showing something other that what we've got now, bump it to current. |
@@ 92-103 (lines=12) @@ | ||
89 | * @param array $properties Already prepared tracking properties. |
|
90 | * @return array amended properties. |
|
91 | */ |
|
92 | public static function filter_register_request_body( $properties ) { |
|
93 | $tracking = new Tracking(); |
|
94 | $tracks_identity = $tracking->tracks_get_identity( get_current_user_id() ); |
|
95 | ||
96 | return array_merge( |
|
97 | $properties, |
|
98 | array( |
|
99 | '_ui' => $tracks_identity['_ui'], |
|
100 | '_ut' => $tracks_identity['_ut'], |
|
101 | ) |
|
102 | ); |
|
103 | } |
|
104 | ||
105 | /** |
|
106 | * Return URL from option or PHP constant. |