1
1
<?php
2
2
/**
3
- * Class responsible for Admin side functionalities.
3
+ * Class responsible for admin side functionalities.
4
4
*
5
5
* @package Mailchimp
6
6
*/
@@ -34,12 +34,13 @@ public function init() {
34
34
add_action ( 'wp_ajax_mailchimp_sf_oauth_finish ' , array ( $ this , 'finish_oauth_process ' ) );
35
35
}
36
36
37
-
38
37
/**
39
38
* Start the OAuth process.
40
39
*
41
40
* This function is called via AJAX.
42
- * It starts the OAuth process by the calling the OAuth middleware server and sending the response to the front-end.
41
+ *
42
+ * It starts the OAuth process by the calling the OAuth middleware
43
+ * server and sending the response to the front-end.
43
44
*/
44
45
public function start_oauth_process () {
45
46
// Validate the nonce and permissions.
@@ -89,7 +90,9 @@ public function start_oauth_process() {
89
90
* Finish the OAuth process.
90
91
*
91
92
* This function is called via AJAX.
92
- * This function finishes the OAuth process by the sending a temporary token back to the OAuth server.
93
+ *
94
+ * This function finishes the OAuth process by the sending
95
+ * a temporary token back to the OAuth server.
93
96
*/
94
97
public function finish_oauth_process () {
95
98
// Validate the nonce and permissions.
@@ -199,7 +202,7 @@ public function admin_notices() {
199
202
return ;
200
203
}
201
204
202
- // display a notice if the access token is invalid/revoked.
205
+ // Display a notice if the access token is invalid/revoked.
203
206
?>
204
207
<div class="notice notice-warning is-dismissible">
205
208
<p>
@@ -221,7 +224,7 @@ public function admin_notices() {
221
224
/**
222
225
* Sanitize variables using sanitize_text_field.
223
226
*
224
- * Arrays are sanitized recursively, Non -scalar values are ignored.
227
+ * Arrays are sanitized recursively, non -scalar values are ignored.
225
228
*
226
229
* @param string|array $data Data to sanitize.
227
230
* @return string|array
0 commit comments