Completed
Pull Request — master (#1856)
by Mehul
16:29
created
includes/gateways/paypal-standard.php 1 patch
Spacing   +167 added lines, -167 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @since       1.0
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit;
14 14
 }
15 15
 
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
  *
23 23
  * @return bool
24 24
  */
25
-function give_paypal_standard_billing_fields( $form_id ) {
25
+function give_paypal_standard_billing_fields($form_id) {
26 26
 
27
-	if ( give_is_setting_enabled( give_get_option( 'paypal_standard_billing_details' ) ) ) {
28
-		give_default_cc_address_fields( $form_id );
27
+	if (give_is_setting_enabled(give_get_option('paypal_standard_billing_details'))) {
28
+		give_default_cc_address_fields($form_id);
29 29
 
30 30
 		return true;
31 31
 	}
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 }
36 36
 
37
-add_action( 'give_paypal_cc_form', 'give_paypal_standard_billing_fields' );
37
+add_action('give_paypal_cc_form', 'give_paypal_standard_billing_fields');
38 38
 
39 39
 /**
40 40
  * Process PayPal Payment.
@@ -45,30 +45,30 @@  discard block
 block discarded – undo
45 45
  *
46 46
  * @return void
47 47
  */
48
-function give_process_paypal_payment( $payment_data ) {
48
+function give_process_paypal_payment($payment_data) {
49 49
 
50 50
 	// Validate nonce.
51
-	give_validate_nonce( $payment_data['gateway_nonce'], 'give-gateway' );
52
-	$payment_id = give_create_payment( $payment_data );
51
+	give_validate_nonce($payment_data['gateway_nonce'], 'give-gateway');
52
+	$payment_id = give_create_payment($payment_data);
53 53
 
54 54
 	// Register message in donation note that PayPal IPN is not received yet.
55
-	give_insert_payment_note( $payment_id, __( 'N/A', 'give' ) );
55
+	give_insert_payment_note($payment_id, __('N/A', 'give'));
56 56
 
57 57
 	// Check payment.
58
-	if ( empty( $payment_id ) ) {
58
+	if (empty($payment_id)) {
59 59
 		// Record the error.
60
-		give_record_gateway_error( __( 'Payment Error', 'give' ), sprintf( /* translators: %s: payment data */
61
-		__( 'Payment creation failed before sending donor to PayPal. Payment data: %s', 'give' ), json_encode( $payment_data ) ), $payment_id );
60
+		give_record_gateway_error(__('Payment Error', 'give'), sprintf( /* translators: %s: payment data */
61
+		__('Payment creation failed before sending donor to PayPal. Payment data: %s', 'give'), json_encode($payment_data) ), $payment_id);
62 62
 		// Problems? Send back.
63
-		give_send_back_to_checkout( '?payment-mode=' . $payment_data['post_data']['give-gateway'] );
63
+		give_send_back_to_checkout('?payment-mode='.$payment_data['post_data']['give-gateway']);
64 64
 	}
65 65
 
66 66
 	// Redirect to PayPal.
67
-	wp_redirect( give_build_paypal_url( $payment_id, $payment_data ) );
67
+	wp_redirect(give_build_paypal_url($payment_id, $payment_data));
68 68
 	exit;
69 69
 }
70 70
 
71
-add_action( 'give_gateway_paypal', 'give_process_paypal_payment' );
71
+add_action('give_gateway_paypal', 'give_process_paypal_payment');
72 72
 
73 73
 /**
74 74
  * Listens for a PayPal IPN requests and then sends to the processing function.
@@ -78,17 +78,17 @@  discard block
 block discarded – undo
78 78
  */
79 79
 function give_listen_for_paypal_ipn() {
80 80
 	// Regular PayPal IPN
81
-	if ( isset( $_GET['give-listener'] ) && $_GET['give-listener'] == 'IPN' ) {
81
+	if (isset($_GET['give-listener']) && $_GET['give-listener'] == 'IPN') {
82 82
 		/**
83 83
 		 * Fires while verifying PayPal IPN
84 84
 		 *
85 85
 		 * @since 1.0
86 86
 		 */
87
-		do_action( 'give_verify_paypal_ipn' );
87
+		do_action('give_verify_paypal_ipn');
88 88
 	}
89 89
 }
90 90
 
91
-add_action( 'init', 'give_listen_for_paypal_ipn' );
91
+add_action('init', 'give_listen_for_paypal_ipn');
92 92
 
93 93
 /**
94 94
  * Process PayPal IPN
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 function give_process_paypal_ipn() {
100 100
 
101 101
 	// Check the request method is POST.
102
-	if ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
102
+	if (isset($_SERVER['REQUEST_METHOD']) && 'POST' !== $_SERVER['REQUEST_METHOD']) {
103 103
 		return;
104 104
 	}
105 105
 
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
 	$post_data = '';
108 108
 
109 109
 	// Fallback just in case post_max_size is lower than needed.
110
-	if ( ini_get( 'allow_url_fopen' ) ) {
111
-		$post_data = file_get_contents( 'php://input' );
110
+	if (ini_get('allow_url_fopen')) {
111
+		$post_data = file_get_contents('php://input');
112 112
 	} else {
113 113
 		// If allow_url_fopen is not enabled, then make sure that post_max_size is large enough.
114
-		ini_set( 'post_max_size', '12M' );
114
+		ini_set('post_max_size', '12M');
115 115
 	}
116 116
 	// Start the encoded data collection with notification command.
117 117
 	$encoded_data = 'cmd=_notify-validate';
@@ -120,39 +120,39 @@  discard block
 block discarded – undo
120 120
 	$arg_separator = give_get_php_arg_separator_output();
121 121
 
122 122
 	// Verify there is a post_data.
123
-	if ( $post_data || strlen( $post_data ) > 0 ) {
123
+	if ($post_data || strlen($post_data) > 0) {
124 124
 		// Append the data.
125
-		$encoded_data .= $arg_separator . $post_data;
125
+		$encoded_data .= $arg_separator.$post_data;
126 126
 	} else {
127 127
 		// Check if POST is empty.
128
-		if ( empty( $_POST ) ) {
128
+		if (empty($_POST)) {
129 129
 			// Nothing to do.
130 130
 			return;
131 131
 		} else {
132 132
 			// Loop through each POST.
133
-			foreach ( $_POST as $key => $value ) {
133
+			foreach ($_POST as $key => $value) {
134 134
 				// Encode the value and append the data.
135
-				$encoded_data .= $arg_separator . "$key=" . urlencode( $value );
135
+				$encoded_data .= $arg_separator."$key=".urlencode($value);
136 136
 			}
137 137
 		}
138 138
 	}
139 139
 
140 140
 	// Convert collected post data to an array.
141
-	parse_str( $encoded_data, $encoded_data_array );
141
+	parse_str($encoded_data, $encoded_data_array);
142 142
 
143
-	foreach ( $encoded_data_array as $key => $value ) {
143
+	foreach ($encoded_data_array as $key => $value) {
144 144
 
145
-		if ( false !== strpos( $key, 'amp;' ) ) {
146
-			$new_key = str_replace( '&', '&', $key );
147
-			$new_key = str_replace( 'amp;', '&', $new_key );
145
+		if (false !== strpos($key, 'amp;')) {
146
+			$new_key = str_replace('&', '&', $key);
147
+			$new_key = str_replace('amp;', '&', $new_key);
148 148
 
149
-			unset( $encoded_data_array[ $key ] );
150
-			$encoded_data_array[ $new_key ] = $value;
149
+			unset($encoded_data_array[$key]);
150
+			$encoded_data_array[$new_key] = $value;
151 151
 		}
152 152
 	}
153 153
 
154 154
 	// Validate IPN request w/ PayPal if user hasn't disabled this security measure.
155
-	if ( give_is_setting_enabled( give_get_option( 'paypal_verification' ) ) ) {
155
+	if (give_is_setting_enabled(give_get_option('paypal_verification'))) {
156 156
 
157 157
 		$remote_post_vars = array(
158 158
 			'method'      => 'POST',
@@ -172,25 +172,25 @@  discard block
 block discarded – undo
172 172
 		);
173 173
 
174 174
 		// Validate the IPN.
175
-		$api_response = wp_remote_post( give_get_paypal_redirect(), $remote_post_vars );
175
+		$api_response = wp_remote_post(give_get_paypal_redirect(), $remote_post_vars);
176 176
 
177
-		if ( is_wp_error( $api_response ) ) {
178
-			give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
179
-			__( 'Invalid IPN verification response. IPN data: %s', 'give' ), json_encode( $api_response ) ) );
177
+		if (is_wp_error($api_response)) {
178
+			give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
179
+			__('Invalid IPN verification response. IPN data: %s', 'give'), json_encode($api_response) ));
180 180
 
181 181
 			return; // Something went wrong
182 182
 		}
183 183
 
184
-		if ( 'VERIFIED' !== $api_response['body'] ) {
185
-			give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
186
-			__( 'Invalid IPN verification response. IPN data: %s', 'give' ), json_encode( $api_response ) ) );
184
+		if ('VERIFIED' !== $api_response['body']) {
185
+			give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
186
+			__('Invalid IPN verification response. IPN data: %s', 'give'), json_encode($api_response) ));
187 187
 
188 188
 			return; // Response not okay.
189 189
 		}
190 190
 	}// End if().
191 191
 
192 192
 	// Check if $post_data_array has been populated.
193
-	if ( ! is_array( $encoded_data_array ) && ! empty( $encoded_data_array ) ) {
193
+	if ( ! is_array($encoded_data_array) && ! empty($encoded_data_array)) {
194 194
 		return;
195 195
 	}
196 196
 
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
 		'payment_status' => '',
200 200
 	);
201 201
 
202
-	$encoded_data_array = wp_parse_args( $encoded_data_array, $defaults );
202
+	$encoded_data_array = wp_parse_args($encoded_data_array, $defaults);
203 203
 
204
-	$payment_id = isset( $encoded_data_array['custom'] ) ? absint( $encoded_data_array['custom'] ) : 0;
204
+	$payment_id = isset($encoded_data_array['custom']) ? absint($encoded_data_array['custom']) : 0;
205 205
 	$txn_type   = $encoded_data_array['txn_type'];
206 206
 
207
-	if ( has_action( 'give_paypal_' . $txn_type ) ) {
207
+	if (has_action('give_paypal_'.$txn_type)) {
208 208
 		/**
209 209
 		 * Fires while processing PayPal IPN $txn_type.
210 210
 		 *
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 		 * @param array $encoded_data_array Encoded data.
216 216
 		 * @param int   $payment_id         Payment id.
217 217
 		 */
218
-		do_action( "give_paypal_{$txn_type}", $encoded_data_array, $payment_id );
218
+		do_action("give_paypal_{$txn_type}", $encoded_data_array, $payment_id);
219 219
 	} else {
220 220
 		/**
221 221
 		 * Fires while process PayPal IPN.
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
 		 * @param array $encoded_data_array Encoded data.
228 228
 		 * @param int   $payment_id         Payment id.
229 229
 		 */
230
-		do_action( 'give_paypal_web_accept', $encoded_data_array, $payment_id );
230
+		do_action('give_paypal_web_accept', $encoded_data_array, $payment_id);
231 231
 	}
232 232
 	exit;
233 233
 }
234 234
 
235
-add_action( 'give_verify_paypal_ipn', 'give_process_paypal_ipn' );
235
+add_action('give_verify_paypal_ipn', 'give_process_paypal_ipn');
236 236
 
237 237
 /**
238 238
  * Process web accept (one time) payment IPNs.
@@ -244,102 +244,102 @@  discard block
 block discarded – undo
244 244
  *
245 245
  * @return void
246 246
  */
247
-function give_process_paypal_web_accept( $data, $payment_id ) {
247
+function give_process_paypal_web_accept($data, $payment_id) {
248 248
 
249 249
 	// Only allow through these transaction types.
250
-	if ( 'web_accept' !== $data['txn_type'] && 'cart' !== $data['txn_type'] && 'refunded' !== strtolower( $data['payment_status'] ) ) {
250
+	if ('web_accept' !== $data['txn_type'] && 'cart' !== $data['txn_type'] && 'refunded' !== strtolower($data['payment_status'])) {
251 251
 		return;
252 252
 	}
253 253
 
254 254
 	// Need $payment_id to continue.
255
-	if ( empty( $payment_id ) ) {
255
+	if (empty($payment_id)) {
256 256
 		return;
257 257
 	}
258 258
 
259 259
 	// Register message in donation note that IPN received successfully.
260
-	give_insert_payment_note( $payment_id, __( 'Last IPN Received', 'give' ) );
260
+	give_insert_payment_note($payment_id, __('Last IPN Received', 'give'));
261 261
 
262 262
 	// Collect donation payment details.
263 263
 	$paypal_amount  = $data['mc_gross'];
264
-	$payment_status = strtolower( $data['payment_status'] );
265
-	$currency_code  = strtolower( $data['mc_currency'] );
266
-	$business_email = isset( $data['business'] ) && is_email( $data['business'] ) ? trim( $data['business'] ) : trim( $data['receiver_email'] );
267
-	$payment_meta   = give_get_payment_meta( $payment_id );
264
+	$payment_status = strtolower($data['payment_status']);
265
+	$currency_code  = strtolower($data['mc_currency']);
266
+	$business_email = isset($data['business']) && is_email($data['business']) ? trim($data['business']) : trim($data['receiver_email']);
267
+	$payment_meta   = give_get_payment_meta($payment_id);
268 268
 
269 269
 	// Must be a PayPal standard IPN.
270
-	if ( 'paypal' !== give_get_payment_gateway( $payment_id ) ) {
270
+	if ('paypal' !== give_get_payment_gateway($payment_id)) {
271 271
 		return;
272 272
 	}
273 273
 
274 274
 	// Verify payment recipient
275
-	if ( strcasecmp( $business_email, trim( give_get_option( 'paypal_email' ) ) ) !== 0 ) {
275
+	if (strcasecmp($business_email, trim(give_get_option('paypal_email'))) !== 0) {
276 276
 
277
-		give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
278
-		__( 'Invalid business email in IPN response. IPN data: %s', 'give' ), json_encode( $data ) ), $payment_id );
279
-		give_update_payment_status( $payment_id, 'failed' );
280
-		give_insert_payment_note( $payment_id, __( 'Payment failed due to invalid PayPal business email.', 'give' ) );
277
+		give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
278
+		__('Invalid business email in IPN response. IPN data: %s', 'give'), json_encode($data) ), $payment_id);
279
+		give_update_payment_status($payment_id, 'failed');
280
+		give_insert_payment_note($payment_id, __('Payment failed due to invalid PayPal business email.', 'give'));
281 281
 
282 282
 		return;
283 283
 	}
284 284
 
285 285
 	// Verify payment currency.
286
-	if ( $currency_code !== strtolower( $payment_meta['currency'] ) ) {
286
+	if ($currency_code !== strtolower($payment_meta['currency'])) {
287 287
 
288
-		give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
289
-		__( 'Invalid currency in IPN response. IPN data: %s', 'give' ), json_encode( $data ) ), $payment_id );
290
-		give_update_payment_status( $payment_id, 'failed' );
291
-		give_insert_payment_note( $payment_id, __( 'Payment failed due to invalid currency in PayPal IPN.', 'give' ) );
288
+		give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
289
+		__('Invalid currency in IPN response. IPN data: %s', 'give'), json_encode($data) ), $payment_id);
290
+		give_update_payment_status($payment_id, 'failed');
291
+		give_insert_payment_note($payment_id, __('Payment failed due to invalid currency in PayPal IPN.', 'give'));
292 292
 
293 293
 		return;
294 294
 	}
295 295
 
296 296
 	// Process refunds & reversed.
297
-	if ( 'refunded' === $payment_status || 'reversed' === $payment_status ) {
298
-		give_process_paypal_refund( $data, $payment_id );
297
+	if ('refunded' === $payment_status || 'reversed' === $payment_status) {
298
+		give_process_paypal_refund($data, $payment_id);
299 299
 
300 300
 		return;
301 301
 	}
302 302
 
303 303
 	// Only complete payments once.
304
-	if ( 'publish' === get_post_status( $payment_id ) ) {
304
+	if ('publish' === get_post_status($payment_id)) {
305 305
 		return;
306 306
 	}
307 307
 
308 308
 	// Retrieve the total donation amount (before PayPal).
309
-	$payment_amount = give_get_payment_amount( $payment_id );
309
+	$payment_amount = give_get_payment_amount($payment_id);
310 310
 
311 311
 	// Check that the donation PP and local db amounts match.
312
-	if ( number_format( (float) $paypal_amount, 2 ) < number_format( (float) $payment_amount, 2 ) ) {
312
+	if (number_format((float) $paypal_amount, 2) < number_format((float) $payment_amount, 2)) {
313 313
 		// The prices don't match
314
-		give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
315
-		__( 'Invalid payment amount in IPN response. IPN data: %s', 'give' ), json_encode( $data ) ), $payment_id );
316
-		give_update_payment_status( $payment_id, 'failed' );
317
-		give_insert_payment_note( $payment_id, __( 'Payment failed due to invalid amount in PayPal IPN.', 'give' ) );
314
+		give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
315
+		__('Invalid payment amount in IPN response. IPN data: %s', 'give'), json_encode($data) ), $payment_id);
316
+		give_update_payment_status($payment_id, 'failed');
317
+		give_insert_payment_note($payment_id, __('Payment failed due to invalid amount in PayPal IPN.', 'give'));
318 318
 
319 319
 		return;
320 320
 	}
321 321
 
322 322
 	// Process completed donations.
323
-	if ( 'completed' === $payment_status || give_is_test_mode() ) {
323
+	if ('completed' === $payment_status || give_is_test_mode()) {
324 324
 
325
-		give_insert_payment_note( $payment_id, sprintf( /* translators: %s: Paypal transaction ID */
326
-		__( 'PayPal Transaction ID: %s', 'give' ), $data['txn_id'] ) );
327
-		give_set_payment_transaction_id( $payment_id, $data['txn_id'] );
328
-		give_update_payment_status( $payment_id, 'publish' );
325
+		give_insert_payment_note($payment_id, sprintf( /* translators: %s: Paypal transaction ID */
326
+		__('PayPal Transaction ID: %s', 'give'), $data['txn_id'] ));
327
+		give_set_payment_transaction_id($payment_id, $data['txn_id']);
328
+		give_update_payment_status($payment_id, 'publish');
329 329
 
330
-	} elseif ( 'pending' === $payment_status && isset( $data['pending_reason'] ) ) {
330
+	} elseif ('pending' === $payment_status && isset($data['pending_reason'])) {
331 331
 
332 332
 		// Look for possible pending reasons, such as an echeck.
333
-		$note = give_paypal_get_pending_donation_note( strtolower( $data['pending_reason'] ) );
333
+		$note = give_paypal_get_pending_donation_note(strtolower($data['pending_reason']));
334 334
 
335
-		if ( ! empty( $note ) ) {
336
-			give_insert_payment_note( $payment_id, $note );
335
+		if ( ! empty($note)) {
336
+			give_insert_payment_note($payment_id, $note);
337 337
 		}
338 338
 	}
339 339
 
340 340
 }
341 341
 
342
-add_action( 'give_paypal_web_accept', 'give_process_paypal_web_accept', 10, 2 );
342
+add_action('give_paypal_web_accept', 'give_process_paypal_web_accept', 10, 2);
343 343
 
344 344
 /**
345 345
  * Process PayPal IPN Refunds
@@ -351,35 +351,35 @@  discard block
 block discarded – undo
351 351
  *
352 352
  * @return void
353 353
  */
354
-function give_process_paypal_refund( $data, $payment_id = 0 ) {
354
+function give_process_paypal_refund($data, $payment_id = 0) {
355 355
 
356 356
 	// Collect payment details.
357
-	if ( empty( $payment_id ) ) {
357
+	if (empty($payment_id)) {
358 358
 		return;
359 359
 	}
360 360
 
361 361
 	// Only refund payments once.
362
-	if ( 'refunded' === get_post_status( $payment_id ) ) {
362
+	if ('refunded' === get_post_status($payment_id)) {
363 363
 		return;
364 364
 	}
365 365
 
366
-	$payment_amount = give_get_payment_amount( $payment_id );
366
+	$payment_amount = give_get_payment_amount($payment_id);
367 367
 	$refund_amount  = $data['payment_gross'] * - 1;
368 368
 
369
-	if ( number_format( (float) $refund_amount, 2 ) < number_format( (float) $payment_amount, 2 ) ) {
369
+	if (number_format((float) $refund_amount, 2) < number_format((float) $payment_amount, 2)) {
370 370
 
371
-		give_insert_payment_note( $payment_id, sprintf( /* translators: %s: Paypal parent transaction ID */
372
-		__( 'Partial PayPal refund processed: %s', 'give' ), $data['parent_txn_id'] ) );
371
+		give_insert_payment_note($payment_id, sprintf( /* translators: %s: Paypal parent transaction ID */
372
+		__('Partial PayPal refund processed: %s', 'give'), $data['parent_txn_id'] ));
373 373
 
374 374
 		return; // This is a partial refund
375 375
 
376 376
 	}
377 377
 
378
-	give_insert_payment_note( $payment_id, sprintf( /* translators: 1: Paypal parent transaction ID 2. Paypal reason code */
379
-	__( 'PayPal Payment #%1$s Refunded for reason: %2$s', 'give' ), $data['parent_txn_id'], $data['reason_code'] ) );
380
-	give_insert_payment_note( $payment_id, sprintf( /* translators: %s: Paypal transaction ID */
381
-	__( 'PayPal Refund Transaction ID: %s', 'give' ), $data['txn_id'] ) );
382
-	give_update_payment_status( $payment_id, 'refunded' );
378
+	give_insert_payment_note($payment_id, sprintf( /* translators: 1: Paypal parent transaction ID 2. Paypal reason code */
379
+	__('PayPal Payment #%1$s Refunded for reason: %2$s', 'give'), $data['parent_txn_id'], $data['reason_code'] ));
380
+	give_insert_payment_note($payment_id, sprintf( /* translators: %s: Paypal transaction ID */
381
+	__('PayPal Refund Transaction ID: %s', 'give'), $data['txn_id'] ));
382
+	give_update_payment_status($payment_id, 'refunded');
383 383
 }
384 384
 
385 385
 /**
@@ -391,24 +391,24 @@  discard block
 block discarded – undo
391 391
  *
392 392
  * @return string
393 393
  */
394
-function give_get_paypal_redirect( $ssl_check = false ) {
394
+function give_get_paypal_redirect($ssl_check = false) {
395 395
 
396
-	if ( is_ssl() || ! $ssl_check ) {
396
+	if (is_ssl() || ! $ssl_check) {
397 397
 		$protocol = 'https://';
398 398
 	} else {
399 399
 		$protocol = 'http://';
400 400
 	}
401 401
 
402 402
 	// Check the current payment mode
403
-	if ( give_is_test_mode() ) {
403
+	if (give_is_test_mode()) {
404 404
 		// Test mode
405
-		$paypal_uri = $protocol . 'www.sandbox.paypal.com/cgi-bin/webscr';
405
+		$paypal_uri = $protocol.'www.sandbox.paypal.com/cgi-bin/webscr';
406 406
 	} else {
407 407
 		// Live mode
408
-		$paypal_uri = $protocol . 'www.paypal.com/cgi-bin/webscr';
408
+		$paypal_uri = $protocol.'www.paypal.com/cgi-bin/webscr';
409 409
 	}
410 410
 
411
-	return apply_filters( 'give_paypal_uri', $paypal_uri );
411
+	return apply_filters('give_paypal_uri', $paypal_uri);
412 412
 }
413 413
 
414 414
 /**
@@ -418,9 +418,9 @@  discard block
 block discarded – undo
418 418
  * @return string
419 419
  */
420 420
 function give_get_paypal_page_style() {
421
-	$page_style = trim( give_get_option( 'paypal_page_style', 'PayPal' ) );
421
+	$page_style = trim(give_get_option('paypal_page_style', 'PayPal'));
422 422
 
423
-	return apply_filters( 'give_paypal_page_style', $page_style );
423
+	return apply_filters('give_paypal_page_style', $page_style);
424 424
 }
425 425
 
426 426
 /**
@@ -434,26 +434,26 @@  discard block
 block discarded – undo
434 434
  *
435 435
  * @return string
436 436
  */
437
-function give_paypal_success_page_content( $content ) {
437
+function give_paypal_success_page_content($content) {
438 438
 
439
-	if ( ! isset( $_GET['payment-id'] ) && ! give_get_purchase_session() ) {
439
+	if ( ! isset($_GET['payment-id']) && ! give_get_purchase_session()) {
440 440
 		return $content;
441 441
 	}
442 442
 
443
-	$payment_id = isset( $_GET['payment-id'] ) ? absint( $_GET['payment-id'] ) : false;
443
+	$payment_id = isset($_GET['payment-id']) ? absint($_GET['payment-id']) : false;
444 444
 
445
-	if ( ! $payment_id ) {
445
+	if ( ! $payment_id) {
446 446
 		$session    = give_get_purchase_session();
447
-		$payment_id = give_get_purchase_id_by_key( $session['purchase_key'] );
447
+		$payment_id = give_get_purchase_id_by_key($session['purchase_key']);
448 448
 	}
449 449
 
450
-	$payment = get_post( $payment_id );
451
-	if ( $payment && 'pending' === $payment->post_status ) {
450
+	$payment = get_post($payment_id);
451
+	if ($payment && 'pending' === $payment->post_status) {
452 452
 
453 453
 		// Payment is still pending so show processing indicator to fix the race condition.
454 454
 		ob_start();
455 455
 
456
-		give_get_template_part( 'payment', 'processing' );
456
+		give_get_template_part('payment', 'processing');
457 457
 
458 458
 		$content = ob_get_clean();
459 459
 
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 
464 464
 }
465 465
 
466
-add_filter( 'give_payment_confirm_paypal', 'give_paypal_success_page_content' );
466
+add_filter('give_payment_confirm_paypal', 'give_paypal_success_page_content');
467 467
 
468 468
 /**
469 469
  * Given a Payment ID, extract the transaction ID
@@ -474,22 +474,22 @@  discard block
 block discarded – undo
474 474
  *
475 475
  * @return string                   Transaction ID
476 476
  */
477
-function give_paypal_get_payment_transaction_id( $payment_id ) {
477
+function give_paypal_get_payment_transaction_id($payment_id) {
478 478
 
479 479
 	$transaction_id = '';
480
-	$notes          = give_get_payment_notes( $payment_id );
480
+	$notes          = give_get_payment_notes($payment_id);
481 481
 
482
-	foreach ( $notes as $note ) {
483
-		if ( preg_match( '/^PayPal Transaction ID: ([^\s]+)/', $note->comment_content, $match ) ) {
482
+	foreach ($notes as $note) {
483
+		if (preg_match('/^PayPal Transaction ID: ([^\s]+)/', $note->comment_content, $match)) {
484 484
 			$transaction_id = $match[1];
485 485
 			continue;
486 486
 		}
487 487
 	}
488 488
 
489
-	return apply_filters( 'give_paypal_set_payment_transaction_id', $transaction_id, $payment_id );
489
+	return apply_filters('give_paypal_set_payment_transaction_id', $transaction_id, $payment_id);
490 490
 }
491 491
 
492
-add_filter( 'give_get_payment_transaction_id-paypal', 'give_paypal_get_payment_transaction_id', 10, 1 );
492
+add_filter('give_get_payment_transaction_id-paypal', 'give_paypal_get_payment_transaction_id', 10, 1);
493 493
 
494 494
 /**
495 495
  * Given a transaction ID, generate a link to the PayPal transaction ID details
@@ -501,16 +501,16 @@  discard block
 block discarded – undo
501 501
  *
502 502
  * @return string                 A link to the PayPal transaction details
503 503
  */
504
-function give_paypal_link_transaction_id( $transaction_id, $payment_id ) {
504
+function give_paypal_link_transaction_id($transaction_id, $payment_id) {
505 505
 
506 506
 	$paypal_base_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id=';
507
-	$transaction_url = '<a href="' . esc_url( $paypal_base_url . $transaction_id ) . '" target="_blank">' . $transaction_id . '</a>';
507
+	$transaction_url = '<a href="'.esc_url($paypal_base_url.$transaction_id).'" target="_blank">'.$transaction_id.'</a>';
508 508
 
509
-	return apply_filters( 'give_paypal_link_payment_details_transaction_id', $transaction_url );
509
+	return apply_filters('give_paypal_link_payment_details_transaction_id', $transaction_url);
510 510
 
511 511
 }
512 512
 
513
-add_filter( 'give_payment_details_transaction_id-paypal', 'give_paypal_link_transaction_id', 10, 2 );
513
+add_filter('give_payment_details_transaction_id-paypal', 'give_paypal_link_transaction_id', 10, 2);
514 514
 
515 515
 
516 516
 /**
@@ -522,64 +522,64 @@  discard block
 block discarded – undo
522 522
  *
523 523
  * @return string
524 524
  */
525
-function give_paypal_get_pending_donation_note( $pending_reason ) {
525
+function give_paypal_get_pending_donation_note($pending_reason) {
526 526
 
527 527
 	$note = '';
528 528
 
529
-	switch ( $pending_reason ) {
529
+	switch ($pending_reason) {
530 530
 
531 531
 		case 'echeck' :
532 532
 
533
-			$note = __( 'Payment made via eCheck and will clear automatically in 5-8 days.', 'give' );
533
+			$note = __('Payment made via eCheck and will clear automatically in 5-8 days.', 'give');
534 534
 
535 535
 			break;
536 536
 
537 537
 		case 'address' :
538 538
 
539
-			$note = __( 'Payment requires a confirmed donor address and must be accepted manually through PayPal.', 'give' );
539
+			$note = __('Payment requires a confirmed donor address and must be accepted manually through PayPal.', 'give');
540 540
 
541 541
 			break;
542 542
 
543 543
 		case 'intl' :
544 544
 
545
-			$note = __( 'Payment must be accepted manually through PayPal due to international account regulations.', 'give' );
545
+			$note = __('Payment must be accepted manually through PayPal due to international account regulations.', 'give');
546 546
 
547 547
 			break;
548 548
 
549 549
 		case 'multi-currency' :
550 550
 
551
-			$note = __( 'Payment received in non-shop currency and must be accepted manually through PayPal.', 'give' );
551
+			$note = __('Payment received in non-shop currency and must be accepted manually through PayPal.', 'give');
552 552
 
553 553
 			break;
554 554
 
555 555
 		case 'paymentreview' :
556 556
 		case 'regulatory_review' :
557 557
 
558
-			$note = __( 'Payment is being reviewed by PayPal staff as high-risk or in possible violation of government regulations.', 'give' );
558
+			$note = __('Payment is being reviewed by PayPal staff as high-risk or in possible violation of government regulations.', 'give');
559 559
 
560 560
 			break;
561 561
 
562 562
 		case 'unilateral' :
563 563
 
564
-			$note = __( 'Payment was sent to non-confirmed or non-registered email address.', 'give' );
564
+			$note = __('Payment was sent to non-confirmed or non-registered email address.', 'give');
565 565
 
566 566
 			break;
567 567
 
568 568
 		case 'upgrade' :
569 569
 
570
-			$note = __( 'PayPal account must be upgraded before this payment can be accepted.', 'give' );
570
+			$note = __('PayPal account must be upgraded before this payment can be accepted.', 'give');
571 571
 
572 572
 			break;
573 573
 
574 574
 		case 'verify' :
575 575
 
576
-			$note = __( 'PayPal account is not verified. Verify account in order to accept this donation.', 'give' );
576
+			$note = __('PayPal account is not verified. Verify account in order to accept this donation.', 'give');
577 577
 
578 578
 			break;
579 579
 
580 580
 		case 'other' :
581 581
 
582
-			$note = __( 'Payment is pending for unknown reasons. Contact PayPal support for assistance.', 'give' );
582
+			$note = __('Payment is pending for unknown reasons. Contact PayPal support for assistance.', 'give');
583 583
 
584 584
 			break;
585 585
 
@@ -597,49 +597,49 @@  discard block
 block discarded – undo
597 597
  *
598 598
  * @return mixed|string
599 599
  */
600
-function give_build_paypal_url( $payment_id, $payment_data ) {
600
+function give_build_paypal_url($payment_id, $payment_data) {
601 601
 	// Only send to PayPal if the pending payment is created successfully.
602
-	$listener_url = add_query_arg( 'give-listener', 'IPN', home_url( 'index.php' ) );
602
+	$listener_url = add_query_arg('give-listener', 'IPN', home_url('index.php'));
603 603
 
604 604
 	// Get the success url.
605
-	$return_url = add_query_arg( array(
605
+	$return_url = add_query_arg(array(
606 606
 		'payment-confirmation' => 'paypal',
607 607
 		'payment-id'           => $payment_id,
608 608
 
609
-	), get_permalink( give_get_option( 'success_page' ) ) );
609
+	), get_permalink(give_get_option('success_page')));
610 610
 
611 611
 	// Get the PayPal redirect uri.
612
-	$paypal_redirect = trailingslashit( give_get_paypal_redirect() ) . '?';
612
+	$paypal_redirect = trailingslashit(give_get_paypal_redirect()).'?';
613 613
 
614 614
 	// Item name.
615
-	$item_name = give_build_paypal_item_title( $payment_data );
615
+	$item_name = give_build_paypal_item_title($payment_data);
616 616
 
617 617
 	// Setup PayPal API params.
618 618
 	$paypal_args = array(
619
-		'business'      => give_get_option( 'paypal_email', false ),
619
+		'business'      => give_get_option('paypal_email', false),
620 620
 		'first_name'    => $payment_data['user_info']['first_name'],
621 621
 		'last_name'     => $payment_data['user_info']['last_name'],
622 622
 		'email'         => $payment_data['user_email'],
623 623
 		'invoice'       => $payment_data['purchase_key'],
624 624
 		'amount'        => $payment_data['price'],
625
-		'item_name'     => stripslashes( $item_name ),
625
+		'item_name'     => stripslashes($item_name),
626 626
 		'no_shipping'   => '1',
627 627
 		'shipping'      => '0',
628 628
 		'no_note'       => '1',
629 629
 		'currency_code' => give_get_currency(),
630
-		'charset'       => get_bloginfo( 'charset' ),
630
+		'charset'       => get_bloginfo('charset'),
631 631
 		'custom'        => $payment_id,
632 632
 		'rm'            => '2',
633 633
 		'return'        => $return_url,
634
-		'cancel_return' => give_get_failed_transaction_uri( '?payment-id=' . $payment_id ),
634
+		'cancel_return' => give_get_failed_transaction_uri('?payment-id='.$payment_id),
635 635
 		'notify_url'    => $listener_url,
636 636
 		'page_style'    => give_get_paypal_page_style(),
637
-		'cbt'           => get_bloginfo( 'name' ),
637
+		'cbt'           => get_bloginfo('name'),
638 638
 		'bn'            => 'givewp_SP',
639 639
 	);
640 640
 
641 641
 	// Add user address if present.
642
-	if ( ! empty( $payment_data['user_info']['address'] ) ) {
642
+	if ( ! empty($payment_data['user_info']['address'])) {
643 643
 		$default_address = array(
644 644
 			'line1'   => '',
645 645
 			'line2'   => '',
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 			'country' => '',
650 650
 		);
651 651
 
652
-		$address = wp_parse_args( $payment_data['user_info']['address'], $default_address );
652
+		$address = wp_parse_args($payment_data['user_info']['address'], $default_address);
653 653
 
654 654
 		$paypal_args['address1'] = $address['line1'];
655 655
 		$paypal_args['address2'] = $address['line2'];
@@ -670,13 +670,13 @@  discard block
 block discarded – undo
670 670
 	 * @param array $paypal_args
671 671
 	 * @param array $payment_data
672 672
 	 */
673
-	$paypal_args = apply_filters( 'give_paypal_redirect_args', $paypal_args, $payment_data );
673
+	$paypal_args = apply_filters('give_paypal_redirect_args', $paypal_args, $payment_data);
674 674
 
675 675
 	// Build query.
676
-	$paypal_redirect .= http_build_query( $paypal_args );
676
+	$paypal_redirect .= http_build_query($paypal_args);
677 677
 
678 678
 	// Fix for some sites that encode the entities.
679
-	$paypal_redirect = str_replace( '&amp;', '&', $paypal_redirect );
679
+	$paypal_redirect = str_replace('&amp;', '&', $paypal_redirect);
680 680
 
681 681
 	return $paypal_redirect;
682 682
 }
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
 function give_get_paypal_button_type() {
692 692
 	// paypal_button_type can be donation or standard.
693 693
 	$paypal_button_type = '_donations';
694
-	if ( 'standard' === give_get_option( 'paypal_button_type' ) ) {
694
+	if ('standard' === give_get_option('paypal_button_type')) {
695 695
 		$paypal_button_type = '_xclick';
696 696
 	}
697 697
 
@@ -708,30 +708,30 @@  discard block
 block discarded – undo
708 708
  *
709 709
  * @return string
710 710
  */
711
-function give_build_paypal_item_title( $payment_data ) {
712
-	$form_id   = intval( $payment_data['post_data']['give-form-id'] );
711
+function give_build_paypal_item_title($payment_data) {
712
+	$form_id   = intval($payment_data['post_data']['give-form-id']);
713 713
 	$item_name = $payment_data['post_data']['give-form-title'];
714 714
 
715 715
 	// Verify has variable prices.
716
-	if ( give_has_variable_prices( $form_id ) && isset( $payment_data['post_data']['give-price-id'] ) ) {
716
+	if (give_has_variable_prices($form_id) && isset($payment_data['post_data']['give-price-id'])) {
717 717
 
718
-		$item_price_level_text = give_get_price_option_name( $form_id, $payment_data['post_data']['give-price-id'] );
719
-		$price_level_amount    = give_get_price_option_amount( $form_id, $payment_data['post_data']['give-price-id'] );
718
+		$item_price_level_text = give_get_price_option_name($form_id, $payment_data['post_data']['give-price-id']);
719
+		$price_level_amount    = give_get_price_option_amount($form_id, $payment_data['post_data']['give-price-id']);
720 720
 
721 721
 		// Donation given doesn't match selected level (must be a custom amount).
722
-		if ( $price_level_amount != give_sanitize_amount( $payment_data['price'] ) ) {
723
-			$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
722
+		if ($price_level_amount != give_sanitize_amount($payment_data['price'])) {
723
+			$custom_amount_text = give_get_meta($form_id, '_give_custom_amount_text', true);
724 724
 			// user custom amount text if any, fallback to default if not.
725
-			$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', __( 'Custom Amount', 'give' ) );
725
+			$item_name .= ' - '.give_check_variable($custom_amount_text, 'empty', __('Custom Amount', 'give'));
726 726
 
727
-		} elseif ( ! empty( $item_price_level_text ) ) {
728
-			$item_name .= ' - ' . $item_price_level_text;
727
+		} elseif ( ! empty($item_price_level_text)) {
728
+			$item_name .= ' - '.$item_price_level_text;
729 729
 		}
730 730
 	} // End if().
731
-	elseif ( give_get_form_price( $form_id ) !== give_sanitize_amount( $payment_data['price'] ) ) {
732
-		$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
731
+	elseif (give_get_form_price($form_id) !== give_sanitize_amount($payment_data['price'])) {
732
+		$custom_amount_text = give_get_meta($form_id, '_give_custom_amount_text', true);
733 733
 		// user custom amount text if any, fallback to default if not.
734
-		$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', __( 'Custom Amount', 'give' ) );
734
+		$item_name .= ' - '.give_check_variable($custom_amount_text, 'empty', __('Custom Amount', 'give'));
735 735
 	}
736 736
 
737 737
 	return $item_name;
Please login to merge, or discard this patch.
give.php 1 patch
Spacing   +146 added lines, -146 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
  */
41 41
 
42 42
 // Exit if accessed directly.
43
-if ( ! defined( 'ABSPATH' ) ) {
43
+if ( ! defined('ABSPATH')) {
44 44
 	exit;
45 45
 }
46 46
 
47
-if ( ! class_exists( 'Give' ) ) :
47
+if ( ! class_exists('Give')) :
48 48
 
49 49
 	/**
50 50
 	 * Main Give Class
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 		 * @return    Give
203 203
 		 */
204 204
 		public static function instance() {
205
-			if ( is_null( self::$_instance ) ) {
205
+			if (is_null(self::$_instance)) {
206 206
 				self::$_instance = new self();
207 207
 			}
208 208
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 			$this->includes();
218 218
 			$this->init_hooks();
219 219
 
220
-			do_action( 'give_loaded' );
220
+			do_action('give_loaded');
221 221
 		}
222 222
 
223 223
 		/**
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
 		 * @since  1.8.9
227 227
 		 */
228 228
 		private function init_hooks() {
229
-			register_activation_hook( __FILE__, 'give_install' );
230
-			add_action( 'plugins_loaded', array( $this, 'init' ), 0 );
229
+			register_activation_hook(__FILE__, 'give_install');
230
+			add_action('plugins_loaded', array($this, 'init'), 0);
231 231
 		}
232 232
 		/**
233 233
 		 * Init Give when WordPress Initializes.
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 			 *
242 242
 			 * @since 1.8.9
243 243
 			 */
244
-			do_action( 'before_give_init' );
244
+			do_action('before_give_init');
245 245
 
246 246
 			// Set up localization.
247 247
 			$this->load_textdomain();
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 			 *
267 267
 			 * @since 1.8.7
268 268
 			 */
269
-			do_action( 'give_init', $this );
269
+			do_action('give_init', $this);
270 270
 
271 271
 		}
272 272
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 		 */
284 284
 		public function __clone() {
285 285
 			// Cloning instances of the class is forbidden.
286
-			_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'give' ), '1.0' );
286
+			_doing_it_wrong(__FUNCTION__, __('Cheatin&#8217; huh?', 'give'), '1.0');
287 287
 		}
288 288
 
289 289
 		/**
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 		 */
297 297
 		public function __wakeup() {
298 298
 			// Unserializing instances of the class is forbidden.
299
-			_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'give' ), '1.0' );
299
+			_doing_it_wrong(__FUNCTION__, __('Cheatin&#8217; huh?', 'give'), '1.0');
300 300
 		}
301 301
 
302 302
 		/**
@@ -310,38 +310,38 @@  discard block
 block discarded – undo
310 310
 		private function setup_constants() {
311 311
 
312 312
 			// Plugin version
313
-			if ( ! defined( 'GIVE_VERSION' ) ) {
314
-				define( 'GIVE_VERSION', '1.8.12' );
313
+			if ( ! defined('GIVE_VERSION')) {
314
+				define('GIVE_VERSION', '1.8.12');
315 315
 			}
316 316
 
317 317
 			// Plugin Folder Path
318
-			if ( ! defined( 'GIVE_PLUGIN_DIR' ) ) {
319
-				define( 'GIVE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
318
+			if ( ! defined('GIVE_PLUGIN_DIR')) {
319
+				define('GIVE_PLUGIN_DIR', plugin_dir_path(__FILE__));
320 320
 			}
321 321
 
322 322
 			// Plugin Folder URL
323
-			if ( ! defined( 'GIVE_PLUGIN_URL' ) ) {
324
-				define( 'GIVE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
323
+			if ( ! defined('GIVE_PLUGIN_URL')) {
324
+				define('GIVE_PLUGIN_URL', plugin_dir_url(__FILE__));
325 325
 			}
326 326
 
327 327
 			// Plugin Basename aka: "give/give.php"
328
-			if ( ! defined( 'GIVE_PLUGIN_BASENAME' ) ) {
329
-				define( 'GIVE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
328
+			if ( ! defined('GIVE_PLUGIN_BASENAME')) {
329
+				define('GIVE_PLUGIN_BASENAME', plugin_basename(__FILE__));
330 330
 			}
331 331
 
332 332
 			// Plugin Root File
333
-			if ( ! defined( 'GIVE_PLUGIN_FILE' ) ) {
334
-				define( 'GIVE_PLUGIN_FILE', __FILE__ );
333
+			if ( ! defined('GIVE_PLUGIN_FILE')) {
334
+				define('GIVE_PLUGIN_FILE', __FILE__);
335 335
 			}
336 336
 
337 337
 			// Make sure CAL_GREGORIAN is defined
338
-			if ( ! defined( 'CAL_GREGORIAN' ) ) {
339
-				define( 'CAL_GREGORIAN', 1 );
338
+			if ( ! defined('CAL_GREGORIAN')) {
339
+				define('CAL_GREGORIAN', 1);
340 340
 			}
341 341
 
342 342
 			// PHP version
343
-			if ( ! defined( 'GIVE_REQUIRED_PHP_VERSION' ) ) {
344
-				define( 'GIVE_REQUIRED_PHP_VERSION', '5.3' );
343
+			if ( ! defined('GIVE_REQUIRED_PHP_VERSION')) {
344
+				define('GIVE_REQUIRED_PHP_VERSION', '5.3');
345 345
 			}
346 346
 		}
347 347
 
@@ -356,128 +356,128 @@  discard block
 block discarded – undo
356 356
 		private function includes() {
357 357
 			global $give_options;
358 358
 
359
-			require_once GIVE_PLUGIN_DIR . 'includes/admin/class-admin-settings.php';
360
-			require_once GIVE_PLUGIN_DIR . 'includes/admin/class-give-settings.php';
359
+			require_once GIVE_PLUGIN_DIR.'includes/admin/class-admin-settings.php';
360
+			require_once GIVE_PLUGIN_DIR.'includes/admin/class-give-settings.php';
361 361
 			$give_options = give_get_settings();
362 362
 
363
-			require_once GIVE_PLUGIN_DIR . 'includes/admin/give-metabox-functions.php';
364
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-cache.php';
365
-			require_once GIVE_PLUGIN_DIR . 'includes/post-types.php';
366
-			require_once GIVE_PLUGIN_DIR . 'includes/scripts.php';
367
-			require_once GIVE_PLUGIN_DIR . 'includes/ajax-functions.php';
368
-			require_once GIVE_PLUGIN_DIR . 'includes/actions.php';
369
-			require_once GIVE_PLUGIN_DIR . 'includes/filters.php';
370
-			require_once GIVE_PLUGIN_DIR . 'includes/api/class-give-api.php';
371
-			require_once GIVE_PLUGIN_DIR . 'includes/class-notices.php';
372
-
373
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-roles.php';
374
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-template-loader.php';
375
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-donate-form.php';
376
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-db.php';
377
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-donors.php';
378
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-donor-meta.php';
379
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-donor.php';
380
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-stats.php';
381
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-session.php';
382
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-html-elements.php';
383
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-logging.php';
384
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-license-handler.php';
385
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-cron.php';
386
-			require_once GIVE_PLUGIN_DIR . 'includes/class-give-email-access.php';
387
-
388
-			require_once GIVE_PLUGIN_DIR . 'includes/country-functions.php';
389
-			require_once GIVE_PLUGIN_DIR . 'includes/template-functions.php';
390
-			require_once GIVE_PLUGIN_DIR . 'includes/misc-functions.php';
391
-			require_once GIVE_PLUGIN_DIR . 'includes/forms/functions.php';
392
-			require_once GIVE_PLUGIN_DIR . 'includes/forms/template.php';
393
-			require_once GIVE_PLUGIN_DIR . 'includes/forms/widget.php';
394
-			require_once GIVE_PLUGIN_DIR . 'includes/shortcodes.php';
395
-			require_once GIVE_PLUGIN_DIR . 'includes/formatting.php';
396
-			require_once GIVE_PLUGIN_DIR . 'includes/price-functions.php';
397
-			require_once GIVE_PLUGIN_DIR . 'includes/error-tracking.php';
398
-			require_once GIVE_PLUGIN_DIR . 'includes/process-donation.php';
399
-			require_once GIVE_PLUGIN_DIR . 'includes/login-register.php';
400
-			require_once GIVE_PLUGIN_DIR . 'includes/user-functions.php';
401
-			require_once GIVE_PLUGIN_DIR . 'includes/plugin-compatibility.php';
402
-			require_once GIVE_PLUGIN_DIR . 'includes/deprecated/deprecated-classes.php';
403
-			require_once GIVE_PLUGIN_DIR . 'includes/deprecated/deprecated-functions.php';
404
-			require_once GIVE_PLUGIN_DIR . 'includes/deprecated/deprecated-actions.php';
405
-			require_once GIVE_PLUGIN_DIR . 'includes/deprecated/deprecated-filters.php';
406
-
407
-			require_once GIVE_PLUGIN_DIR . 'includes/payments/functions.php';
408
-			require_once GIVE_PLUGIN_DIR . 'includes/payments/actions.php';
409
-			require_once GIVE_PLUGIN_DIR . 'includes/payments/class-payment-stats.php';
410
-			require_once GIVE_PLUGIN_DIR . 'includes/payments/class-payments-query.php';
411
-			require_once GIVE_PLUGIN_DIR . 'includes/payments/class-give-payment.php';
412
-
413
-			require_once GIVE_PLUGIN_DIR . 'includes/gateways/functions.php';
414
-			require_once GIVE_PLUGIN_DIR . 'includes/gateways/actions.php';
415
-			require_once GIVE_PLUGIN_DIR . 'includes/gateways/paypal-standard.php';
416
-			require_once GIVE_PLUGIN_DIR . 'includes/gateways/offline-donations.php';
417
-			require_once GIVE_PLUGIN_DIR . 'includes/gateways/manual.php';
418
-
419
-			require_once GIVE_PLUGIN_DIR . 'includes/emails/class-give-emails.php';
420
-			require_once GIVE_PLUGIN_DIR . 'includes/emails/class-give-email-tags.php';
421
-			require_once GIVE_PLUGIN_DIR . 'includes/emails/functions.php';
422
-			require_once GIVE_PLUGIN_DIR . 'includes/emails/template.php';
423
-			require_once GIVE_PLUGIN_DIR . 'includes/emails/actions.php';
424
-
425
-			if ( defined( 'WP_CLI' ) && WP_CLI ) {
426
-				require_once GIVE_PLUGIN_DIR . 'includes/class-give-cli-commands.php';
363
+			require_once GIVE_PLUGIN_DIR.'includes/admin/give-metabox-functions.php';
364
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-cache.php';
365
+			require_once GIVE_PLUGIN_DIR.'includes/post-types.php';
366
+			require_once GIVE_PLUGIN_DIR.'includes/scripts.php';
367
+			require_once GIVE_PLUGIN_DIR.'includes/ajax-functions.php';
368
+			require_once GIVE_PLUGIN_DIR.'includes/actions.php';
369
+			require_once GIVE_PLUGIN_DIR.'includes/filters.php';
370
+			require_once GIVE_PLUGIN_DIR.'includes/api/class-give-api.php';
371
+			require_once GIVE_PLUGIN_DIR.'includes/class-notices.php';
372
+
373
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-roles.php';
374
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-template-loader.php';
375
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-donate-form.php';
376
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-db.php';
377
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-db-donors.php';
378
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-db-donor-meta.php';
379
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-donor.php';
380
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-stats.php';
381
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-session.php';
382
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-html-elements.php';
383
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-logging.php';
384
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-license-handler.php';
385
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-cron.php';
386
+			require_once GIVE_PLUGIN_DIR.'includes/class-give-email-access.php';
387
+
388
+			require_once GIVE_PLUGIN_DIR.'includes/country-functions.php';
389
+			require_once GIVE_PLUGIN_DIR.'includes/template-functions.php';
390
+			require_once GIVE_PLUGIN_DIR.'includes/misc-functions.php';
391
+			require_once GIVE_PLUGIN_DIR.'includes/forms/functions.php';
392
+			require_once GIVE_PLUGIN_DIR.'includes/forms/template.php';
393
+			require_once GIVE_PLUGIN_DIR.'includes/forms/widget.php';
394
+			require_once GIVE_PLUGIN_DIR.'includes/shortcodes.php';
395
+			require_once GIVE_PLUGIN_DIR.'includes/formatting.php';
396
+			require_once GIVE_PLUGIN_DIR.'includes/price-functions.php';
397
+			require_once GIVE_PLUGIN_DIR.'includes/error-tracking.php';
398
+			require_once GIVE_PLUGIN_DIR.'includes/process-donation.php';
399
+			require_once GIVE_PLUGIN_DIR.'includes/login-register.php';
400
+			require_once GIVE_PLUGIN_DIR.'includes/user-functions.php';
401
+			require_once GIVE_PLUGIN_DIR.'includes/plugin-compatibility.php';
402
+			require_once GIVE_PLUGIN_DIR.'includes/deprecated/deprecated-classes.php';
403
+			require_once GIVE_PLUGIN_DIR.'includes/deprecated/deprecated-functions.php';
404
+			require_once GIVE_PLUGIN_DIR.'includes/deprecated/deprecated-actions.php';
405
+			require_once GIVE_PLUGIN_DIR.'includes/deprecated/deprecated-filters.php';
406
+
407
+			require_once GIVE_PLUGIN_DIR.'includes/payments/functions.php';
408
+			require_once GIVE_PLUGIN_DIR.'includes/payments/actions.php';
409
+			require_once GIVE_PLUGIN_DIR.'includes/payments/class-payment-stats.php';
410
+			require_once GIVE_PLUGIN_DIR.'includes/payments/class-payments-query.php';
411
+			require_once GIVE_PLUGIN_DIR.'includes/payments/class-give-payment.php';
412
+
413
+			require_once GIVE_PLUGIN_DIR.'includes/gateways/functions.php';
414
+			require_once GIVE_PLUGIN_DIR.'includes/gateways/actions.php';
415
+			require_once GIVE_PLUGIN_DIR.'includes/gateways/paypal-standard.php';
416
+			require_once GIVE_PLUGIN_DIR.'includes/gateways/offline-donations.php';
417
+			require_once GIVE_PLUGIN_DIR.'includes/gateways/manual.php';
418
+
419
+			require_once GIVE_PLUGIN_DIR.'includes/emails/class-give-emails.php';
420
+			require_once GIVE_PLUGIN_DIR.'includes/emails/class-give-email-tags.php';
421
+			require_once GIVE_PLUGIN_DIR.'includes/emails/functions.php';
422
+			require_once GIVE_PLUGIN_DIR.'includes/emails/template.php';
423
+			require_once GIVE_PLUGIN_DIR.'includes/emails/actions.php';
424
+
425
+			if (defined('WP_CLI') && WP_CLI) {
426
+				require_once GIVE_PLUGIN_DIR.'includes/class-give-cli-commands.php';
427 427
 			}
428 428
 
429
-			if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
430
-
431
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/admin-footer.php';
432
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/welcome.php';
433
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/admin-pages.php';
434
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/class-api-keys-table.php';
435
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/class-i18n-module.php';
436
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/admin-actions.php';
437
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/admin-filters.php';
438
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/system-info.php';
439
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/add-ons.php';
440
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/plugins.php';
441
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/dashboard-widgets.php';
442
-
443
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/payments/actions.php';
444
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/payments/payments-history.php';
445
-
446
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/donors/donors.php';
447
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/donors/donor-functions.php';
448
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/donors/donor-actions.php';
449
-
450
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/metabox.php';
451
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/class-metabox-form-data.php';
452
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/dashboard-columns.php';
453
-
454
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/export-functions.php';
455
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-export.php';
456
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/export-actions.php';
457
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/pdf-reports.php';
458
-
459
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/reports.php';
460
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/class-give-graph.php';
461
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/graphing.php';
462
-
463
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/tools-actions.php';
464
-
465
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/abstract-shortcode-generator.php';
466
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/class-shortcode-button.php';
467
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-form.php';
468
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-goal.php';
469
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-login.php';
470
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-register.php';
471
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-profile-editor.php';
472
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-donation-history.php';
473
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-receipt.php';
474
-
475
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/upgrades/upgrade-functions.php';
476
-				require_once GIVE_PLUGIN_DIR . 'includes/admin/upgrades/upgrades.php';
429
+			if (is_admin() || (defined('WP_CLI') && WP_CLI)) {
430
+
431
+				require_once GIVE_PLUGIN_DIR.'includes/admin/admin-footer.php';
432
+				require_once GIVE_PLUGIN_DIR.'includes/admin/welcome.php';
433
+				require_once GIVE_PLUGIN_DIR.'includes/admin/admin-pages.php';
434
+				require_once GIVE_PLUGIN_DIR.'includes/admin/class-api-keys-table.php';
435
+				require_once GIVE_PLUGIN_DIR.'includes/admin/class-i18n-module.php';
436
+				require_once GIVE_PLUGIN_DIR.'includes/admin/admin-actions.php';
437
+				require_once GIVE_PLUGIN_DIR.'includes/admin/admin-filters.php';
438
+				require_once GIVE_PLUGIN_DIR.'includes/admin/system-info.php';
439
+				require_once GIVE_PLUGIN_DIR.'includes/admin/add-ons.php';
440
+				require_once GIVE_PLUGIN_DIR.'includes/admin/plugins.php';
441
+				require_once GIVE_PLUGIN_DIR.'includes/admin/dashboard-widgets.php';
442
+
443
+				require_once GIVE_PLUGIN_DIR.'includes/admin/payments/actions.php';
444
+				require_once GIVE_PLUGIN_DIR.'includes/admin/payments/payments-history.php';
445
+
446
+				require_once GIVE_PLUGIN_DIR.'includes/admin/donors/donors.php';
447
+				require_once GIVE_PLUGIN_DIR.'includes/admin/donors/donor-functions.php';
448
+				require_once GIVE_PLUGIN_DIR.'includes/admin/donors/donor-actions.php';
449
+
450
+				require_once GIVE_PLUGIN_DIR.'includes/admin/forms/metabox.php';
451
+				require_once GIVE_PLUGIN_DIR.'includes/admin/forms/class-metabox-form-data.php';
452
+				require_once GIVE_PLUGIN_DIR.'includes/admin/forms/dashboard-columns.php';
453
+
454
+				require_once GIVE_PLUGIN_DIR.'includes/admin/tools/export/export-functions.php';
455
+				require_once GIVE_PLUGIN_DIR.'includes/admin/tools/export/class-export.php';
456
+				require_once GIVE_PLUGIN_DIR.'includes/admin/tools/export/export-actions.php';
457
+				require_once GIVE_PLUGIN_DIR.'includes/admin/tools/export/pdf-reports.php';
458
+
459
+				require_once GIVE_PLUGIN_DIR.'includes/admin/reporting/reports.php';
460
+				require_once GIVE_PLUGIN_DIR.'includes/admin/reporting/class-give-graph.php';
461
+				require_once GIVE_PLUGIN_DIR.'includes/admin/reporting/graphing.php';
462
+
463
+				require_once GIVE_PLUGIN_DIR.'includes/admin/tools/data/tools-actions.php';
464
+
465
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/abstract-shortcode-generator.php';
466
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/class-shortcode-button.php';
467
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/shortcode-give-form.php';
468
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/shortcode-give-goal.php';
469
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/shortcode-give-login.php';
470
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/shortcode-give-register.php';
471
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/shortcode-give-profile-editor.php';
472
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/shortcode-give-donation-history.php';
473
+				require_once GIVE_PLUGIN_DIR.'includes/admin/shortcodes/shortcode-give-receipt.php';
474
+
475
+				require_once GIVE_PLUGIN_DIR.'includes/admin/upgrades/upgrade-functions.php';
476
+				require_once GIVE_PLUGIN_DIR.'includes/admin/upgrades/upgrades.php';
477 477
 
478 478
 			}// End if().
479 479
 
480
-			require_once GIVE_PLUGIN_DIR . 'includes/install.php';
480
+			require_once GIVE_PLUGIN_DIR.'includes/install.php';
481 481
 
482 482
 		}
483 483
 
@@ -492,16 +492,16 @@  discard block
 block discarded – undo
492 492
 		public function load_textdomain() {
493 493
 
494 494
 			// Set filter for Give's languages directory
495
-			$give_lang_dir = dirname( plugin_basename( GIVE_PLUGIN_FILE ) ) . '/languages/';
496
-			$give_lang_dir = apply_filters( 'give_languages_directory', $give_lang_dir );
495
+			$give_lang_dir = dirname(plugin_basename(GIVE_PLUGIN_FILE)).'/languages/';
496
+			$give_lang_dir = apply_filters('give_languages_directory', $give_lang_dir);
497 497
 
498 498
 			// Traditional WordPress plugin locale filter.
499
-			$locale = is_admin() && function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale();
500
-			$locale = apply_filters( 'plugin_locale', $locale, 'give' );
499
+			$locale = is_admin() && function_exists('get_user_locale') ? get_user_locale() : get_locale();
500
+			$locale = apply_filters('plugin_locale', $locale, 'give');
501 501
 
502
-			unload_textdomain( 'give' );
503
-			load_textdomain( 'give', WP_LANG_DIR . '/give/give-' . $locale . '.mo' );
504
-			load_plugin_textdomain( 'give', false, $give_lang_dir );
502
+			unload_textdomain('give');
503
+			load_textdomain('give', WP_LANG_DIR.'/give/give-'.$locale.'.mo');
504
+			load_plugin_textdomain('give', false, $give_lang_dir);
505 505
 
506 506
 		}
507 507
 
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-system-info.php 1 patch
Spacing   +300 added lines, -300 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * Admin View: System Info
4 4
  */
5 5
 
6
-if ( ! defined( 'ABSPATH' ) ) {
6
+if ( ! defined('ABSPATH')) {
7 7
 	exit;
8 8
 }
9 9
 
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 ?>
23 23
 
24 24
 <div class="give-debug-report-wrapper updated">
25
-	<p><?php _e( 'Please copy and paste this information in your ticket when contacting support:', 'give' ); ?> </p>
25
+	<p><?php _e('Please copy and paste this information in your ticket when contacting support:', 'give'); ?> </p>
26 26
 	<p class="submit">
27
-		<a class="button-primary js-give-debug-report-button" href="#"><?php _e( 'Get System Report', 'give' ); ?></a>
28
-		<a class="button-secondary docs" href="http://docs.givewp.com/settings-system-info" target="_blank"><?php _e( 'Understanding the System Report', 'give' ); ?></a>
27
+		<a class="button-primary js-give-debug-report-button" href="#"><?php _e('Get System Report', 'give'); ?></a>
28
+		<a class="button-secondary docs" href="http://docs.givewp.com/settings-system-info" target="_blank"><?php _e('Understanding the System Report', 'give'); ?></a>
29 29
 	</p>
30 30
 	<div class="give-debug-report js-give-debug-report">
31 31
 		<textarea readonly="readonly"></textarea>
@@ -35,55 +35,55 @@  discard block
 block discarded – undo
35 35
 <table class="give-status-table widefat" cellspacing="0" id="status">
36 36
 	<thead>
37 37
 		<tr>
38
-			<th colspan="3" data-export-label="WordPress Environment"><h2><?php _e( 'WordPress Environment', 'give' ); ?></h2></th>
38
+			<th colspan="3" data-export-label="WordPress Environment"><h2><?php _e('WordPress Environment', 'give'); ?></h2></th>
39 39
 		</tr>
40 40
 	</thead>
41 41
 	<tbody>
42 42
 		<tr>
43
-			<td data-export-label="Home URL"><?php _e( 'Home URL', 'give' ); ?>:</td>
44
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The URL of your site\'s homepage.', 'give' ) ); ?>"></span></td>
45
-			<td><?php form_option( 'home' ); ?></td>
43
+			<td data-export-label="Home URL"><?php _e('Home URL', 'give'); ?>:</td>
44
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The URL of your site\'s homepage.', 'give')); ?>"></span></td>
45
+			<td><?php form_option('home'); ?></td>
46 46
 		</tr>
47 47
 		<tr>
48
-			<td data-export-label="Site URL"><?php _e( 'Site URL', 'give' ); ?>:</td>
49
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The root URL of your site.', 'give' ) ); ?>"></span></td>
50
-			<td><?php form_option( 'siteurl' ); ?></td>
48
+			<td data-export-label="Site URL"><?php _e('Site URL', 'give'); ?>:</td>
49
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The root URL of your site.', 'give')); ?>"></span></td>
50
+			<td><?php form_option('siteurl'); ?></td>
51 51
 		</tr>
52 52
 		<tr>
53
-			<td data-export-label="WP Version"><?php _e( 'WP Version', 'give' ); ?>:</td>
54
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The version of WordPress installed on your site.', 'give' ) ); ?>"></span></td>
53
+			<td data-export-label="WP Version"><?php _e('WP Version', 'give'); ?>:</td>
54
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The version of WordPress installed on your site.', 'give')); ?>"></span></td>
55 55
 			<td><?php bloginfo('version'); ?></td>
56 56
 		</tr>
57 57
 		<tr>
58
-			<td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'give' ); ?>:</td>
59
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether or not you have WordPress Multisite enabled.', 'give' ) ); ?>"></span></td>
60
-			<td><?php if ( is_multisite() ) echo '<span class="dashicons dashicons-yes"></span>'; else echo '&ndash;'; ?></td>
58
+			<td data-export-label="WP Multisite"><?php _e('WP Multisite', 'give'); ?>:</td>
59
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether or not you have WordPress Multisite enabled.', 'give')); ?>"></span></td>
60
+			<td><?php if (is_multisite()) echo '<span class="dashicons dashicons-yes"></span>'; else echo '&ndash;'; ?></td>
61 61
 		</tr>
62 62
 		<tr>
63
-			<td data-export-label="WP Memory Limit"><?php _e( 'WP Memory Limit', 'give' ); ?>:</td>
64
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The maximum amount of memory (RAM) that your site can use at one time.', 'give' ) ); ?>"></span></td>
63
+			<td data-export-label="WP Memory Limit"><?php _e('WP Memory Limit', 'give'); ?>:</td>
64
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The maximum amount of memory (RAM) that your site can use at one time.', 'give')); ?>"></span></td>
65 65
 			<td>
66 66
 				<?php
67
-				$memory = give_let_to_num( WP_MEMORY_LIMIT );
67
+				$memory = give_let_to_num(WP_MEMORY_LIMIT);
68 68
 
69
-				if ( function_exists( 'memory_get_usage' ) ) {
70
-					$system_memory = give_let_to_num( @ini_get( 'memory_limit' ) );
71
-					$memory        = max( $memory, $system_memory );
69
+				if (function_exists('memory_get_usage')) {
70
+					$system_memory = give_let_to_num(@ini_get('memory_limit'));
71
+					$memory        = max($memory, $system_memory);
72 72
 				}
73 73
 
74
-				if ( $memory < 67108864 ) {
75
-					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend setting memory to at least 64 MB. See: %s', 'give' ), size_format( $memory ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">' . __( 'Increasing memory allocated to PHP', 'give' ) . '</a>' ) . '</mark>';
74
+				if ($memory < 67108864) {
75
+					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> '.sprintf(__('%s - We recommend setting memory to at least 64 MB. See: %s', 'give'), size_format($memory), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">'.__('Increasing memory allocated to PHP', 'give').'</a>').'</mark>';
76 76
 				} else {
77
-					echo '<mark class="yes">' . size_format( $memory ) . '</mark>';
77
+					echo '<mark class="yes">'.size_format($memory).'</mark>';
78 78
 				}
79 79
 				?>
80 80
 			</td>
81 81
 		</tr>
82 82
 		<tr>
83
-			<td data-export-label="WP Debug Mode"><?php _e( 'WP Debug Mode', 'give' ); ?>:</td>
84
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Displays whether or not WordPress is in Debug Mode.', 'give' ) ); ?>"></span></td>
83
+			<td data-export-label="WP Debug Mode"><?php _e('WP Debug Mode', 'give'); ?>:</td>
84
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Displays whether or not WordPress is in Debug Mode.', 'give')); ?>"></span></td>
85 85
 			<td>
86
-				<?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?>
86
+				<?php if (defined('WP_DEBUG') && WP_DEBUG) : ?>
87 87
 					<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
88 88
 				<?php else : ?>
89 89
 					<mark class="no">&ndash;</mark>
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
 			</td>
92 92
 		</tr>
93 93
 		<tr>
94
-			<td data-export-label="WP Cron"><?php _e( 'WP Cron', 'give' ); ?>:</td>
95
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Displays whether or not WP Cron Jobs are enabled.', 'give' ) ); ?>"></span></td>
94
+			<td data-export-label="WP Cron"><?php _e('WP Cron', 'give'); ?>:</td>
95
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Displays whether or not WP Cron Jobs are enabled.', 'give')); ?>"></span></td>
96 96
 			<td>
97
-				<?php if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) : ?>
97
+				<?php if (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON) : ?>
98 98
 					<mark class="no">&ndash;</mark>
99 99
 				<?php else : ?>
100 100
 					<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
@@ -102,55 +102,55 @@  discard block
 block discarded – undo
102 102
 			</td>
103 103
 		</tr>
104 104
 		<tr>
105
-			<td data-export-label="Language"><?php _e( 'Language', 'give' ); ?>:</td>
106
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The current language used by WordPress. Default = English', 'give' ) ); ?>"></span></td>
105
+			<td data-export-label="Language"><?php _e('Language', 'give'); ?>:</td>
106
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The current language used by WordPress. Default = English', 'give')); ?>"></span></td>
107 107
 			<td><?php echo get_locale(); ?></td>
108 108
 		</tr>
109 109
 		<tr>
110
-			<td data-export-label="Permalink Structure"><?php _e( 'Permalink Structure', 'give' ); ?>:</td>
111
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The permalink structure as defined in Settings.', 'give' ) ); ?>"></span></td>
112
-			<td><?php echo esc_html( get_option( 'permalink_structure', __( 'Default', 'give' ) ) ); ?></td>
110
+			<td data-export-label="Permalink Structure"><?php _e('Permalink Structure', 'give'); ?>:</td>
111
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The permalink structure as defined in Settings.', 'give')); ?>"></span></td>
112
+			<td><?php echo esc_html(get_option('permalink_structure', __('Default', 'give'))); ?></td>
113 113
 		</tr>
114 114
 		<tr>
115
-			<td data-export-label="Show on Front"><?php _e( 'Show on Front', 'give' ); ?>:</td>
116
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether your front page is set to show posts or a static page.', 'give' ) ); ?>"></span></td>
117
-			<td><?php echo esc_html( get_option( 'show_on_front', '&ndash;' ) ); ?></td>
115
+			<td data-export-label="Show on Front"><?php _e('Show on Front', 'give'); ?>:</td>
116
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether your front page is set to show posts or a static page.', 'give')); ?>"></span></td>
117
+			<td><?php echo esc_html(get_option('show_on_front', '&ndash;')); ?></td>
118 118
 		</tr>
119
-		<?php if ( 'page' === get_option( 'show_on_front' ) ) : ?>
119
+		<?php if ('page' === get_option('show_on_front')) : ?>
120 120
 			<?php
121
-			$front_page_id = absint( get_option( 'page_on_front' ) );
122
-			$blog_page_id  = absint( get_option( 'page_for_posts' ) );
121
+			$front_page_id = absint(get_option('page_on_front'));
122
+			$blog_page_id  = absint(get_option('page_for_posts'));
123 123
 			?>
124 124
 			<tr>
125
-				<td data-export-label="Page on Front"><?php _e( 'Page on Front', 'give' ); ?>:</td>
126
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The page set to display as your front page.', 'give' ) ); ?>"></span></td>
127
-				<td><?php echo 0 !== $front_page_id ? esc_html( get_the_title( $front_page_id ) . ' (#' . $front_page_id . ')' ) : __( 'Unset', 'give' ); ?></td>
125
+				<td data-export-label="Page on Front"><?php _e('Page on Front', 'give'); ?>:</td>
126
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The page set to display as your front page.', 'give')); ?>"></span></td>
127
+				<td><?php echo 0 !== $front_page_id ? esc_html(get_the_title($front_page_id).' (#'.$front_page_id.')') : __('Unset', 'give'); ?></td>
128 128
 			</tr>
129 129
 			<tr>
130
-				<td data-export-label="Page for Posts"><?php _e( 'Page for Posts', 'give' ); ?>:</td>
131
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The page set to display your posts.', 'give' ) ); ?>"></span></td>
132
-				<td><?php echo 0 !== $blog_page_id ? esc_html( get_the_title( $blog_page_id ) . ' (#' . $blog_page_id . ')' ) : __( 'Unset', 'give' ); ?></td>
130
+				<td data-export-label="Page for Posts"><?php _e('Page for Posts', 'give'); ?>:</td>
131
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The page set to display your posts.', 'give')); ?>"></span></td>
132
+				<td><?php echo 0 !== $blog_page_id ? esc_html(get_the_title($blog_page_id).' (#'.$blog_page_id.')') : __('Unset', 'give'); ?></td>
133 133
 			</tr>
134
-		<?php endif;?>
134
+		<?php endif; ?>
135 135
 		<tr>
136
-			<td data-export-label="Table Prefix Length"><?php _e( 'Table Prefix Length', 'give' ); ?>:</td>
137
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The length of the table prefix used in your WordPress database.', 'give' ) ); ?>"></span></td>
138
-			<td><?php echo esc_html( strlen( $wpdb->prefix ) ); ?></td>
136
+			<td data-export-label="Table Prefix Length"><?php _e('Table Prefix Length', 'give'); ?>:</td>
137
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The length of the table prefix used in your WordPress database.', 'give')); ?>"></span></td>
138
+			<td><?php echo esc_html(strlen($wpdb->prefix)); ?></td>
139 139
 		</tr>
140 140
 		<tr>
141
-			<td data-export-label="Table Prefix Status"><?php _e( 'Table Prefix Status', 'give' ); ?>:</td>
142
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The status of the table prefix used in your WordPress database.', 'give' ) ); ?>"></span></td>
143
-			<td><?php echo strlen( $wpdb->prefix ) > 16 ? esc_html( 'Error: Too long', 'give' ) : esc_html( 'Acceptable', 'give' ); ?></td>
141
+			<td data-export-label="Table Prefix Status"><?php _e('Table Prefix Status', 'give'); ?>:</td>
142
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The status of the table prefix used in your WordPress database.', 'give')); ?>"></span></td>
143
+			<td><?php echo strlen($wpdb->prefix) > 16 ? esc_html('Error: Too long', 'give') : esc_html('Acceptable', 'give'); ?></td>
144 144
 		</tr>
145 145
 		<tr>
146
-			<td data-export-label="Admin AJAX"><?php _e( 'Admin AJAX', 'give' ); ?>:</td>
147
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether Admin AJAX is accessible.', 'give' ) ); ?>"></span></td>
148
-			<td><?php echo give_test_ajax_works() ? __( 'Accessible', 'give' ) : __( 'Inaccessible', 'give' ); ?></td>
146
+			<td data-export-label="Admin AJAX"><?php _e('Admin AJAX', 'give'); ?>:</td>
147
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether Admin AJAX is accessible.', 'give')); ?>"></span></td>
148
+			<td><?php echo give_test_ajax_works() ? __('Accessible', 'give') : __('Inaccessible', 'give'); ?></td>
149 149
 		</tr>
150 150
 		<tr>
151
-			<td data-export-label="Registered Post Stati"><?php _e( 'Registered Post Stati', 'give' ); ?>:</td>
152
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'A list of all registered post stati.', 'give' ) ); ?>"></span></td>
153
-			<td><?php echo esc_html( implode( ', ', get_post_stati() ) ); ?></td>
151
+			<td data-export-label="Registered Post Stati"><?php _e('Registered Post Stati', 'give'); ?>:</td>
152
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('A list of all registered post stati.', 'give')); ?>"></span></td>
153
+			<td><?php echo esc_html(implode(', ', get_post_stati())); ?></td>
154 154
 		</tr>
155 155
 	</tbody>
156 156
 </table>
@@ -158,71 +158,71 @@  discard block
 block discarded – undo
158 158
 <table class="give-status-table widefat" cellspacing="0">
159 159
 	<thead>
160 160
 		<tr>
161
-			<th colspan="3" data-export-label="Server Environment"><h2><?php _e( 'Server Environment', 'give' ); ?></h2></th>
161
+			<th colspan="3" data-export-label="Server Environment"><h2><?php _e('Server Environment', 'give'); ?></h2></th>
162 162
 		</tr>
163 163
 	</thead>
164 164
 	<tbody>
165 165
 		<tr>
166
-			<td data-export-label="Hosting Provider"><?php _e( 'Hosting Provider', 'give' ); ?>:</td>
167
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The hosting provider for this WordPress installation.', 'give' ) ); ?>"></span></td>
168
-			<td><?php echo give_get_host() ? esc_html( give_get_host() ) : __( 'Unknown', 'give' ); ?></td>
166
+			<td data-export-label="Hosting Provider"><?php _e('Hosting Provider', 'give'); ?>:</td>
167
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The hosting provider for this WordPress installation.', 'give')); ?>"></span></td>
168
+			<td><?php echo give_get_host() ? esc_html(give_get_host()) : __('Unknown', 'give'); ?></td>
169 169
 		</tr>
170 170
 		<tr>
171
-			<td data-export-label="Server Info"><?php _e( 'Server Info', 'give' ); ?>:</td>
172
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Information about the web server that is currently hosting your site.', 'give' ) ); ?>"></span></td>
173
-			<td><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ); ?></td>
171
+			<td data-export-label="Server Info"><?php _e('Server Info', 'give'); ?>:</td>
172
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Information about the web server that is currently hosting your site.', 'give')); ?>"></span></td>
173
+			<td><?php echo esc_html($_SERVER['SERVER_SOFTWARE']); ?></td>
174 174
 		</tr>
175 175
 		<tr>
176
-			<td data-export-label="PHP Version"><?php _e( 'PHP Version', 'give' ); ?>:</td>
177
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The version of PHP installed on your hosting server.', 'give' ) ); ?>"></span></td>
176
+			<td data-export-label="PHP Version"><?php _e('PHP Version', 'give'); ?>:</td>
177
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The version of PHP installed on your hosting server.', 'give')); ?>"></span></td>
178 178
 			<td><?php
179 179
 				// Check if phpversion function exists.
180
-				if ( function_exists( 'phpversion' ) ) {
180
+				if (function_exists('phpversion')) {
181 181
 					$php_version = phpversion();
182 182
 
183
-					if ( version_compare( $php_version, '5.6', '<' ) ) {
184
-						echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend a minimum PHP version of 5.6. See: %s', 'give' ), esc_html( $php_version ), '<a href="http://docs.givewp.com/settings-system-info" target="_blank">' . __( 'PHP Requirements in Give', 'give' ) . '</a>' ) . '</mark>';
183
+					if (version_compare($php_version, '5.6', '<')) {
184
+						echo '<mark class="error"><span class="dashicons dashicons-warning"></span> '.sprintf(__('%s - We recommend a minimum PHP version of 5.6. See: %s', 'give'), esc_html($php_version), '<a href="http://docs.givewp.com/settings-system-info" target="_blank">'.__('PHP Requirements in Give', 'give').'</a>').'</mark>';
185 185
 					} else {
186
-						echo '<mark class="yes">' . esc_html( $php_version ) . '</mark>';
186
+						echo '<mark class="yes">'.esc_html($php_version).'</mark>';
187 187
 					}
188 188
 				} else {
189
-					_e( "Couldn't determine PHP version because phpversion() doesn't exist.", 'give' );
189
+					_e("Couldn't determine PHP version because phpversion() doesn't exist.", 'give');
190 190
 				}
191 191
 				?></td>
192 192
 		</tr>
193
-		<?php if ( function_exists( 'ini_get' ) ) : ?>
193
+		<?php if (function_exists('ini_get')) : ?>
194 194
 			<tr>
195
-				<td data-export-label="PHP Post Max Size"><?php _e( 'PHP Post Max Size', 'give' ); ?>:</td>
196
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The largest filesize that can be contained in one post.', 'give' ) ); ?>"></span></td>
197
-				<td><?php echo size_format( give_let_to_num( ini_get( 'post_max_size' ) ) ); ?></td>
195
+				<td data-export-label="PHP Post Max Size"><?php _e('PHP Post Max Size', 'give'); ?>:</td>
196
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The largest filesize that can be contained in one post.', 'give')); ?>"></span></td>
197
+				<td><?php echo size_format(give_let_to_num(ini_get('post_max_size'))); ?></td>
198 198
 			</tr>
199 199
 			<tr>
200
-				<td data-export-label="PHP Time Limit"><?php _e( 'PHP Time Limit', 'give' ); ?>:</td>
201
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups).', 'give' ) ); ?>"></span></td>
202
-				<td><?php echo ini_get( 'max_execution_time' ); ?></td>
200
+				<td data-export-label="PHP Time Limit"><?php _e('PHP Time Limit', 'give'); ?>:</td>
201
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups).', 'give')); ?>"></span></td>
202
+				<td><?php echo ini_get('max_execution_time'); ?></td>
203 203
 			</tr>
204 204
 			<tr>
205
-				<td data-export-label="PHP Max Input Vars"><?php _e( 'PHP Max Input Vars', 'give' ); ?>:</td>
206
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The maximum number of variables your server can use for a single function to avoid overloads.', 'give' ) ); ?>"></span></td>
207
-				<td><?php echo ini_get( 'max_input_vars' ); ?></td>
205
+				<td data-export-label="PHP Max Input Vars"><?php _e('PHP Max Input Vars', 'give'); ?>:</td>
206
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The maximum number of variables your server can use for a single function to avoid overloads.', 'give')); ?>"></span></td>
207
+				<td><?php echo ini_get('max_input_vars'); ?></td>
208 208
 			</tr>
209 209
 			<tr>
210
-				<td data-export-label="PHP Max Upload Size"><?php _e( 'PHP Max Upload Size', 'give' ); ?>:</td>
211
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The largest filesize that can be uploaded to your WordPress installation.', 'give' ) ); ?>"></span></td>
212
-				<td><?php echo size_format( wp_max_upload_size() ); ?></td>
210
+				<td data-export-label="PHP Max Upload Size"><?php _e('PHP Max Upload Size', 'give'); ?>:</td>
211
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The largest filesize that can be uploaded to your WordPress installation.', 'give')); ?>"></span></td>
212
+				<td><?php echo size_format(wp_max_upload_size()); ?></td>
213 213
 			</tr>
214 214
 			<tr>
215
-				<td data-export-label="cURL Version"><?php _e( 'cURL Version', 'give' ); ?>:</td>
216
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The version of cURL installed on your server.', 'give' ) ); ?>"></span></td>
215
+				<td data-export-label="cURL Version"><?php _e('cURL Version', 'give'); ?>:</td>
216
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The version of cURL installed on your server.', 'give')); ?>"></span></td>
217 217
 				<td>
218 218
 					<?php
219
-					if ( function_exists( 'curl_version' ) ) {
219
+					if (function_exists('curl_version')) {
220 220
 						$curl_version = curl_version();
221 221
 
222
-						if ( version_compare( $curl_version['version'], '7.40', '<' ) ) {
223
-							echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend a minimum cURL version of 7.40.', 'give' ), esc_html( $curl_version['version'] . ', ' . $curl_version['ssl_version'] ) ) . '</mark>';
222
+						if (version_compare($curl_version['version'], '7.40', '<')) {
223
+							echo '<mark class="error"><span class="dashicons dashicons-warning"></span> '.sprintf(__('%s - We recommend a minimum cURL version of 7.40.', 'give'), esc_html($curl_version['version'].', '.$curl_version['ssl_version'])).'</mark>';
224 224
 						} else {
225
-							echo '<mark class="yes">' . esc_html( $curl_version['version'] . ', ' . $curl_version['ssl_version'] ) . '</mark>';
225
+							echo '<mark class="yes">'.esc_html($curl_version['version'].', '.$curl_version['ssl_version']).'</mark>';
226 226
 						}
227 227
 					} else {
228 228
 						echo '&ndash';
@@ -231,42 +231,42 @@  discard block
 block discarded – undo
231 231
 				</td>
232 232
 			</tr>
233 233
 			<tr>
234
-				<td data-export-label="SUHOSIN Installed"><?php _e( 'SUHOSIN Installed', 'give' ); ?>:</td>
235
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits.', 'give' ) ); ?>"></span></td>
236
-				<td><?php echo extension_loaded( 'suhosin' ) ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
234
+				<td data-export-label="SUHOSIN Installed"><?php _e('SUHOSIN Installed', 'give'); ?>:</td>
235
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits.', 'give')); ?>"></span></td>
236
+				<td><?php echo extension_loaded('suhosin') ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
237 237
 			</tr>
238 238
 		<?php endif;
239 239
 
240
-		if ( $wpdb->use_mysqli ) {
241
-			$ver = mysqli_get_server_info( $wpdb->dbh );
240
+		if ($wpdb->use_mysqli) {
241
+			$ver = mysqli_get_server_info($wpdb->dbh);
242 242
 		} else {
243 243
 			$ver = mysql_get_server_info();
244 244
 		}
245 245
 
246
-		if ( ! empty( $wpdb->is_mysql ) && ! stristr( $ver, 'MariaDB' ) ) : ?>
246
+		if ( ! empty($wpdb->is_mysql) && ! stristr($ver, 'MariaDB')) : ?>
247 247
 			<tr>
248
-				<td data-export-label="MySQL Version"><?php _e( 'MySQL Version', 'give' ); ?>:</td>
249
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The version of MySQL installed on your hosting server.', 'give' ) ); ?>"></span></td>
248
+				<td data-export-label="MySQL Version"><?php _e('MySQL Version', 'give'); ?>:</td>
249
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The version of MySQL installed on your hosting server.', 'give')); ?>"></span></td>
250 250
 				<td>
251 251
 					<?php
252 252
 					$mysql_version = $wpdb->db_version();
253 253
 
254
-					if ( version_compare( $mysql_version, '5.6', '<' ) ) {
255
-						echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend a minimum MySQL version of 5.6. See: %s', 'give' ), esc_html( $mysql_version ), '<a href="https://wordpress.org/about/requirements/" target="_blank">' . __( 'WordPress Requirements', 'give' ) . '</a>' ) . '</mark>';
254
+					if (version_compare($mysql_version, '5.6', '<')) {
255
+						echo '<mark class="error"><span class="dashicons dashicons-warning"></span> '.sprintf(__('%s - We recommend a minimum MySQL version of 5.6. See: %s', 'give'), esc_html($mysql_version), '<a href="https://wordpress.org/about/requirements/" target="_blank">'.__('WordPress Requirements', 'give').'</a>').'</mark>';
256 256
 					} else {
257
-						echo '<mark class="yes">' . esc_html( $mysql_version ) . '</mark>';
257
+						echo '<mark class="yes">'.esc_html($mysql_version).'</mark>';
258 258
 					}
259 259
 					?>
260 260
 				</td>
261 261
 			</tr>
262 262
 		<?php endif; ?>
263 263
 		<tr>
264
-			<td data-export-label="Default Timezone is UTC"><?php _e( 'Default Timezone is UTC', 'give' ); ?>:</td>
265
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The default timezone for your server.', 'give' ) ); ?>"></span></td>
264
+			<td data-export-label="Default Timezone is UTC"><?php _e('Default Timezone is UTC', 'give'); ?>:</td>
265
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The default timezone for your server.', 'give')); ?>"></span></td>
266 266
 			<td><?php
267 267
 				$default_timezone = date_default_timezone_get();
268
-				if ( 'UTC' !== $default_timezone ) {
269
-					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( 'Default timezone is %s - it should be UTC', 'give' ), $default_timezone ) . '</mark>';
268
+				if ('UTC' !== $default_timezone) {
269
+					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> '.sprintf(__('Default timezone is %s - it should be UTC', 'give'), $default_timezone).'</mark>';
270 270
 				} else {
271 271
 					echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
272 272
 				} ?>
@@ -277,118 +277,118 @@  discard block
 block discarded – undo
277 277
 
278 278
 		// fsockopen/cURL.
279 279
 		$posting['fsockopen_curl']['name'] = 'fsockopen/cURL';
280
-		$posting['fsockopen_curl']['help'] = __( 'Payment gateways can use cURL to communicate with remote servers to authorize payments, other plugins may also use it when communicating with remote services.', 'give' );
280
+		$posting['fsockopen_curl']['help'] = __('Payment gateways can use cURL to communicate with remote servers to authorize payments, other plugins may also use it when communicating with remote services.', 'give');
281 281
 
282
-		if ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ) {
282
+		if (function_exists('fsockopen') || function_exists('curl_init')) {
283 283
 			$posting['fsockopen_curl']['success'] = true;
284 284
 		} else {
285 285
 			$posting['fsockopen_curl']['success'] = false;
286
-			$posting['fsockopen_curl']['note']    = __( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'give' );
286
+			$posting['fsockopen_curl']['note']    = __('Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'give');
287 287
 		}
288 288
 
289 289
 		// SOAP.
290 290
 		$posting['soap_client']['name'] = 'SoapClient';
291
-		$posting['soap_client']['help'] = __( 'Some webservices like shipping use SOAP to get information from remote servers, for example, live shipping quotes from FedEx require SOAP to be installed.', 'give' );
291
+		$posting['soap_client']['help'] = __('Some webservices like shipping use SOAP to get information from remote servers, for example, live shipping quotes from FedEx require SOAP to be installed.', 'give');
292 292
 
293
-		if ( class_exists( 'SoapClient' ) ) {
293
+		if (class_exists('SoapClient')) {
294 294
 			$posting['soap_client']['success'] = true;
295 295
 		} else {
296 296
 			$posting['soap_client']['success'] = false;
297
-			$posting['soap_client']['note']    = sprintf( __( 'Your server does not have the %s class enabled - some gateway plugins which use SOAP may not work as expected.', 'give' ), '<a href="https://php.net/manual/en/class.soapclient.php">SoapClient</a>' );
297
+			$posting['soap_client']['note']    = sprintf(__('Your server does not have the %s class enabled - some gateway plugins which use SOAP may not work as expected.', 'give'), '<a href="https://php.net/manual/en/class.soapclient.php">SoapClient</a>');
298 298
 		}
299 299
 
300 300
 		// DOMDocument.
301 301
 		$posting['dom_document']['name'] = 'DOMDocument';
302
-		$posting['dom_document']['help'] = __( 'HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'give' );
302
+		$posting['dom_document']['help'] = __('HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'give');
303 303
 
304
-		if ( class_exists( 'DOMDocument' ) ) {
304
+		if (class_exists('DOMDocument')) {
305 305
 			$posting['dom_document']['success'] = true;
306 306
 		} else {
307 307
 			$posting['dom_document']['success'] = false;
308
-			$posting['dom_document']['note']    = sprintf( __( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'give' ), '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>' );
308
+			$posting['dom_document']['note']    = sprintf(__('Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'give'), '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>');
309 309
 		}
310 310
 
311 311
 		// gzip.
312 312
 		$posting['gzip']['name'] = 'gzip';
313
-		$posting['gzip']['help'] = __( 'gzip is used for file compression and decompression.', 'give' );
313
+		$posting['gzip']['help'] = __('gzip is used for file compression and decompression.', 'give');
314 314
 
315
-		if ( is_callable( 'gzopen' ) ) {
315
+		if (is_callable('gzopen')) {
316 316
 			$posting['gzip']['success'] = true;
317 317
 		} else {
318 318
 			$posting['gzip']['success'] = false;
319
-			$posting['gzip']['note']    = sprintf( __( 'Your server does not support the %s function - this is used for file compression and decompression.', 'give' ), '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>' );
319
+			$posting['gzip']['note']    = sprintf(__('Your server does not support the %s function - this is used for file compression and decompression.', 'give'), '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>');
320 320
 		}
321 321
 
322 322
 		// GD Graphics Library.
323 323
 		$posting['gd']['name'] = 'GD Graphics Library';
324
-		$posting['gd']['help'] = __( 'GD Graphics Library is used for dynamically manipulating images.', 'give' );
325
-		$posting['gd']['success'] = extension_loaded( 'gd' ) && function_exists( 'gd_info' ) ? true : false;
324
+		$posting['gd']['help'] = __('GD Graphics Library is used for dynamically manipulating images.', 'give');
325
+		$posting['gd']['success'] = extension_loaded('gd') && function_exists('gd_info') ? true : false;
326 326
 
327 327
 		// Multibyte String.
328 328
 		$posting['mbstring']['name'] = 'Multibyte String';
329
-		$posting['mbstring']['help'] = __( 'Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'give' );
329
+		$posting['mbstring']['help'] = __('Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'give');
330 330
 
331
-		if ( extension_loaded( 'mbstring' ) ) {
331
+		if (extension_loaded('mbstring')) {
332 332
 			$posting['mbstring']['success'] = true;
333 333
 		} else {
334 334
 			$posting['mbstring']['success'] = false;
335
-			$posting['mbstring']['note']    = sprintf( __( 'Your server does not support the %s functions - this is required for better character encoding. Some fallbacks will be used instead for it.', 'give' ), '<a href="https://php.net/manual/en/mbstring.installation.php">mbstring</a>' );
335
+			$posting['mbstring']['note']    = sprintf(__('Your server does not support the %s functions - this is required for better character encoding. Some fallbacks will be used instead for it.', 'give'), '<a href="https://php.net/manual/en/mbstring.installation.php">mbstring</a>');
336 336
 		}
337 337
 
338 338
 		// WP Remote Post Check.
339
-		$posting['wp_remote_post']['name'] = __( 'Remote Post', 'give');
340
-		$posting['wp_remote_post']['help'] = __( 'PayPal uses this method of communicating when sending back transaction information.', 'give' );
339
+		$posting['wp_remote_post']['name'] = __('Remote Post', 'give');
340
+		$posting['wp_remote_post']['help'] = __('PayPal uses this method of communicating when sending back transaction information.', 'give');
341 341
 
342
-		$response = wp_safe_remote_post( 'https://www.paypal.com/cgi-bin/webscr', array(
342
+		$response = wp_safe_remote_post('https://www.paypal.com/cgi-bin/webscr', array(
343 343
 			'timeout'     => 60,
344
-			'user-agent'  => 'Give/' . GIVE_VERSION,
344
+			'user-agent'  => 'Give/'.GIVE_VERSION,
345 345
 			'httpversion' => '1.1',
346 346
 			'body'        => array(
347 347
 				'cmd'     => '_notify-validate'
348 348
 			)
349
-		) );
349
+		));
350 350
 
351
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
351
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
352 352
 			$posting['wp_remote_post']['success'] = true;
353 353
 		} else {
354
-			$posting['wp_remote_post']['note']    = __( 'wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider.', 'give' );
355
-			if ( is_wp_error( $response ) ) {
356
-				$posting['wp_remote_post']['note'] .= ' ' . sprintf( __( 'Error: %s', 'give' ), sanitize_text_field( $response->get_error_message() ) );
354
+			$posting['wp_remote_post']['note']    = __('wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider.', 'give');
355
+			if (is_wp_error($response)) {
356
+				$posting['wp_remote_post']['note'] .= ' '.sprintf(__('Error: %s', 'give'), sanitize_text_field($response->get_error_message()));
357 357
 			} else {
358
-				$posting['wp_remote_post']['note'] .= ' ' . sprintf( __( 'Status code: %s', 'give' ), sanitize_text_field( $response['response']['code'] ) );
358
+				$posting['wp_remote_post']['note'] .= ' '.sprintf(__('Status code: %s', 'give'), sanitize_text_field($response['response']['code']));
359 359
 			}
360 360
 			$posting['wp_remote_post']['success'] = false;
361 361
 		}
362 362
 
363 363
 		// WP Remote Get Check.
364
-		$posting['wp_remote_get']['name'] = __( 'Remote Get', 'give');
365
-		$posting['wp_remote_get']['help'] = __( 'Give plugins may use this method of communication when checking for plugin updates.', 'give' );
364
+		$posting['wp_remote_get']['name'] = __('Remote Get', 'give');
365
+		$posting['wp_remote_get']['help'] = __('Give plugins may use this method of communication when checking for plugin updates.', 'give');
366 366
 
367
-		$response = wp_safe_remote_get( 'https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . ( is_multisite() ? '1' : '0' ) );
367
+		$response = wp_safe_remote_get('https://woocommerce.com/wc-api/product-key-api?request=ping&network='.(is_multisite() ? '1' : '0'));
368 368
 
369
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
369
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
370 370
 			$posting['wp_remote_get']['success'] = true;
371 371
 		} else {
372
-			$posting['wp_remote_get']['note']    = __( 'wp_remote_get() failed. The WooCommerce plugin updater won\'t work with your server. Contact your hosting provider.', 'give' );
373
-			if ( is_wp_error( $response ) ) {
374
-				$posting['wp_remote_get']['note'] .= ' ' . sprintf( __( 'Error: %s', 'give' ), give_clean( $response->get_error_message() ) );
372
+			$posting['wp_remote_get']['note']    = __('wp_remote_get() failed. The WooCommerce plugin updater won\'t work with your server. Contact your hosting provider.', 'give');
373
+			if (is_wp_error($response)) {
374
+				$posting['wp_remote_get']['note'] .= ' '.sprintf(__('Error: %s', 'give'), give_clean($response->get_error_message()));
375 375
 			} else {
376
-				$posting['wp_remote_get']['note'] .= ' ' . sprintf( __( 'Status code: %s', 'give' ), give_clean( $response['response']['code'] ) );
376
+				$posting['wp_remote_get']['note'] .= ' '.sprintf(__('Status code: %s', 'give'), give_clean($response['response']['code']));
377 377
 			}
378 378
 			$posting['wp_remote_get']['success'] = false;
379 379
 		}
380 380
 
381
-		$posting = apply_filters( 'woocommerce_debug_posting', $posting );
381
+		$posting = apply_filters('woocommerce_debug_posting', $posting);
382 382
 
383
-		foreach ( $posting as $post ) {
384
-			$mark = ! empty( $post['success'] ) ? 'yes' : 'error';
383
+		foreach ($posting as $post) {
384
+			$mark = ! empty($post['success']) ? 'yes' : 'error';
385 385
 			?>
386 386
 			<tr>
387
-				<td data-export-label="<?php echo esc_html( $post['name'] ); ?>"><?php echo esc_html( $post['name'] ); ?>:</td>
388
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( isset( $post['help'] ) ? $post['help'] : '' ); ?>"></span></td>
387
+				<td data-export-label="<?php echo esc_html($post['name']); ?>"><?php echo esc_html($post['name']); ?>:</td>
388
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(isset($post['help']) ? $post['help'] : ''); ?>"></span></td>
389 389
 				<td>
390 390
 					<mark class="<?php echo $mark; ?>">
391
-						<?php echo ! empty( $post['success'] ) ? '<span class="dashicons dashicons-yes"></span>' : '<span class="dashicons dashicons-no-alt"></span>'; ?> <?php echo ! empty( $post['note'] ) ? wp_kses_data( $post['note'] ) : ''; ?>
391
+						<?php echo ! empty($post['success']) ? '<span class="dashicons dashicons-yes"></span>' : '<span class="dashicons dashicons-no-alt"></span>'; ?> <?php echo ! empty($post['note']) ? wp_kses_data($post['note']) : ''; ?>
392 392
 					</mark>
393 393
 				</td>
394 394
 			</tr>
@@ -401,109 +401,109 @@  discard block
 block discarded – undo
401 401
 <table class="give-status-table widefat" cellspacing="0">
402 402
 	<thead>
403 403
 		<tr>
404
-			<th colspan="3" data-export-label="Give Configuration"><h2><?php _e( 'Give Configuration', 'give' ); ?></h2></th>
404
+			<th colspan="3" data-export-label="Give Configuration"><h2><?php _e('Give Configuration', 'give'); ?></h2></th>
405 405
 		</tr>
406 406
 	</thead>
407 407
 	<tbody>
408 408
 		<tr>
409
-			<td data-export-label="Give Version"><?php _e( 'Give Version', 'give' ); ?>:</td>
410
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The version of Give installed on your site.', 'give' ) ); ?>"></span></td>
411
-			<td><?php echo esc_html( GIVE_VERSION ); ?></td>
409
+			<td data-export-label="Give Version"><?php _e('Give Version', 'give'); ?>:</td>
410
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The version of Give installed on your site.', 'give')); ?>"></span></td>
411
+			<td><?php echo esc_html(GIVE_VERSION); ?></td>
412 412
 		</tr>
413 413
 		<tr>
414
-			<td data-export-label="Upgraded From"><?php _e( 'Upgraded From', 'give' ); ?>:</td>
415
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The version of Give installed prior to the last update.', 'give' ) ); ?>"></span></td>
416
-			<td><?php echo esc_html( get_option( 'give_version_upgraded_from', '&ndash;' ) ); ?></td>
414
+			<td data-export-label="Upgraded From"><?php _e('Upgraded From', 'give'); ?>:</td>
415
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The version of Give installed prior to the last update.', 'give')); ?>"></span></td>
416
+			<td><?php echo esc_html(get_option('give_version_upgraded_from', '&ndash;')); ?></td>
417 417
 		</tr>
418 418
 		<tr>
419
-			<td data-export-label="Test Mode"><?php _e( 'Test Mode', 'give' ); ?>:</td>
420
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether Test Mode is enabled in Give settings.', 'give' ) ); ?>"></span></td>
421
-			<td><?php echo give_is_test_mode() ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
419
+			<td data-export-label="Test Mode"><?php _e('Test Mode', 'give'); ?>:</td>
420
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether Test Mode is enabled in Give settings.', 'give')); ?>"></span></td>
421
+			<td><?php echo give_is_test_mode() ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
422 422
 		</tr>
423 423
 		<tr>
424
-			<td data-export-label="Currency Code"><?php _e( 'Currency Code', 'give' ); ?>:</td>
425
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The currency code selected in Give settings.', 'give' ) ); ?>"></span></td>
426
-			<td><?php echo esc_html( give_get_currency() ); ?></td>
424
+			<td data-export-label="Currency Code"><?php _e('Currency Code', 'give'); ?>:</td>
425
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The currency code selected in Give settings.', 'give')); ?>"></span></td>
426
+			<td><?php echo esc_html(give_get_currency()); ?></td>
427 427
 		</tr>
428 428
 		<tr>
429
-			<td data-export-label="Currency Position"><?php _e( 'Currency Position', 'give' ); ?>:</td>
430
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The currency position selected in Give settings.', 'give' ) ); ?>"></span></td>
431
-			<td><?php echo 'before' === give_get_option( 'currency_position' ) ? __( 'Before', 'give' ) : __( 'After', 'give' ); ?></td>
429
+			<td data-export-label="Currency Position"><?php _e('Currency Position', 'give'); ?>:</td>
430
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The currency position selected in Give settings.', 'give')); ?>"></span></td>
431
+			<td><?php echo 'before' === give_get_option('currency_position') ? __('Before', 'give') : __('After', 'give'); ?></td>
432 432
 		</tr>
433 433
 		<tr>
434
-			<td data-export-label="Decimal Separator"><?php _e( 'Decimal Separator', 'give' ); ?>:</td>
435
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The decimal separator defined in Give settings.', 'give' ) ); ?>"></span></td>
436
-			<td><?php echo esc_html( give_get_option( 'decimal_separator', '.' ) ); ?></td>
434
+			<td data-export-label="Decimal Separator"><?php _e('Decimal Separator', 'give'); ?>:</td>
435
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The decimal separator defined in Give settings.', 'give')); ?>"></span></td>
436
+			<td><?php echo esc_html(give_get_option('decimal_separator', '.')); ?></td>
437 437
 		</tr>
438 438
 		<tr>
439
-			<td data-export-label="Thousands Separator"><?php _e( 'Thousands Separator', 'give' ); ?>:</td>
440
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The thousands separator defined in Give settings.', 'give' ) ); ?>"></span></td>
441
-			<td><?php echo esc_html( give_get_option( 'thousands_separator', ',' ) ); ?></td>
439
+			<td data-export-label="Thousands Separator"><?php _e('Thousands Separator', 'give'); ?>:</td>
440
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The thousands separator defined in Give settings.', 'give')); ?>"></span></td>
441
+			<td><?php echo esc_html(give_get_option('thousands_separator', ',')); ?></td>
442 442
 		</tr>
443 443
 		<tr>
444
-			<td data-export-label="Success Page"><?php _e( 'Success Page', 'give' ); ?>:</td>
445
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The page where donors land following a successful transaction.', 'give' ) ); ?>"></span></td>
446
-			<td><?php echo ! empty( $give_options['success_page'] ) ? esc_url( get_permalink( $give_options['success_page'] ) ) : '&ndash;'; ?></td>
444
+			<td data-export-label="Success Page"><?php _e('Success Page', 'give'); ?>:</td>
445
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The page where donors land following a successful transaction.', 'give')); ?>"></span></td>
446
+			<td><?php echo ! empty($give_options['success_page']) ? esc_url(get_permalink($give_options['success_page'])) : '&ndash;'; ?></td>
447 447
 		</tr>
448 448
 		<tr>
449
-			<td data-export-label="Failure Page"><?php _e( 'Failure Page', 'give' ); ?>:</td>
450
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The page where donors land following a failed transaction.', 'give' ) ); ?>"></span></td>
451
-			<td><?php echo ! empty( $give_options['failure_page'] ) ? esc_url( get_permalink( $give_options['failure_page'] ) ) : '&ndash;'; ?></td>
449
+			<td data-export-label="Failure Page"><?php _e('Failure Page', 'give'); ?>:</td>
450
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The page where donors land following a failed transaction.', 'give')); ?>"></span></td>
451
+			<td><?php echo ! empty($give_options['failure_page']) ? esc_url(get_permalink($give_options['failure_page'])) : '&ndash;'; ?></td>
452 452
 		</tr>
453 453
 		<tr>
454
-			<td data-export-label="Donation History Page"><?php _e( 'Donation History Page', 'give' ); ?>:</td>
455
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The page where past donations are listed.', 'give' ) ); ?>"></span></td>
456
-			<td><?php echo ! empty( $give_options['history_page'] ) ? esc_url( get_permalink( $give_options['history_page'] ) ) : '&ndash;'; ?></td>
454
+			<td data-export-label="Donation History Page"><?php _e('Donation History Page', 'give'); ?>:</td>
455
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The page where past donations are listed.', 'give')); ?>"></span></td>
456
+			<td><?php echo ! empty($give_options['history_page']) ? esc_url(get_permalink($give_options['history_page'])) : '&ndash;'; ?></td>
457 457
 		</tr>
458 458
 		<tr>
459
-			<td data-export-label="Give Forms Slug"><?php _e( 'Give Forms Slug', 'give' ); ?>:</td>
460
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The slug used for Give donation forms.', 'give' ) ); ?>"></span></td>
461
-			<td><?php echo esc_html( defined( 'GIVE_SLUG' ) ? '/' . GIVE_SLUG . '/' : '/donations/' ); ?></td>
459
+			<td data-export-label="Give Forms Slug"><?php _e('Give Forms Slug', 'give'); ?>:</td>
460
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The slug used for Give donation forms.', 'give')); ?>"></span></td>
461
+			<td><?php echo esc_html(defined('GIVE_SLUG') ? '/'.GIVE_SLUG.'/' : '/donations/'); ?></td>
462 462
 		</tr>
463 463
 		<?php
464 464
 		$active_gateways = give_get_enabled_payment_gateways();
465 465
 		$enabled_gateways = $default_gateway = '';
466 466
 
467
-		if ( $active_gateways ) {
468
-			$default_gateway_is_active = give_is_gateway_active( give_get_default_gateway( null ) );
467
+		if ($active_gateways) {
468
+			$default_gateway_is_active = give_is_gateway_active(give_get_default_gateway(null));
469 469
 
470
-			if ( $default_gateway_is_active ) {
471
-				$default_gateway = give_get_default_gateway( null );
472
-				$default_gateway = $active_gateways[ $default_gateway ]['admin_label'];
470
+			if ($default_gateway_is_active) {
471
+				$default_gateway = give_get_default_gateway(null);
472
+				$default_gateway = $active_gateways[$default_gateway]['admin_label'];
473 473
 			} else {
474
-				$default_gateway = __( 'Test Donation', 'give' );
474
+				$default_gateway = __('Test Donation', 'give');
475 475
 			}
476 476
 
477 477
 			$gateways = array();
478 478
 
479
-			foreach ( $active_gateways as $gateway ) {
479
+			foreach ($active_gateways as $gateway) {
480 480
 				$gateways[] = $gateway['admin_label'];
481 481
 			}
482 482
 
483
-			$enabled_gateways = implode( ', ', $gateways );
483
+			$enabled_gateways = implode(', ', $gateways);
484 484
 		}
485 485
 		?>
486 486
 		<tr>
487
-			<td data-export-label="Enabled Payment Gateways"><?php _e( 'Enabled Payment Gateways', 'give' ); ?>:</td>
488
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'All payment gateways enabled in Give settings.', 'give' ) ); ?>"></span></td>
489
-			<td><?php echo esc_html( ! empty( $enabled_gateways ) ? $enabled_gateways : '&ndash;' ); ?></td>
487
+			<td data-export-label="Enabled Payment Gateways"><?php _e('Enabled Payment Gateways', 'give'); ?>:</td>
488
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('All payment gateways enabled in Give settings.', 'give')); ?>"></span></td>
489
+			<td><?php echo esc_html( ! empty($enabled_gateways) ? $enabled_gateways : '&ndash;'); ?></td>
490 490
 		</tr>
491 491
 		<tr>
492
-			<td data-export-label="Default Payment Gateway"><?php _e( 'Default Payment Gateway', 'give' ); ?>:</td>
493
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The default payment gateway selected in Give settings.', 'give' ) ); ?>"></span></td>
494
-			<td><?php echo esc_html( ! empty( $default_gateway ) ? $default_gateway : '&ndash;' ); ?></td>
492
+			<td data-export-label="Default Payment Gateway"><?php _e('Default Payment Gateway', 'give'); ?>:</td>
493
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The default payment gateway selected in Give settings.', 'give')); ?>"></span></td>
494
+			<td><?php echo esc_html( ! empty($default_gateway) ? $default_gateway : '&ndash;'); ?></td>
495 495
 		</tr>
496 496
 		<tr>
497
-			<td data-export-label="PayPal IPN Notifications"><?php _e( 'PayPal IPN Notifications', 'give' ); ?>:</td>
498
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether admin has enabled PayPal IPN notifications or not.', 'give' ) ); ?>"></span></td>
497
+			<td data-export-label="PayPal IPN Notifications"><?php _e('PayPal IPN Notifications', 'give'); ?>:</td>
498
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether admin has enabled PayPal IPN notifications or not.', 'give')); ?>"></span></td>
499 499
 			<td>
500 500
 				<?php
501
-				$last_paypal_ipn_received = get_option( 'give_last_paypal_ipn_received' );
502
-				if( is_array( $last_paypal_ipn_received ) && count( $last_paypal_ipn_received ) > 0 ) {
503
-					$transaction_information_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id=' . $last_paypal_ipn_received['transaction_id'];
504
-					$donation_url = site_url() . '/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $last_paypal_ipn_received['payment_id'];
501
+				$last_paypal_ipn_received = get_option('give_last_paypal_ipn_received');
502
+				if (is_array($last_paypal_ipn_received) && count($last_paypal_ipn_received) > 0) {
503
+					$transaction_information_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id='.$last_paypal_ipn_received['transaction_id'];
504
+					$donation_url = site_url().'/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id='.$last_paypal_ipn_received['payment_id'];
505 505
 					echo sprintf(
506
-							__( 'IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ). Status %s', 'give' ),
506
+							__('IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ). Status %s', 'give'),
507 507
 							$donation_url,
508 508
 							$last_paypal_ipn_received['payment_id'],
509 509
 							$transaction_information_url,
@@ -517,14 +517,14 @@  discard block
 block discarded – undo
517 517
 			</td>
518 518
 		</tr>
519 519
 		<tr>
520
-			<td data-export-label="Admin Email Notifications"><?php _e( 'Admin Email Notifications', 'give' ); ?>:</td>
521
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether admins receive email notifications of transactions.', 'give' ) ); ?>"></span></td>
522
-			<td><?php echo 'enabled' === give_get_option( 'admin_notices' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
520
+			<td data-export-label="Admin Email Notifications"><?php _e('Admin Email Notifications', 'give'); ?>:</td>
521
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether admins receive email notifications of transactions.', 'give')); ?>"></span></td>
522
+			<td><?php echo 'enabled' === give_get_option('admin_notices') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
523 523
 		</tr>
524 524
 		<tr>
525
-			<td data-export-label="Donor Email Access"><?php _e( 'Donor Email Access', 'give' ); ?>:</td>
526
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether donors can access their donation history using only email.', 'give' ) ); ?>"></span></td>
527
-			<td><?php echo 'enabled' === give_get_option( 'email_access' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
525
+			<td data-export-label="Donor Email Access"><?php _e('Donor Email Access', 'give'); ?>:</td>
526
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether donors can access their donation history using only email.', 'give')); ?>"></span></td>
527
+			<td><?php echo 'enabled' === give_get_option('email_access') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
528 528
 		</tr>
529 529
 	</tbody>
530 530
 </table>
@@ -532,45 +532,45 @@  discard block
 block discarded – undo
532 532
 <table class="give-status-table widefat" cellspacing="0">
533 533
 	<thead>
534 534
 		<tr>
535
-			<th colspan="3" data-export-label="Session Configuration"><h2><?php _e( 'Session Configuration', 'give' ); ?></h2></th>
535
+			<th colspan="3" data-export-label="Session Configuration"><h2><?php _e('Session Configuration', 'give'); ?></h2></th>
536 536
 		</tr>
537 537
 	</thead>
538 538
 	<tbody>
539 539
 		<tr>
540
-			<td data-export-label="Give Use Sessions"><?php _e( 'Give Use Sessions', 'give' ); ?>:</td>
541
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether PHP sessions are enforced, enabled, or disabled.', 'give' ) ); ?>"></span></td>
542
-			<td><?php echo defined( 'GIVE_USE_PHP_SESSIONS' ) && GIVE_USE_PHP_SESSIONS ? __( 'Enforced', 'give' ) : ( Give()->session->use_php_sessions() ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ) ); ?></td>
540
+			<td data-export-label="Give Use Sessions"><?php _e('Give Use Sessions', 'give'); ?>:</td>
541
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether PHP sessions are enforced, enabled, or disabled.', 'give')); ?>"></span></td>
542
+			<td><?php echo defined('GIVE_USE_PHP_SESSIONS') && GIVE_USE_PHP_SESSIONS ? __('Enforced', 'give') : (Give()->session->use_php_sessions() ? __('Enabled', 'give') : __('Disabled', 'give')); ?></td>
543 543
 		</tr>
544 544
 		<tr>
545
-			<td data-export-label="Session"><?php _e( 'Session', 'give' ); ?>:</td>
546
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether a PHP session is currently set.', 'give' ) ); ?>"></span></td>
547
-			<td><?php echo isset( $_SESSION ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
545
+			<td data-export-label="Session"><?php _e('Session', 'give'); ?>:</td>
546
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether a PHP session is currently set.', 'give')); ?>"></span></td>
547
+			<td><?php echo isset($_SESSION) ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
548 548
 		</tr>
549
-		<?php if ( isset( $_SESSION ) ) { ?>
549
+		<?php if (isset($_SESSION)) { ?>
550 550
 			<tr>
551
-				<td data-export-label="Session Name"><?php _e( 'Session Name', 'give' ); ?>:</td>
552
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The name of the current PHP session.', 'give' ) ); ?>"></span></td>
553
-				<td><?php echo esc_html( ini_get( 'session.name' ) ); ?></td>
551
+				<td data-export-label="Session Name"><?php _e('Session Name', 'give'); ?>:</td>
552
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The name of the current PHP session.', 'give')); ?>"></span></td>
553
+				<td><?php echo esc_html(ini_get('session.name')); ?></td>
554 554
 			</tr>
555 555
 			<tr>
556
-				<td data-export-label="Cookie Path"><?php _e( 'Cookie Path', 'give' ); ?>:</td>
557
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The cookie path of the current PHP session.', 'give' ) ); ?>"></span></td>
558
-				<td><?php echo esc_html( ini_get( 'session.cookie_path' ) ); ?></td>
556
+				<td data-export-label="Cookie Path"><?php _e('Cookie Path', 'give'); ?>:</td>
557
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The cookie path of the current PHP session.', 'give')); ?>"></span></td>
558
+				<td><?php echo esc_html(ini_get('session.cookie_path')); ?></td>
559 559
 			</tr>
560 560
 			<tr>
561
-				<td data-export-label="Save Path"><?php _e( 'Save Path', 'give' ); ?>:</td>
562
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The save path of the current PHP session.', 'give' ) ); ?>"></span></td>
563
-				<td><?php echo esc_html( ini_get( 'session.save_path' ) ); ?></td>
561
+				<td data-export-label="Save Path"><?php _e('Save Path', 'give'); ?>:</td>
562
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The save path of the current PHP session.', 'give')); ?>"></span></td>
563
+				<td><?php echo esc_html(ini_get('session.save_path')); ?></td>
564 564
 			</tr>
565 565
 			<tr>
566
-				<td data-export-label="Use Cookies"><?php _e( 'Use Cookies', 'give' ); ?>:</td>
567
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether the current PHP session is set to use cookies.', 'give' ) ); ?>"></span></td>
568
-				<td><?php echo ini_get( 'session.use_cookies' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
566
+				<td data-export-label="Use Cookies"><?php _e('Use Cookies', 'give'); ?>:</td>
567
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether the current PHP session is set to use cookies.', 'give')); ?>"></span></td>
568
+				<td><?php echo ini_get('session.use_cookies') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
569 569
 			</tr>
570 570
 			<tr>
571
-				<td data-export-label="Use Only Cookies"><?php _e( 'Use Only Cookies', 'give' ); ?>:</td>
572
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether the current PHP session is set to use only cookies.', 'give' ) ); ?>"></span></td>
573
-				<td><?php echo ini_get( 'session.use_only_cookies' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
571
+				<td data-export-label="Use Only Cookies"><?php _e('Use Only Cookies', 'give'); ?>:</td>
572
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether the current PHP session is set to use only cookies.', 'give')); ?>"></span></td>
573
+				<td><?php echo ini_get('session.use_only_cookies') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
574 574
 			</tr>
575 575
 		<?php } ?>
576 576
 	</tbody>
@@ -579,13 +579,13 @@  discard block
 block discarded – undo
579 579
 <table class="give-status-table widefat" cellspacing="0">
580 580
 	<thead>
581 581
 	<tr>
582
-		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e( 'Active Give Add-ons', 'give' ); ?></h2></th>
582
+		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e('Active Give Add-ons', 'give'); ?></h2></th>
583 583
 	</tr>
584 584
 	</thead>
585 585
 	<tbody>
586 586
 		<?php
587
-		foreach ( $plugins as $plugin_data ) {
588
-			if ( 'active' != $plugin_data['Status'] ||  'add-on' != $plugin_data['Type'] ) {
587
+		foreach ($plugins as $plugin_data) {
588
+			if ('active' != $plugin_data['Status'] || 'add-on' != $plugin_data['Type']) {
589 589
 				continue;
590 590
 			}
591 591
 
@@ -593,30 +593,30 @@  discard block
 block discarded – undo
593 593
 			$author_name = $plugin_data['Author'];
594 594
 
595 595
 			// Link the plugin name to the plugin URL if available.
596
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
597
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
596
+			if ( ! empty($plugin_data['PluginURI'])) {
597
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
598 598
 			}
599 599
 
600 600
 			// Link the author name to the author URL if available.
601
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
602
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
601
+			if ( ! empty($plugin_data['AuthorURI'])) {
602
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
603 603
 			}
604 604
 			?>
605 605
 			<tr>
606
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
606
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
607 607
 				<td class="help">&nbsp;</td>
608 608
 				<td>
609 609
 					<?php
610
-					if ( true === $plugin_data['License'] ) {
611
-						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> ' . __( 'Licensed', 'give' );
610
+					if (true === $plugin_data['License']) {
611
+						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> '.__('Licensed', 'give');
612 612
 					} else {
613
-						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> ' . __( 'Unlicensed', 'give' );
613
+						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> '.__('Unlicensed', 'give');
614 614
 					}
615 615
 
616 616
 					echo ' &ndash; '
617
-					     . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
617
+					     . sprintf(_x('by %s', 'by author', 'give'), wp_kses($author_name, wp_kses_allowed_html('post')))
618 618
 					     . ' &ndash; '
619
-					     . esc_html( $plugin_data['Version'] );
619
+					     . esc_html($plugin_data['Version']);
620 620
 					?>
621 621
 				</td>
622 622
 			</tr>
@@ -629,18 +629,18 @@  discard block
 block discarded – undo
629 629
 <table class="give-status-table widefat" cellspacing="0">
630 630
 	<thead>
631 631
 		<tr>
632
-			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e( 'Other Active Plugins', 'give' ); ?></h2></th>
632
+			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e('Other Active Plugins', 'give'); ?></h2></th>
633 633
 		</tr>
634 634
 	</thead>
635 635
 	<tbody>
636 636
 		<?php
637
-		foreach ( $plugins as $plugin_data ) {
638
-			if ( 'active' != $plugin_data['Status'] ||  'other' != $plugin_data['Type'] ) {
637
+		foreach ($plugins as $plugin_data) {
638
+			if ('active' != $plugin_data['Status'] || 'other' != $plugin_data['Type']) {
639 639
 				continue;
640 640
 			}
641 641
 
642 642
 			// Do not show Give core plugin.
643
-			if ( 'Give - Donation Plugin' === $plugin_data['Name'] ) {
643
+			if ('Give - Donation Plugin' === $plugin_data['Name']) {
644 644
 				continue;
645 645
 			}
646 646
 
@@ -648,19 +648,19 @@  discard block
 block discarded – undo
648 648
 			$author_name = $plugin_data['Author'];
649 649
 
650 650
 			// Link the plugin name to the plugin URL if available.
651
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
652
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
651
+			if ( ! empty($plugin_data['PluginURI'])) {
652
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
653 653
 			}
654 654
 
655 655
 			// Link the author name to the author URL if available.
656
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
657
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
656
+			if ( ! empty($plugin_data['AuthorURI'])) {
657
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
658 658
 			}
659 659
 			?>
660 660
 			<tr>
661
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
661
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
662 662
 				<td class="help">&nbsp;</td>
663
-				<td><?php echo sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) . ' &ndash; ' . esc_html( $plugin_data['Version'] ); ?></td>
663
+				<td><?php echo sprintf(_x('by %s', 'by author', 'give'), wp_kses($author_name, wp_kses_allowed_html('post'))).' &ndash; '.esc_html($plugin_data['Version']); ?></td>
664 664
 			</tr>
665 665
 		<?php
666 666
 		}
@@ -671,13 +671,13 @@  discard block
 block discarded – undo
671 671
 <table class="give-status-table widefat" cellspacing="0">
672 672
 	<thead>
673 673
 		<tr>
674
-			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e( 'Inactive Plugins', 'give' ); ?></h2></th>
674
+			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e('Inactive Plugins', 'give'); ?></h2></th>
675 675
 		</tr>
676 676
 	</thead>
677 677
 	<tbody>
678 678
 		<?php
679
-		foreach ( $plugins as $plugin_data ) {
680
-			if ( 'inactive' != $plugin_data['Status'] ) {
679
+		foreach ($plugins as $plugin_data) {
680
+			if ('inactive' != $plugin_data['Status']) {
681 681
 				continue;
682 682
 			}
683 683
 
@@ -685,19 +685,19 @@  discard block
 block discarded – undo
685 685
 			$author_name = $plugin_data['Author'];
686 686
 
687 687
 			// Link the plugin name to the plugin URL if available.
688
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
689
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
688
+			if ( ! empty($plugin_data['PluginURI'])) {
689
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
690 690
 			}
691 691
 
692 692
 			// Link the author name to the author URL if available.
693
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
694
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
693
+			if ( ! empty($plugin_data['AuthorURI'])) {
694
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
695 695
 			}
696 696
 			?>
697 697
 			<tr>
698
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
698
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
699 699
 				<td class="help">&nbsp;</td>
700
-				<td><?php echo sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) . ' &ndash; ' . esc_html( $plugin_data['Version'] ); ?></td>
700
+				<td><?php echo sprintf(_x('by %s', 'by author', 'give'), wp_kses($author_name, wp_kses_allowed_html('post'))).' &ndash; '.esc_html($plugin_data['Version']); ?></td>
701 701
 			</tr>
702 702
 			<?php
703 703
 		}
@@ -707,37 +707,37 @@  discard block
 block discarded – undo
707 707
 
708 708
 <?php
709 709
 $active_mu_plugins = (array) get_mu_plugins();
710
-if ( ! empty( $active_mu_plugins ) ) {
710
+if ( ! empty($active_mu_plugins)) {
711 711
 ?>
712 712
 	<table class="give-status-table widefat" cellspacing="0">
713 713
 		<thead>
714 714
 			<tr>
715
-				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e( 'Active MU Plugins', 'give' ); ?></h2></th>
715
+				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e('Active MU Plugins', 'give'); ?></h2></th>
716 716
 			</tr>
717 717
 		</thead>
718 718
 		<tbody>
719 719
 			<?php
720 720
 
721
-			foreach ( $active_mu_plugins as $mu_plugin_data ) {
722
-				if ( ! empty( $mu_plugin_data['Name'] ) ) {
721
+			foreach ($active_mu_plugins as $mu_plugin_data) {
722
+				if ( ! empty($mu_plugin_data['Name'])) {
723 723
 					// Link the plugin name to the plugin URL if available.
724
-					$plugin_name = esc_html( $mu_plugin_data['Name'] );
724
+					$plugin_name = esc_html($mu_plugin_data['Name']);
725 725
 
726
-					if ( ! empty( $mu_plugin_data['PluginURI'] ) ) {
727
-						$plugin_name = '<a href="' . esc_url( $mu_plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
726
+					if ( ! empty($mu_plugin_data['PluginURI'])) {
727
+						$plugin_name = '<a href="'.esc_url($mu_plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
728 728
 					}
729 729
 
730 730
 					// Link the author name to the author URL if available.
731
-					$author_name = esc_html( $mu_plugin_data['Author'] );
731
+					$author_name = esc_html($mu_plugin_data['Author']);
732 732
 
733
-					if ( ! empty( $mu_plugin_data['AuthorURI'] ) ) {
734
-						$author_name = '<a href="' . esc_url( $mu_plugin_data['AuthorURI'] ) . '">' . $author_name . '</a>';
733
+					if ( ! empty($mu_plugin_data['AuthorURI'])) {
734
+						$author_name = '<a href="'.esc_url($mu_plugin_data['AuthorURI']).'">'.$author_name.'</a>';
735 735
 					}
736 736
 					?>
737 737
 					<tr>
738 738
 						<td><?php echo $plugin_name; ?></td>
739 739
 						<td class="help">&nbsp;</td>
740
-						<td><?php echo sprintf( _x( 'by %s', 'by author', 'give' ), $author_name ) . ' &ndash; ' . esc_html( $mu_plugin_data['Version'] ); ?></td>
740
+						<td><?php echo sprintf(_x('by %s', 'by author', 'give'), $author_name).' &ndash; '.esc_html($mu_plugin_data['Version']); ?></td>
741 741
 					</tr>
742 742
 			<?php
743 743
 				}
@@ -750,53 +750,53 @@  discard block
 block discarded – undo
750 750
 <table class="give-status-table widefat" cellspacing="0">
751 751
 	<thead>
752 752
 		<tr>
753
-			<th colspan="3" data-export-label="Theme"><h2><?php _e( 'Theme', 'give' ); ?></h2></th>
753
+			<th colspan="3" data-export-label="Theme"><h2><?php _e('Theme', 'give'); ?></h2></th>
754 754
 		</tr>
755 755
 	</thead>
756 756
 	<?php
757
-	include_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
757
+	include_once(ABSPATH.'wp-admin/includes/theme-install.php');
758 758
 	$active_theme = wp_get_theme();
759 759
 	?>
760 760
 	<tbody>
761 761
 		<tr>
762
-			<td data-export-label="Name"><?php _e( 'Name', 'give' ); ?>:</td>
763
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The name of the current active theme.', 'give' ) ); ?>"></span></td>
764
-			<td><?php echo esc_html( $active_theme->Name ); ?></td>
762
+			<td data-export-label="Name"><?php _e('Name', 'give'); ?>:</td>
763
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The name of the current active theme.', 'give')); ?>"></span></td>
764
+			<td><?php echo esc_html($active_theme->Name); ?></td>
765 765
 		</tr>
766 766
 		<tr>
767
-			<td data-export-label="Version"><?php _e( 'Version', 'give' ); ?>:</td>
768
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The installed version of the current active theme.', 'give' ) ); ?>"></span></td>
769
-			<td><?php echo esc_html( $active_theme->Version ); ?></td>
767
+			<td data-export-label="Version"><?php _e('Version', 'give'); ?>:</td>
768
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The installed version of the current active theme.', 'give')); ?>"></span></td>
769
+			<td><?php echo esc_html($active_theme->Version); ?></td>
770 770
 		</tr>
771 771
 		<tr>
772
-			<td data-export-label="Author URL"><?php _e( 'Author URL', 'give' ); ?>:</td>
773
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The theme developer\'s URL.', 'give' ) ); ?>"></span></td>
772
+			<td data-export-label="Author URL"><?php _e('Author URL', 'give'); ?>:</td>
773
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The theme developer\'s URL.', 'give')); ?>"></span></td>
774 774
 			<td><?php echo $active_theme->{'Author URI'}; ?></td>
775 775
 		</tr>
776 776
 		<tr>
777
-			<td data-export-label="Child Theme"><?php _e( 'Child Theme', 'give' ); ?>:</td>
778
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether the current theme is a child theme.', 'give' ) ); ?>"></span></td>
777
+			<td data-export-label="Child Theme"><?php _e('Child Theme', 'give'); ?>:</td>
778
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether the current theme is a child theme.', 'give')); ?>"></span></td>
779 779
 			<td><?php
780
-				echo is_child_theme() ? __( 'Yes', 'give' ) : __( 'No', 'give' ) . ' &ndash; ' . sprintf( __( 'If you\'re modifying Give on a parent theme you didn\'t build personally, then we recommend using a child theme. See: <a href="%s" target="_blank">How to Create a Child Theme</a>', 'give' ), 'https://codex.wordpress.org/Child_Themes' );
780
+				echo is_child_theme() ? __('Yes', 'give') : __('No', 'give').' &ndash; '.sprintf(__('If you\'re modifying Give on a parent theme you didn\'t build personally, then we recommend using a child theme. See: <a href="%s" target="_blank">How to Create a Child Theme</a>', 'give'), 'https://codex.wordpress.org/Child_Themes');
781 781
 				?></td>
782 782
 		</tr>
783 783
 		<?php
784
-		if( is_child_theme() ) {
785
-			$parent_theme = wp_get_theme( $active_theme->Template );
784
+		if (is_child_theme()) {
785
+			$parent_theme = wp_get_theme($active_theme->Template);
786 786
 		?>
787 787
 			<tr>
788
-				<td data-export-label="Parent Theme Name"><?php _e( 'Parent Theme Name', 'give' ); ?>:</td>
789
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The name of the parent theme.', 'give' ) ); ?>"></span></td>
790
-				<td><?php echo esc_html( $parent_theme->Name ); ?></td>
788
+				<td data-export-label="Parent Theme Name"><?php _e('Parent Theme Name', 'give'); ?>:</td>
789
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The name of the parent theme.', 'give')); ?>"></span></td>
790
+				<td><?php echo esc_html($parent_theme->Name); ?></td>
791 791
 			</tr>
792 792
 			<tr>
793
-				<td data-export-label="Parent Theme Version"><?php _e( 'Parent Theme Version', 'give' ); ?>:</td>
794
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The installed version of the parent theme.', 'give' ) ); ?>"></span></td>
795
-				<td><?php echo esc_html( $parent_theme->Version ); ?></td>
793
+				<td data-export-label="Parent Theme Version"><?php _e('Parent Theme Version', 'give'); ?>:</td>
794
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The installed version of the parent theme.', 'give')); ?>"></span></td>
795
+				<td><?php echo esc_html($parent_theme->Version); ?></td>
796 796
 			</tr>
797 797
 			<tr>
798
-				<td data-export-label="Parent Theme Author URL"><?php _e( 'Parent Theme Author URL', 'give' ); ?>:</td>
799
-				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The parent theme developers URL.', 'give' ) ); ?>"></span></td>
798
+				<td data-export-label="Parent Theme Author URL"><?php _e('Parent Theme Author URL', 'give'); ?>:</td>
799
+				<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The parent theme developers URL.', 'give')); ?>"></span></td>
800 800
 				<td><?php echo $parent_theme->{'Author URI'}; ?></td>
801 801
 			</tr>
802 802
 		<?php } ?>
Please login to merge, or discard this patch.