1 | <?php |
||
7 | class Tracking { |
||
8 | /** |
||
9 | * Tracking object. |
||
10 | * |
||
11 | * @var Tracks |
||
12 | * |
||
13 | * @access private |
||
14 | */ |
||
15 | private $tracking; |
||
16 | /** |
||
17 | * Prevents the Tracking from being intialized more then once. |
||
18 | * |
||
19 | * @var bool |
||
20 | */ |
||
21 | private $initalized = false; |
||
22 | |||
23 | public function init() { |
||
53 | |||
54 | /** |
||
55 | * Track that a specific module has been activated. |
||
56 | * |
||
57 | * @access public |
||
58 | * |
||
59 | * @param string $module Module slug. |
||
60 | */ |
||
61 | public function jetpack_activate_module( $module ) { |
||
64 | |||
65 | /** |
||
66 | * Track that a specific module has been deactivated. |
||
67 | * |
||
68 | * @access public |
||
69 | * |
||
70 | * @param string $module Module slug. |
||
71 | */ |
||
72 | public function jetpack_deactivate_module( $module ) { |
||
75 | |||
76 | /** |
||
77 | * Track that the user has successfully received an auth token. |
||
78 | * |
||
79 | * @access public |
||
80 | */ |
||
81 | public function jetpack_user_authorized() { |
||
99 | |||
100 | /** |
||
101 | * Track that we've begun verifying the secrets. |
||
102 | * |
||
103 | * @access public |
||
104 | * |
||
105 | * @param string $action Type of secret (one of 'register', 'authorize', 'publicize'). |
||
106 | * @param \WP_User $user The user object. |
||
107 | */ |
||
108 | public function jetpack_verify_secrets_begin( $action, $user ) { |
||
111 | |||
112 | /** |
||
113 | * Track that we've succeeded in verifying the secrets. |
||
114 | * |
||
115 | * @access public |
||
116 | * |
||
117 | * @param string $action Type of secret (one of 'register', 'authorize', 'publicize'). |
||
118 | * @param \WP_User $user The user object. |
||
119 | */ |
||
120 | public function jetpack_verify_secrets_success( $action, $user ) { |
||
123 | |||
124 | /** |
||
125 | * Track that we've failed verifying the secrets. |
||
126 | * |
||
127 | * @access public |
||
128 | * |
||
129 | * @param string $action Type of secret (one of 'register', 'authorize', 'publicize'). |
||
130 | * @param \WP_User $user The user object. |
||
131 | * @param \WP_Error $error Error object. |
||
132 | */ |
||
133 | public function jetpack_verify_secrets_fail( $action, $user, $error ) { |
||
143 | |||
144 | /** |
||
145 | * Track a failed login attempt. |
||
146 | * |
||
147 | * @access public |
||
148 | * |
||
149 | * @param string $login Username or email address. |
||
150 | */ |
||
151 | public function wp_login_failed( $login ) { |
||
161 | |||
162 | /** |
||
163 | * Track a connection failure at the registration step. |
||
164 | * |
||
165 | * @access public |
||
166 | * |
||
167 | * @param string|int $error The error code. |
||
168 | * @param \WP_Error $registered The error object. |
||
169 | */ |
||
170 | function jetpack_connection_register_fail( $error, $registered ) { |
||
176 | |||
177 | /** |
||
178 | * Track that the registration step of the connection has been successful. |
||
179 | * |
||
180 | * @access public |
||
181 | * |
||
182 | * @param string $from The 'from' GET parameter. |
||
183 | */ |
||
184 | function jetpack_connection_register_success( $from ) { |
||
189 | |||
190 | /** |
||
191 | * Handles the jetpack_xmlrpc_server_event action that combines several types of events that |
||
192 | * happen during request serving. |
||
193 | * |
||
194 | * @param String $action the action name, i.e., 'remote_authorize'. |
||
195 | * @param String $stage the execution stage, can be 'begin', 'success', 'error', etc. |
||
196 | * @param Array|WP_Error|IXR_Error $parameters (optional) extra parameters to be passed to the tracked action. |
||
197 | * @param WP_User $user (optional) the acting user. |
||
198 | */ |
||
199 | public function jetpack_xmlrpc_server_event( $action, $stage, $parameters = array(), $user = null ) { |
||
215 | |||
216 | /** |
||
217 | * Track that the site is incorrectly double-encoding redirects from http to https. |
||
218 | * |
||
219 | * @access public |
||
220 | */ |
||
221 | function jetpack_verify_api_authorization_request_error_double_encode() { |
||
224 | |||
225 | /** |
||
226 | * Universal method for for all tracking events triggered via the JavaScript client. |
||
227 | * |
||
228 | * @access public |
||
229 | */ |
||
230 | function wp_ajax_jetpack_tracks() { |
||
253 | } |
||
254 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.