Completed
Pull Request — master (#1856)
by Mehul
17:11
created
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’ huh?', 'give' ), '1.0' );
286
+			_doing_it_wrong(__FUNCTION__, __('Cheatin’ 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’ huh?', 'give' ), '1.0' );
299
+			_doing_it_wrong(__FUNCTION__, __('Cheatin’ 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/gateways/paypal-standard.php 1 patch
Spacing   +173 added lines, -173 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,27 +45,27 @@  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
 	// Check payment.
55
-	if ( empty( $payment_id ) ) {
55
+	if (empty($payment_id)) {
56 56
 		// Record the error.
57
-		give_record_gateway_error( __( 'Payment Error', 'give' ), sprintf( /* translators: %s: payment data */
58
-		__( 'Payment creation failed before sending donor to PayPal. Payment data: %s', 'give' ), json_encode( $payment_data ) ), $payment_id );
57
+		give_record_gateway_error(__('Payment Error', 'give'), sprintf( /* translators: %s: payment data */
58
+		__('Payment creation failed before sending donor to PayPal. Payment data: %s', 'give'), json_encode($payment_data) ), $payment_id);
59 59
 		// Problems? Send back.
60
-		give_send_back_to_checkout( '?payment-mode=' . $payment_data['post_data']['give-gateway'] );
60
+		give_send_back_to_checkout('?payment-mode='.$payment_data['post_data']['give-gateway']);
61 61
 	}
62 62
 
63 63
 	// Redirect to PayPal.
64
-	wp_redirect( give_build_paypal_url( $payment_id, $payment_data ) );
64
+	wp_redirect(give_build_paypal_url($payment_id, $payment_data));
65 65
 	exit;
66 66
 }
67 67
 
68
-add_action( 'give_gateway_paypal', 'give_process_paypal_payment' );
68
+add_action('give_gateway_paypal', 'give_process_paypal_payment');
69 69
 
70 70
 /**
71 71
  * Listens for a PayPal IPN requests and then sends to the processing function.
@@ -75,17 +75,17 @@  discard block
 block discarded – undo
75 75
  */
76 76
 function give_listen_for_paypal_ipn() {
77 77
 	// Regular PayPal IPN
78
-	if ( isset( $_GET['give-listener'] ) && $_GET['give-listener'] == 'IPN' ) {
78
+	if (isset($_GET['give-listener']) && $_GET['give-listener'] == 'IPN') {
79 79
 		/**
80 80
 		 * Fires while verifying PayPal IPN
81 81
 		 *
82 82
 		 * @since 1.0
83 83
 		 */
84
-		do_action( 'give_verify_paypal_ipn' );
84
+		do_action('give_verify_paypal_ipn');
85 85
 	}
86 86
 }
87 87
 
88
-add_action( 'init', 'give_listen_for_paypal_ipn' );
88
+add_action('init', 'give_listen_for_paypal_ipn');
89 89
 
90 90
 /**
91 91
  * Process PayPal IPN
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 function give_process_paypal_ipn() {
97 97
 
98 98
 	// Check the request method is POST.
99
-	if ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
99
+	if (isset($_SERVER['REQUEST_METHOD']) && 'POST' !== $_SERVER['REQUEST_METHOD']) {
100 100
 		return;
101 101
 	}
102 102
 
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
 	$post_data = '';
105 105
 
106 106
 	// Fallback just in case post_max_size is lower than needed.
107
-	if ( ini_get( 'allow_url_fopen' ) ) {
108
-		$post_data = file_get_contents( 'php://input' );
107
+	if (ini_get('allow_url_fopen')) {
108
+		$post_data = file_get_contents('php://input');
109 109
 	} else {
110 110
 		// If allow_url_fopen is not enabled, then make sure that post_max_size is large enough.
111
-		ini_set( 'post_max_size', '12M' );
111
+		ini_set('post_max_size', '12M');
112 112
 	}
113 113
 	// Start the encoded data collection with notification command.
114 114
 	$encoded_data = 'cmd=_notify-validate';
@@ -117,39 +117,39 @@  discard block
 block discarded – undo
117 117
 	$arg_separator = give_get_php_arg_separator_output();
118 118
 
119 119
 	// Verify there is a post_data.
120
-	if ( $post_data || strlen( $post_data ) > 0 ) {
120
+	if ($post_data || strlen($post_data) > 0) {
121 121
 		// Append the data.
122
-		$encoded_data .= $arg_separator . $post_data;
122
+		$encoded_data .= $arg_separator.$post_data;
123 123
 	} else {
124 124
 		// Check if POST is empty.
125
-		if ( empty( $_POST ) ) {
125
+		if (empty($_POST)) {
126 126
 			// Nothing to do.
127 127
 			return;
128 128
 		} else {
129 129
 			// Loop through each POST.
130
-			foreach ( $_POST as $key => $value ) {
130
+			foreach ($_POST as $key => $value) {
131 131
 				// Encode the value and append the data.
132
-				$encoded_data .= $arg_separator . "$key=" . urlencode( $value );
132
+				$encoded_data .= $arg_separator."$key=".urlencode($value);
133 133
 			}
134 134
 		}
135 135
 	}
136 136
 
137 137
 	// Convert collected post data to an array.
138
-	parse_str( $encoded_data, $encoded_data_array );
138
+	parse_str($encoded_data, $encoded_data_array);
139 139
 
140
-	foreach ( $encoded_data_array as $key => $value ) {
140
+	foreach ($encoded_data_array as $key => $value) {
141 141
 
142
-		if ( false !== strpos( $key, 'amp;' ) ) {
143
-			$new_key = str_replace( '&', '&', $key );
144
-			$new_key = str_replace( 'amp;', '&', $new_key );
142
+		if (false !== strpos($key, 'amp;')) {
143
+			$new_key = str_replace('&', '&', $key);
144
+			$new_key = str_replace('amp;', '&', $new_key);
145 145
 
146
-			unset( $encoded_data_array[ $key ] );
147
-			$encoded_data_array[ $new_key ] = $value;
146
+			unset($encoded_data_array[$key]);
147
+			$encoded_data_array[$new_key] = $value;
148 148
 		}
149 149
 	}
150 150
 
151 151
 	// Validate IPN request w/ PayPal if user hasn't disabled this security measure.
152
-	if ( give_is_setting_enabled( give_get_option( 'paypal_verification' ) ) ) {
152
+	if (give_is_setting_enabled(give_get_option('paypal_verification'))) {
153 153
 
154 154
 		$remote_post_vars = array(
155 155
 			'method'      => 'POST',
@@ -169,25 +169,25 @@  discard block
 block discarded – undo
169 169
 		);
170 170
 
171 171
 		// Validate the IPN.
172
-		$api_response = wp_remote_post( give_get_paypal_redirect(), $remote_post_vars );
172
+		$api_response = wp_remote_post(give_get_paypal_redirect(), $remote_post_vars);
173 173
 
174
-		if ( is_wp_error( $api_response ) ) {
175
-			give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
176
-			__( 'Invalid IPN verification response. IPN data: %s', 'give' ), json_encode( $api_response ) ) );
174
+		if (is_wp_error($api_response)) {
175
+			give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
176
+			__('Invalid IPN verification response. IPN data: %s', 'give'), json_encode($api_response) ));
177 177
 
178 178
 			return; // Something went wrong
179 179
 		}
180 180
 
181
-		if ( 'VERIFIED' !== $api_response['body'] ) {
182
-			give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
183
-			__( 'Invalid IPN verification response. IPN data: %s', 'give' ), json_encode( $api_response ) ) );
181
+		if ('VERIFIED' !== $api_response['body']) {
182
+			give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
183
+			__('Invalid IPN verification response. IPN data: %s', 'give'), json_encode($api_response) ));
184 184
 
185 185
 			return; // Response not okay.
186 186
 		}
187 187
 	}// End if().
188 188
 
189 189
 	// Check if $post_data_array has been populated.
190
-	if ( ! is_array( $encoded_data_array ) && ! empty( $encoded_data_array ) ) {
190
+	if ( ! is_array($encoded_data_array) && ! empty($encoded_data_array)) {
191 191
 		return;
192 192
 	}
193 193
 
@@ -196,28 +196,28 @@  discard block
 block discarded – undo
196 196
 		'payment_status' => '',
197 197
 	);
198 198
 
199
-	$encoded_data_array = wp_parse_args( $encoded_data_array, $defaults );
199
+	$encoded_data_array = wp_parse_args($encoded_data_array, $defaults);
200 200
 
201
-	$payment_id = isset( $encoded_data_array['custom'] ) ? absint( $encoded_data_array['custom'] ) : 0;
201
+	$payment_id = isset($encoded_data_array['custom']) ? absint($encoded_data_array['custom']) : 0;
202 202
 	$txn_type   = $encoded_data_array['txn_type'];
203 203
 
204 204
 	// Check for PayPal IPN Notifications and update data based on it.
205
-	$current_timestamp = current_time( 'timestamp' );
205
+	$current_timestamp = current_time('timestamp');
206 206
 	$paypal_ipn_vars = array(
207
-		'auth_status'    => ( $api_response['body'] ) ? $api_response['body'] : 'N/A',
207
+		'auth_status'    => ($api_response['body']) ? $api_response['body'] : 'N/A',
208 208
 		'transaction_id' => $encoded_data_array['txn_id'],
209 209
 		'payment_id'     => $payment_id,
210 210
 	);
211
-	update_option( 'give_last_paypal_ipn_received', $paypal_ipn_vars );
212
-	give_insert_payment_note( $payment_id, sprintf(
213
-				__( 'Last IPN received on %s at %s', 'give' ),
214
-				date_i18n( 'm/d/Y', $current_timestamp ),
215
-				date_i18n( 'H:i', $current_timestamp )
211
+	update_option('give_last_paypal_ipn_received', $paypal_ipn_vars);
212
+	give_insert_payment_note($payment_id, sprintf(
213
+				__('Last IPN received on %s at %s', 'give'),
214
+				date_i18n('m/d/Y', $current_timestamp),
215
+				date_i18n('H:i', $current_timestamp)
216 216
 			)
217 217
 	);
218
-	give_update_meta( $payment_id, 'give_last_paypal_ipn_received', $current_timestamp );
218
+	give_update_meta($payment_id, 'give_last_paypal_ipn_received', $current_timestamp);
219 219
 
220
-	if ( has_action( 'give_paypal_' . $txn_type ) ) {
220
+	if (has_action('give_paypal_'.$txn_type)) {
221 221
 		/**
222 222
 		 * Fires while processing PayPal IPN $txn_type.
223 223
 		 *
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 		 * @param array $encoded_data_array Encoded data.
229 229
 		 * @param int   $payment_id         Payment id.
230 230
 		 */
231
-		do_action( "give_paypal_{$txn_type}", $encoded_data_array, $payment_id );
231
+		do_action("give_paypal_{$txn_type}", $encoded_data_array, $payment_id);
232 232
 	} else {
233 233
 		/**
234 234
 		 * Fires while process PayPal IPN.
@@ -240,12 +240,12 @@  discard block
 block discarded – undo
240 240
 		 * @param array $encoded_data_array Encoded data.
241 241
 		 * @param int   $payment_id         Payment id.
242 242
 		 */
243
-		do_action( 'give_paypal_web_accept', $encoded_data_array, $payment_id );
243
+		do_action('give_paypal_web_accept', $encoded_data_array, $payment_id);
244 244
 	}
245 245
 	exit;
246 246
 }
247 247
 
248
-add_action( 'give_verify_paypal_ipn', 'give_process_paypal_ipn' );
248
+add_action('give_verify_paypal_ipn', 'give_process_paypal_ipn');
249 249
 
250 250
 /**
251 251
  * Process web accept (one time) payment IPNs.
@@ -257,99 +257,99 @@  discard block
 block discarded – undo
257 257
  *
258 258
  * @return void
259 259
  */
260
-function give_process_paypal_web_accept( $data, $payment_id ) {
260
+function give_process_paypal_web_accept($data, $payment_id) {
261 261
 
262 262
 	// Only allow through these transaction types.
263
-	if ( 'web_accept' !== $data['txn_type'] && 'cart' !== $data['txn_type'] && 'refunded' !== strtolower( $data['payment_status'] ) ) {
263
+	if ('web_accept' !== $data['txn_type'] && 'cart' !== $data['txn_type'] && 'refunded' !== strtolower($data['payment_status'])) {
264 264
 		return;
265 265
 	}
266 266
 
267 267
 	// Need $payment_id to continue.
268
-	if ( empty( $payment_id ) ) {
268
+	if (empty($payment_id)) {
269 269
 		return;
270 270
 	}
271 271
 
272 272
 	// Collect donation payment details.
273 273
 	$paypal_amount  = $data['mc_gross'];
274
-	$payment_status = strtolower( $data['payment_status'] );
275
-	$currency_code  = strtolower( $data['mc_currency'] );
276
-	$business_email = isset( $data['business'] ) && is_email( $data['business'] ) ? trim( $data['business'] ) : trim( $data['receiver_email'] );
277
-	$payment_meta   = give_get_payment_meta( $payment_id );
274
+	$payment_status = strtolower($data['payment_status']);
275
+	$currency_code  = strtolower($data['mc_currency']);
276
+	$business_email = isset($data['business']) && is_email($data['business']) ? trim($data['business']) : trim($data['receiver_email']);
277
+	$payment_meta   = give_get_payment_meta($payment_id);
278 278
 
279 279
 	// Must be a PayPal standard IPN.
280
-	if ( 'paypal' !== give_get_payment_gateway( $payment_id ) ) {
280
+	if ('paypal' !== give_get_payment_gateway($payment_id)) {
281 281
 		return;
282 282
 	}
283 283
 
284 284
 	// Verify payment recipient
285
-	if ( strcasecmp( $business_email, trim( give_get_option( 'paypal_email' ) ) ) !== 0 ) {
285
+	if (strcasecmp($business_email, trim(give_get_option('paypal_email'))) !== 0) {
286 286
 
287
-		give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
288
-		__( 'Invalid business email in IPN response. IPN data: %s', 'give' ), json_encode( $data ) ), $payment_id );
289
-		give_update_payment_status( $payment_id, 'failed' );
290
-		give_insert_payment_note( $payment_id, __( 'Payment failed due to invalid PayPal business email.', 'give' ) );
287
+		give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
288
+		__('Invalid business email in IPN response. IPN data: %s', 'give'), json_encode($data) ), $payment_id);
289
+		give_update_payment_status($payment_id, 'failed');
290
+		give_insert_payment_note($payment_id, __('Payment failed due to invalid PayPal business email.', 'give'));
291 291
 
292 292
 		return;
293 293
 	}
294 294
 
295 295
 	// Verify payment currency.
296
-	if ( $currency_code !== strtolower( $payment_meta['currency'] ) ) {
296
+	if ($currency_code !== strtolower($payment_meta['currency'])) {
297 297
 
298
-		give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
299
-		__( 'Invalid currency in IPN response. IPN data: %s', 'give' ), json_encode( $data ) ), $payment_id );
300
-		give_update_payment_status( $payment_id, 'failed' );
301
-		give_insert_payment_note( $payment_id, __( 'Payment failed due to invalid currency in PayPal IPN.', 'give' ) );
298
+		give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
299
+		__('Invalid currency in IPN response. IPN data: %s', 'give'), json_encode($data) ), $payment_id);
300
+		give_update_payment_status($payment_id, 'failed');
301
+		give_insert_payment_note($payment_id, __('Payment failed due to invalid currency in PayPal IPN.', 'give'));
302 302
 
303 303
 		return;
304 304
 	}
305 305
 
306 306
 	// Process refunds & reversed.
307
-	if ( 'refunded' === $payment_status || 'reversed' === $payment_status ) {
308
-		give_process_paypal_refund( $data, $payment_id );
307
+	if ('refunded' === $payment_status || 'reversed' === $payment_status) {
308
+		give_process_paypal_refund($data, $payment_id);
309 309
 
310 310
 		return;
311 311
 	}
312 312
 
313 313
 	// Only complete payments once.
314
-	if ( 'publish' === get_post_status( $payment_id ) ) {
314
+	if ('publish' === get_post_status($payment_id)) {
315 315
 		return;
316 316
 	}
317 317
 
318 318
 	// Retrieve the total donation amount (before PayPal).
319
-	$payment_amount = give_get_payment_amount( $payment_id );
319
+	$payment_amount = give_get_payment_amount($payment_id);
320 320
 
321 321
 	// Check that the donation PP and local db amounts match.
322
-	if ( number_format( (float) $paypal_amount, 2 ) < number_format( (float) $payment_amount, 2 ) ) {
322
+	if (number_format((float) $paypal_amount, 2) < number_format((float) $payment_amount, 2)) {
323 323
 		// The prices don't match
324
-		give_record_gateway_error( __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */
325
-		__( 'Invalid payment amount in IPN response. IPN data: %s', 'give' ), json_encode( $data ) ), $payment_id );
326
-		give_update_payment_status( $payment_id, 'failed' );
327
-		give_insert_payment_note( $payment_id, __( 'Payment failed due to invalid amount in PayPal IPN.', 'give' ) );
324
+		give_record_gateway_error(__('IPN Error', 'give'), sprintf( /* translators: %s: Paypal IPN response */
325
+		__('Invalid payment amount in IPN response. IPN data: %s', 'give'), json_encode($data) ), $payment_id);
326
+		give_update_payment_status($payment_id, 'failed');
327
+		give_insert_payment_note($payment_id, __('Payment failed due to invalid amount in PayPal IPN.', 'give'));
328 328
 
329 329
 		return;
330 330
 	}
331 331
 
332 332
 	// Process completed donations.
333
-	if ( 'completed' === $payment_status || give_is_test_mode() ) {
333
+	if ('completed' === $payment_status || give_is_test_mode()) {
334 334
 
335
-		give_insert_payment_note( $payment_id, sprintf( /* translators: %s: Paypal transaction ID */
336
-		__( 'PayPal Transaction ID: %s', 'give' ), $data['txn_id'] ) );
337
-		give_set_payment_transaction_id( $payment_id, $data['txn_id'] );
338
-		give_update_payment_status( $payment_id, 'publish' );
335
+		give_insert_payment_note($payment_id, sprintf( /* translators: %s: Paypal transaction ID */
336
+		__('PayPal Transaction ID: %s', 'give'), $data['txn_id'] ));
337
+		give_set_payment_transaction_id($payment_id, $data['txn_id']);
338
+		give_update_payment_status($payment_id, 'publish');
339 339
 
340
-	} elseif ( 'pending' === $payment_status && isset( $data['pending_reason'] ) ) {
340
+	} elseif ('pending' === $payment_status && isset($data['pending_reason'])) {
341 341
 
342 342
 		// Look for possible pending reasons, such as an echeck.
343
-		$note = give_paypal_get_pending_donation_note( strtolower( $data['pending_reason'] ) );
343
+		$note = give_paypal_get_pending_donation_note(strtolower($data['pending_reason']));
344 344
 
345
-		if ( ! empty( $note ) ) {
346
-			give_insert_payment_note( $payment_id, $note );
345
+		if ( ! empty($note)) {
346
+			give_insert_payment_note($payment_id, $note);
347 347
 		}
348 348
 	}
349 349
 
350 350
 }
351 351
 
352
-add_action( 'give_paypal_web_accept', 'give_process_paypal_web_accept', 10, 2 );
352
+add_action('give_paypal_web_accept', 'give_process_paypal_web_accept', 10, 2);
353 353
 
354 354
 /**
355 355
  * Process PayPal IPN Refunds
@@ -361,35 +361,35 @@  discard block
 block discarded – undo
361 361
  *
362 362
  * @return void
363 363
  */
364
-function give_process_paypal_refund( $data, $payment_id = 0 ) {
364
+function give_process_paypal_refund($data, $payment_id = 0) {
365 365
 
366 366
 	// Collect payment details.
367
-	if ( empty( $payment_id ) ) {
367
+	if (empty($payment_id)) {
368 368
 		return;
369 369
 	}
370 370
 
371 371
 	// Only refund payments once.
372
-	if ( 'refunded' === get_post_status( $payment_id ) ) {
372
+	if ('refunded' === get_post_status($payment_id)) {
373 373
 		return;
374 374
 	}
375 375
 
376
-	$payment_amount = give_get_payment_amount( $payment_id );
376
+	$payment_amount = give_get_payment_amount($payment_id);
377 377
 	$refund_amount  = $data['payment_gross'] * - 1;
378 378
 
379
-	if ( number_format( (float) $refund_amount, 2 ) < number_format( (float) $payment_amount, 2 ) ) {
379
+	if (number_format((float) $refund_amount, 2) < number_format((float) $payment_amount, 2)) {
380 380
 
381
-		give_insert_payment_note( $payment_id, sprintf( /* translators: %s: Paypal parent transaction ID */
382
-		__( 'Partial PayPal refund processed: %s', 'give' ), $data['parent_txn_id'] ) );
381
+		give_insert_payment_note($payment_id, sprintf( /* translators: %s: Paypal parent transaction ID */
382
+		__('Partial PayPal refund processed: %s', 'give'), $data['parent_txn_id'] ));
383 383
 
384 384
 		return; // This is a partial refund
385 385
 
386 386
 	}
387 387
 
388
-	give_insert_payment_note( $payment_id, sprintf( /* translators: 1: Paypal parent transaction ID 2. Paypal reason code */
389
-	__( 'PayPal Payment #%1$s Refunded for reason: %2$s', 'give' ), $data['parent_txn_id'], $data['reason_code'] ) );
390
-	give_insert_payment_note( $payment_id, sprintf( /* translators: %s: Paypal transaction ID */
391
-	__( 'PayPal Refund Transaction ID: %s', 'give' ), $data['txn_id'] ) );
392
-	give_update_payment_status( $payment_id, 'refunded' );
388
+	give_insert_payment_note($payment_id, sprintf( /* translators: 1: Paypal parent transaction ID 2. Paypal reason code */
389
+	__('PayPal Payment #%1$s Refunded for reason: %2$s', 'give'), $data['parent_txn_id'], $data['reason_code'] ));
390
+	give_insert_payment_note($payment_id, sprintf( /* translators: %s: Paypal transaction ID */
391
+	__('PayPal Refund Transaction ID: %s', 'give'), $data['txn_id'] ));
392
+	give_update_payment_status($payment_id, 'refunded');
393 393
 }
394 394
 
395 395
 /**
@@ -401,24 +401,24 @@  discard block
 block discarded – undo
401 401
  *
402 402
  * @return string
403 403
  */
404
-function give_get_paypal_redirect( $ssl_check = false ) {
404
+function give_get_paypal_redirect($ssl_check = false) {
405 405
 
406
-	if ( is_ssl() || ! $ssl_check ) {
406
+	if (is_ssl() || ! $ssl_check) {
407 407
 		$protocol = 'https://';
408 408
 	} else {
409 409
 		$protocol = 'http://';
410 410
 	}
411 411
 
412 412
 	// Check the current payment mode
413
-	if ( give_is_test_mode() ) {
413
+	if (give_is_test_mode()) {
414 414
 		// Test mode
415
-		$paypal_uri = $protocol . 'www.sandbox.paypal.com/cgi-bin/webscr';
415
+		$paypal_uri = $protocol.'www.sandbox.paypal.com/cgi-bin/webscr';
416 416
 	} else {
417 417
 		// Live mode
418
-		$paypal_uri = $protocol . 'www.paypal.com/cgi-bin/webscr';
418
+		$paypal_uri = $protocol.'www.paypal.com/cgi-bin/webscr';
419 419
 	}
420 420
 
421
-	return apply_filters( 'give_paypal_uri', $paypal_uri );
421
+	return apply_filters('give_paypal_uri', $paypal_uri);
422 422
 }
423 423
 
424 424
 /**
@@ -428,9 +428,9 @@  discard block
 block discarded – undo
428 428
  * @return string
429 429
  */
430 430
 function give_get_paypal_page_style() {
431
-	$page_style = trim( give_get_option( 'paypal_page_style', 'PayPal' ) );
431
+	$page_style = trim(give_get_option('paypal_page_style', 'PayPal'));
432 432
 
433
-	return apply_filters( 'give_paypal_page_style', $page_style );
433
+	return apply_filters('give_paypal_page_style', $page_style);
434 434
 }
435 435
 
436 436
 /**
@@ -444,26 +444,26 @@  discard block
 block discarded – undo
444 444
  *
445 445
  * @return string
446 446
  */
447
-function give_paypal_success_page_content( $content ) {
447
+function give_paypal_success_page_content($content) {
448 448
 
449
-	if ( ! isset( $_GET['payment-id'] ) && ! give_get_purchase_session() ) {
449
+	if ( ! isset($_GET['payment-id']) && ! give_get_purchase_session()) {
450 450
 		return $content;
451 451
 	}
452 452
 
453
-	$payment_id = isset( $_GET['payment-id'] ) ? absint( $_GET['payment-id'] ) : false;
453
+	$payment_id = isset($_GET['payment-id']) ? absint($_GET['payment-id']) : false;
454 454
 
455
-	if ( ! $payment_id ) {
455
+	if ( ! $payment_id) {
456 456
 		$session    = give_get_purchase_session();
457
-		$payment_id = give_get_purchase_id_by_key( $session['purchase_key'] );
457
+		$payment_id = give_get_purchase_id_by_key($session['purchase_key']);
458 458
 	}
459 459
 
460
-	$payment = get_post( $payment_id );
461
-	if ( $payment && 'pending' === $payment->post_status ) {
460
+	$payment = get_post($payment_id);
461
+	if ($payment && 'pending' === $payment->post_status) {
462 462
 
463 463
 		// Payment is still pending so show processing indicator to fix the race condition.
464 464
 		ob_start();
465 465
 
466
-		give_get_template_part( 'payment', 'processing' );
466
+		give_get_template_part('payment', 'processing');
467 467
 
468 468
 		$content = ob_get_clean();
469 469
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 
474 474
 }
475 475
 
476
-add_filter( 'give_payment_confirm_paypal', 'give_paypal_success_page_content' );
476
+add_filter('give_payment_confirm_paypal', 'give_paypal_success_page_content');
477 477
 
478 478
 /**
479 479
  * Given a Payment ID, extract the transaction ID
@@ -484,22 +484,22 @@  discard block
 block discarded – undo
484 484
  *
485 485
  * @return string                   Transaction ID
486 486
  */
487
-function give_paypal_get_payment_transaction_id( $payment_id ) {
487
+function give_paypal_get_payment_transaction_id($payment_id) {
488 488
 
489 489
 	$transaction_id = '';
490
-	$notes          = give_get_payment_notes( $payment_id );
490
+	$notes          = give_get_payment_notes($payment_id);
491 491
 
492
-	foreach ( $notes as $note ) {
493
-		if ( preg_match( '/^PayPal Transaction ID: ([^\s]+)/', $note->comment_content, $match ) ) {
492
+	foreach ($notes as $note) {
493
+		if (preg_match('/^PayPal Transaction ID: ([^\s]+)/', $note->comment_content, $match)) {
494 494
 			$transaction_id = $match[1];
495 495
 			continue;
496 496
 		}
497 497
 	}
498 498
 
499
-	return apply_filters( 'give_paypal_set_payment_transaction_id', $transaction_id, $payment_id );
499
+	return apply_filters('give_paypal_set_payment_transaction_id', $transaction_id, $payment_id);
500 500
 }
501 501
 
502
-add_filter( 'give_get_payment_transaction_id-paypal', 'give_paypal_get_payment_transaction_id', 10, 1 );
502
+add_filter('give_get_payment_transaction_id-paypal', 'give_paypal_get_payment_transaction_id', 10, 1);
503 503
 
504 504
 /**
505 505
  * Given a transaction ID, generate a link to the PayPal transaction ID details
@@ -511,16 +511,16 @@  discard block
 block discarded – undo
511 511
  *
512 512
  * @return string                 A link to the PayPal transaction details
513 513
  */
514
-function give_paypal_link_transaction_id( $transaction_id, $payment_id ) {
514
+function give_paypal_link_transaction_id($transaction_id, $payment_id) {
515 515
 
516 516
 	$paypal_base_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id=';
517
-	$transaction_url = '<a href="' . esc_url( $paypal_base_url . $transaction_id ) . '" target="_blank">' . $transaction_id . '</a>';
517
+	$transaction_url = '<a href="'.esc_url($paypal_base_url.$transaction_id).'" target="_blank">'.$transaction_id.'</a>';
518 518
 
519
-	return apply_filters( 'give_paypal_link_payment_details_transaction_id', $transaction_url );
519
+	return apply_filters('give_paypal_link_payment_details_transaction_id', $transaction_url);
520 520
 
521 521
 }
522 522
 
523
-add_filter( 'give_payment_details_transaction_id-paypal', 'give_paypal_link_transaction_id', 10, 2 );
523
+add_filter('give_payment_details_transaction_id-paypal', 'give_paypal_link_transaction_id', 10, 2);
524 524
 
525 525
 
526 526
 /**
@@ -532,64 +532,64 @@  discard block
 block discarded – undo
532 532
  *
533 533
  * @return string
534 534
  */
535
-function give_paypal_get_pending_donation_note( $pending_reason ) {
535
+function give_paypal_get_pending_donation_note($pending_reason) {
536 536
 
537 537
 	$note = '';
538 538
 
539
-	switch ( $pending_reason ) {
539
+	switch ($pending_reason) {
540 540
 
541 541
 		case 'echeck' :
542 542
 
543
-			$note = __( 'Payment made via eCheck and will clear automatically in 5-8 days.', 'give' );
543
+			$note = __('Payment made via eCheck and will clear automatically in 5-8 days.', 'give');
544 544
 
545 545
 			break;
546 546
 
547 547
 		case 'address' :
548 548
 
549
-			$note = __( 'Payment requires a confirmed donor address and must be accepted manually through PayPal.', 'give' );
549
+			$note = __('Payment requires a confirmed donor address and must be accepted manually through PayPal.', 'give');
550 550
 
551 551
 			break;
552 552
 
553 553
 		case 'intl' :
554 554
 
555
-			$note = __( 'Payment must be accepted manually through PayPal due to international account regulations.', 'give' );
555
+			$note = __('Payment must be accepted manually through PayPal due to international account regulations.', 'give');
556 556
 
557 557
 			break;
558 558
 
559 559
 		case 'multi-currency' :
560 560
 
561
-			$note = __( 'Payment received in non-shop currency and must be accepted manually through PayPal.', 'give' );
561
+			$note = __('Payment received in non-shop currency and must be accepted manually through PayPal.', 'give');
562 562
 
563 563
 			break;
564 564
 
565 565
 		case 'paymentreview' :
566 566
 		case 'regulatory_review' :
567 567
 
568
-			$note = __( 'Payment is being reviewed by PayPal staff as high-risk or in possible violation of government regulations.', 'give' );
568
+			$note = __('Payment is being reviewed by PayPal staff as high-risk or in possible violation of government regulations.', 'give');
569 569
 
570 570
 			break;
571 571
 
572 572
 		case 'unilateral' :
573 573
 
574
-			$note = __( 'Payment was sent to non-confirmed or non-registered email address.', 'give' );
574
+			$note = __('Payment was sent to non-confirmed or non-registered email address.', 'give');
575 575
 
576 576
 			break;
577 577
 
578 578
 		case 'upgrade' :
579 579
 
580
-			$note = __( 'PayPal account must be upgraded before this payment can be accepted.', 'give' );
580
+			$note = __('PayPal account must be upgraded before this payment can be accepted.', 'give');
581 581
 
582 582
 			break;
583 583
 
584 584
 		case 'verify' :
585 585
 
586
-			$note = __( 'PayPal account is not verified. Verify account in order to accept this donation.', 'give' );
586
+			$note = __('PayPal account is not verified. Verify account in order to accept this donation.', 'give');
587 587
 
588 588
 			break;
589 589
 
590 590
 		case 'other' :
591 591
 
592
-			$note = __( 'Payment is pending for unknown reasons. Contact PayPal support for assistance.', 'give' );
592
+			$note = __('Payment is pending for unknown reasons. Contact PayPal support for assistance.', 'give');
593 593
 
594 594
 			break;
595 595
 
@@ -607,49 +607,49 @@  discard block
 block discarded – undo
607 607
  *
608 608
  * @return mixed|string
609 609
  */
610
-function give_build_paypal_url( $payment_id, $payment_data ) {
610
+function give_build_paypal_url($payment_id, $payment_data) {
611 611
 	// Only send to PayPal if the pending payment is created successfully.
612
-	$listener_url = add_query_arg( 'give-listener', 'IPN', home_url( 'index.php' ) );
612
+	$listener_url = add_query_arg('give-listener', 'IPN', home_url('index.php'));
613 613
 
614 614
 	// Get the success url.
615
-	$return_url = add_query_arg( array(
615
+	$return_url = add_query_arg(array(
616 616
 		'payment-confirmation' => 'paypal',
617 617
 		'payment-id'           => $payment_id,
618 618
 
619
-	), get_permalink( give_get_option( 'success_page' ) ) );
619
+	), get_permalink(give_get_option('success_page')));
620 620
 
621 621
 	// Get the PayPal redirect uri.
622
-	$paypal_redirect = trailingslashit( give_get_paypal_redirect() ) . '?';
622
+	$paypal_redirect = trailingslashit(give_get_paypal_redirect()).'?';
623 623
 
624 624
 	// Item name.
625
-	$item_name = give_build_paypal_item_title( $payment_data );
625
+	$item_name = give_build_paypal_item_title($payment_data);
626 626
 
627 627
 	// Setup PayPal API params.
628 628
 	$paypal_args = array(
629
-		'business'      => give_get_option( 'paypal_email', false ),
629
+		'business'      => give_get_option('paypal_email', false),
630 630
 		'first_name'    => $payment_data['user_info']['first_name'],
631 631
 		'last_name'     => $payment_data['user_info']['last_name'],
632 632
 		'email'         => $payment_data['user_email'],
633 633
 		'invoice'       => $payment_data['purchase_key'],
634 634
 		'amount'        => $payment_data['price'],
635
-		'item_name'     => stripslashes( $item_name ),
635
+		'item_name'     => stripslashes($item_name),
636 636
 		'no_shipping'   => '1',
637 637
 		'shipping'      => '0',
638 638
 		'no_note'       => '1',
639 639
 		'currency_code' => give_get_currency(),
640
-		'charset'       => get_bloginfo( 'charset' ),
640
+		'charset'       => get_bloginfo('charset'),
641 641
 		'custom'        => $payment_id,
642 642
 		'rm'            => '2',
643 643
 		'return'        => $return_url,
644
-		'cancel_return' => give_get_failed_transaction_uri( '?payment-id=' . $payment_id ),
644
+		'cancel_return' => give_get_failed_transaction_uri('?payment-id='.$payment_id),
645 645
 		'notify_url'    => $listener_url,
646 646
 		'page_style'    => give_get_paypal_page_style(),
647
-		'cbt'           => get_bloginfo( 'name' ),
647
+		'cbt'           => get_bloginfo('name'),
648 648
 		'bn'            => 'givewp_SP',
649 649
 	);
650 650
 
651 651
 	// Add user address if present.
652
-	if ( ! empty( $payment_data['user_info']['address'] ) ) {
652
+	if ( ! empty($payment_data['user_info']['address'])) {
653 653
 		$default_address = array(
654 654
 			'line1'   => '',
655 655
 			'line2'   => '',
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
 			'country' => '',
660 660
 		);
661 661
 
662
-		$address = wp_parse_args( $payment_data['user_info']['address'], $default_address );
662
+		$address = wp_parse_args($payment_data['user_info']['address'], $default_address);
663 663
 
664 664
 		$paypal_args['address1'] = $address['line1'];
665 665
 		$paypal_args['address2'] = $address['line2'];
@@ -680,13 +680,13 @@  discard block
 block discarded – undo
680 680
 	 * @param array $paypal_args
681 681
 	 * @param array $payment_data
682 682
 	 */
683
-	$paypal_args = apply_filters( 'give_paypal_redirect_args', $paypal_args, $payment_data );
683
+	$paypal_args = apply_filters('give_paypal_redirect_args', $paypal_args, $payment_data);
684 684
 
685 685
 	// Build query.
686
-	$paypal_redirect .= http_build_query( $paypal_args );
686
+	$paypal_redirect .= http_build_query($paypal_args);
687 687
 
688 688
 	// Fix for some sites that encode the entities.
689
-	$paypal_redirect = str_replace( '&amp;', '&', $paypal_redirect );
689
+	$paypal_redirect = str_replace('&amp;', '&', $paypal_redirect);
690 690
 
691 691
 	return $paypal_redirect;
692 692
 }
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
 function give_get_paypal_button_type() {
702 702
 	// paypal_button_type can be donation or standard.
703 703
 	$paypal_button_type = '_donations';
704
-	if ( 'standard' === give_get_option( 'paypal_button_type' ) ) {
704
+	if ('standard' === give_get_option('paypal_button_type')) {
705 705
 		$paypal_button_type = '_xclick';
706 706
 	}
707 707
 
@@ -718,30 +718,30 @@  discard block
 block discarded – undo
718 718
  *
719 719
  * @return string
720 720
  */
721
-function give_build_paypal_item_title( $payment_data ) {
722
-	$form_id   = intval( $payment_data['post_data']['give-form-id'] );
721
+function give_build_paypal_item_title($payment_data) {
722
+	$form_id   = intval($payment_data['post_data']['give-form-id']);
723 723
 	$item_name = $payment_data['post_data']['give-form-title'];
724 724
 
725 725
 	// Verify has variable prices.
726
-	if ( give_has_variable_prices( $form_id ) && isset( $payment_data['post_data']['give-price-id'] ) ) {
726
+	if (give_has_variable_prices($form_id) && isset($payment_data['post_data']['give-price-id'])) {
727 727
 
728
-		$item_price_level_text = give_get_price_option_name( $form_id, $payment_data['post_data']['give-price-id'] );
729
-		$price_level_amount    = give_get_price_option_amount( $form_id, $payment_data['post_data']['give-price-id'] );
728
+		$item_price_level_text = give_get_price_option_name($form_id, $payment_data['post_data']['give-price-id']);
729
+		$price_level_amount    = give_get_price_option_amount($form_id, $payment_data['post_data']['give-price-id']);
730 730
 
731 731
 		// Donation given doesn't match selected level (must be a custom amount).
732
-		if ( $price_level_amount != give_sanitize_amount( $payment_data['price'] ) ) {
733
-			$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
732
+		if ($price_level_amount != give_sanitize_amount($payment_data['price'])) {
733
+			$custom_amount_text = give_get_meta($form_id, '_give_custom_amount_text', true);
734 734
 			// user custom amount text if any, fallback to default if not.
735
-			$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', __( 'Custom Amount', 'give' ) );
735
+			$item_name .= ' - '.give_check_variable($custom_amount_text, 'empty', __('Custom Amount', 'give'));
736 736
 
737
-		} elseif ( ! empty( $item_price_level_text ) ) {
738
-			$item_name .= ' - ' . $item_price_level_text;
737
+		} elseif ( ! empty($item_price_level_text)) {
738
+			$item_name .= ' - '.$item_price_level_text;
739 739
 		}
740 740
 	} // End if().
741
-	elseif ( give_get_form_price( $form_id ) !== give_sanitize_amount( $payment_data['price'] ) ) {
742
-		$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
741
+	elseif (give_get_form_price($form_id) !== give_sanitize_amount($payment_data['price'])) {
742
+		$custom_amount_text = give_get_meta($form_id, '_give_custom_amount_text', true);
743 743
 		// user custom amount text if any, fallback to default if not.
744
-		$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', __( 'Custom Amount', 'give' ) );
744
+		$item_name .= ' - '.give_check_variable($custom_amount_text, 'empty', __('Custom Amount', 'give'));
745 745
 	}
746 746
 
747 747
 	return $item_name;
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-system-info.php 1 patch
Spacing   +303 added lines, -303 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,117 +401,117 @@  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( __( 'Displays whether when last PayPal IPN is received with which donation or transaction.', '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(__('Displays whether when last PayPal IPN is received with which donation or transaction.', '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 ) {
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 503
 					$donation_id     = $last_paypal_ipn_received['payment_id'];
504
-					$ipn_timestamp   = give_get_meta( $donation_id, 'give_last_paypal_ipn_received', true );
505
-					$transaction_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id=' . $last_paypal_ipn_received['transaction_id'];
506
-					$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'];
504
+					$ipn_timestamp   = give_get_meta($donation_id, 'give_last_paypal_ipn_received', true);
505
+					$transaction_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id='.$last_paypal_ipn_received['transaction_id'];
506
+					$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'];
507 507
 					echo sprintf(
508
-							__( 'IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ) on %s at %s. Status %s', 'give' ),
508
+							__('IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ) on %s at %s. Status %s', 'give'),
509 509
 							$donation_url,
510 510
 							$donation_id,
511 511
 							$transaction_url,
512 512
 							$last_paypal_ipn_received['transaction_id'],
513
-							date_i18n( 'm/d/Y', $ipn_timestamp ),
514
-							date_i18n( 'H:i', $ipn_timestamp ),
513
+							date_i18n('m/d/Y', $ipn_timestamp),
514
+							date_i18n('H:i', $ipn_timestamp),
515 515
 							$last_paypal_ipn_received['auth_status']
516 516
 					);
517 517
 				} else {
@@ -521,14 +521,14 @@  discard block
 block discarded – undo
521 521
 			</td>
522 522
 		</tr>
523 523
 		<tr>
524
-			<td data-export-label="Admin Email Notifications"><?php _e( 'Admin Email Notifications', 'give' ); ?>:</td>
525
-			<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>
526
-			<td><?php echo 'enabled' === give_get_option( 'admin_notices' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
524
+			<td data-export-label="Admin Email Notifications"><?php _e('Admin Email Notifications', 'give'); ?>:</td>
525
+			<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>
526
+			<td><?php echo 'enabled' === give_get_option('admin_notices') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
527 527
 		</tr>
528 528
 		<tr>
529
-			<td data-export-label="Donor Email Access"><?php _e( 'Donor Email Access', 'give' ); ?>:</td>
530
-			<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>
531
-			<td><?php echo 'enabled' === give_get_option( 'email_access' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
529
+			<td data-export-label="Donor Email Access"><?php _e('Donor Email Access', 'give'); ?>:</td>
530
+			<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>
531
+			<td><?php echo 'enabled' === give_get_option('email_access') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
532 532
 		</tr>
533 533
 	</tbody>
534 534
 </table>
@@ -536,45 +536,45 @@  discard block
 block discarded – undo
536 536
 <table class="give-status-table widefat" cellspacing="0">
537 537
 	<thead>
538 538
 		<tr>
539
-			<th colspan="3" data-export-label="Session Configuration"><h2><?php _e( 'Session Configuration', 'give' ); ?></h2></th>
539
+			<th colspan="3" data-export-label="Session Configuration"><h2><?php _e('Session Configuration', 'give'); ?></h2></th>
540 540
 		</tr>
541 541
 	</thead>
542 542
 	<tbody>
543 543
 		<tr>
544
-			<td data-export-label="Give Use Sessions"><?php _e( 'Give Use Sessions', 'give' ); ?>:</td>
545
-			<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>
546
-			<td><?php echo defined( 'GIVE_USE_PHP_SESSIONS' ) && GIVE_USE_PHP_SESSIONS ? __( 'Enforced', 'give' ) : ( Give()->session->use_php_sessions() ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ) ); ?></td>
544
+			<td data-export-label="Give Use Sessions"><?php _e('Give Use Sessions', 'give'); ?>:</td>
545
+			<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>
546
+			<td><?php echo defined('GIVE_USE_PHP_SESSIONS') && GIVE_USE_PHP_SESSIONS ? __('Enforced', 'give') : (Give()->session->use_php_sessions() ? __('Enabled', 'give') : __('Disabled', 'give')); ?></td>
547 547
 		</tr>
548 548
 		<tr>
549
-			<td data-export-label="Session"><?php _e( 'Session', 'give' ); ?>:</td>
550
-			<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>
551
-			<td><?php echo isset( $_SESSION ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
549
+			<td data-export-label="Session"><?php _e('Session', 'give'); ?>:</td>
550
+			<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>
551
+			<td><?php echo isset($_SESSION) ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
552 552
 		</tr>
553
-		<?php if ( isset( $_SESSION ) ) { ?>
553
+		<?php if (isset($_SESSION)) { ?>
554 554
 			<tr>
555
-				<td data-export-label="Session Name"><?php _e( 'Session Name', 'give' ); ?>:</td>
556
-				<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>
557
-				<td><?php echo esc_html( ini_get( 'session.name' ) ); ?></td>
555
+				<td data-export-label="Session Name"><?php _e('Session Name', 'give'); ?>:</td>
556
+				<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>
557
+				<td><?php echo esc_html(ini_get('session.name')); ?></td>
558 558
 			</tr>
559 559
 			<tr>
560
-				<td data-export-label="Cookie Path"><?php _e( 'Cookie Path', 'give' ); ?>:</td>
561
-				<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>
562
-				<td><?php echo esc_html( ini_get( 'session.cookie_path' ) ); ?></td>
560
+				<td data-export-label="Cookie Path"><?php _e('Cookie Path', 'give'); ?>:</td>
561
+				<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>
562
+				<td><?php echo esc_html(ini_get('session.cookie_path')); ?></td>
563 563
 			</tr>
564 564
 			<tr>
565
-				<td data-export-label="Save Path"><?php _e( 'Save Path', 'give' ); ?>:</td>
566
-				<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>
567
-				<td><?php echo esc_html( ini_get( 'session.save_path' ) ); ?></td>
565
+				<td data-export-label="Save Path"><?php _e('Save Path', 'give'); ?>:</td>
566
+				<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>
567
+				<td><?php echo esc_html(ini_get('session.save_path')); ?></td>
568 568
 			</tr>
569 569
 			<tr>
570
-				<td data-export-label="Use Cookies"><?php _e( 'Use Cookies', 'give' ); ?>:</td>
571
-				<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>
572
-				<td><?php echo ini_get( 'session.use_cookies' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
570
+				<td data-export-label="Use Cookies"><?php _e('Use Cookies', 'give'); ?>:</td>
571
+				<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>
572
+				<td><?php echo ini_get('session.use_cookies') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
573 573
 			</tr>
574 574
 			<tr>
575
-				<td data-export-label="Use Only Cookies"><?php _e( 'Use Only Cookies', 'give' ); ?>:</td>
576
-				<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>
577
-				<td><?php echo ini_get( 'session.use_only_cookies' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
575
+				<td data-export-label="Use Only Cookies"><?php _e('Use Only Cookies', 'give'); ?>:</td>
576
+				<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>
577
+				<td><?php echo ini_get('session.use_only_cookies') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
578 578
 			</tr>
579 579
 		<?php } ?>
580 580
 	</tbody>
@@ -583,13 +583,13 @@  discard block
 block discarded – undo
583 583
 <table class="give-status-table widefat" cellspacing="0">
584 584
 	<thead>
585 585
 	<tr>
586
-		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e( 'Active Give Add-ons', 'give' ); ?></h2></th>
586
+		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e('Active Give Add-ons', 'give'); ?></h2></th>
587 587
 	</tr>
588 588
 	</thead>
589 589
 	<tbody>
590 590
 		<?php
591
-		foreach ( $plugins as $plugin_data ) {
592
-			if ( 'active' != $plugin_data['Status'] ||  'add-on' != $plugin_data['Type'] ) {
591
+		foreach ($plugins as $plugin_data) {
592
+			if ('active' != $plugin_data['Status'] || 'add-on' != $plugin_data['Type']) {
593 593
 				continue;
594 594
 			}
595 595
 
@@ -597,30 +597,30 @@  discard block
 block discarded – undo
597 597
 			$author_name = $plugin_data['Author'];
598 598
 
599 599
 			// Link the plugin name to the plugin URL if available.
600
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
601
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
600
+			if ( ! empty($plugin_data['PluginURI'])) {
601
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
602 602
 			}
603 603
 
604 604
 			// Link the author name to the author URL if available.
605
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
606
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
605
+			if ( ! empty($plugin_data['AuthorURI'])) {
606
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
607 607
 			}
608 608
 			?>
609 609
 			<tr>
610
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
610
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
611 611
 				<td class="help">&nbsp;</td>
612 612
 				<td>
613 613
 					<?php
614
-					if ( true === $plugin_data['License'] ) {
615
-						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> ' . __( 'Licensed', 'give' );
614
+					if (true === $plugin_data['License']) {
615
+						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> '.__('Licensed', 'give');
616 616
 					} else {
617
-						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> ' . __( 'Unlicensed', 'give' );
617
+						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> '.__('Unlicensed', 'give');
618 618
 					}
619 619
 
620 620
 					echo ' &ndash; '
621
-					     . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
621
+					     . sprintf(_x('by %s', 'by author', 'give'), wp_kses($author_name, wp_kses_allowed_html('post')))
622 622
 					     . ' &ndash; '
623
-					     . esc_html( $plugin_data['Version'] );
623
+					     . esc_html($plugin_data['Version']);
624 624
 					?>
625 625
 				</td>
626 626
 			</tr>
@@ -633,18 +633,18 @@  discard block
 block discarded – undo
633 633
 <table class="give-status-table widefat" cellspacing="0">
634 634
 	<thead>
635 635
 		<tr>
636
-			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e( 'Other Active Plugins', 'give' ); ?></h2></th>
636
+			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e('Other Active Plugins', 'give'); ?></h2></th>
637 637
 		</tr>
638 638
 	</thead>
639 639
 	<tbody>
640 640
 		<?php
641
-		foreach ( $plugins as $plugin_data ) {
642
-			if ( 'active' != $plugin_data['Status'] ||  'other' != $plugin_data['Type'] ) {
641
+		foreach ($plugins as $plugin_data) {
642
+			if ('active' != $plugin_data['Status'] || 'other' != $plugin_data['Type']) {
643 643
 				continue;
644 644
 			}
645 645
 
646 646
 			// Do not show Give core plugin.
647
-			if ( 'Give - Donation Plugin' === $plugin_data['Name'] ) {
647
+			if ('Give - Donation Plugin' === $plugin_data['Name']) {
648 648
 				continue;
649 649
 			}
650 650
 
@@ -652,19 +652,19 @@  discard block
 block discarded – undo
652 652
 			$author_name = $plugin_data['Author'];
653 653
 
654 654
 			// Link the plugin name to the plugin URL if available.
655
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
656
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
655
+			if ( ! empty($plugin_data['PluginURI'])) {
656
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
657 657
 			}
658 658
 
659 659
 			// Link the author name to the author URL if available.
660
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
661
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
660
+			if ( ! empty($plugin_data['AuthorURI'])) {
661
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
662 662
 			}
663 663
 			?>
664 664
 			<tr>
665
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
665
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
666 666
 				<td class="help">&nbsp;</td>
667
-				<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>
667
+				<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>
668 668
 			</tr>
669 669
 		<?php
670 670
 		}
@@ -675,13 +675,13 @@  discard block
 block discarded – undo
675 675
 <table class="give-status-table widefat" cellspacing="0">
676 676
 	<thead>
677 677
 		<tr>
678
-			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e( 'Inactive Plugins', 'give' ); ?></h2></th>
678
+			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e('Inactive Plugins', 'give'); ?></h2></th>
679 679
 		</tr>
680 680
 	</thead>
681 681
 	<tbody>
682 682
 		<?php
683
-		foreach ( $plugins as $plugin_data ) {
684
-			if ( 'inactive' != $plugin_data['Status'] ) {
683
+		foreach ($plugins as $plugin_data) {
684
+			if ('inactive' != $plugin_data['Status']) {
685 685
 				continue;
686 686
 			}
687 687
 
@@ -689,19 +689,19 @@  discard block
 block discarded – undo
689 689
 			$author_name = $plugin_data['Author'];
690 690
 
691 691
 			// Link the plugin name to the plugin URL if available.
692
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
693
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
692
+			if ( ! empty($plugin_data['PluginURI'])) {
693
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
694 694
 			}
695 695
 
696 696
 			// Link the author name to the author URL if available.
697
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
698
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
697
+			if ( ! empty($plugin_data['AuthorURI'])) {
698
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
699 699
 			}
700 700
 			?>
701 701
 			<tr>
702
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
702
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
703 703
 				<td class="help">&nbsp;</td>
704
-				<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>
704
+				<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>
705 705
 			</tr>
706 706
 			<?php
707 707
 		}
@@ -711,37 +711,37 @@  discard block
 block discarded – undo
711 711
 
712 712
 <?php
713 713
 $active_mu_plugins = (array) get_mu_plugins();
714
-if ( ! empty( $active_mu_plugins ) ) {
714
+if ( ! empty($active_mu_plugins)) {
715 715
 ?>
716 716
 	<table class="give-status-table widefat" cellspacing="0">
717 717
 		<thead>
718 718
 			<tr>
719
-				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e( 'Active MU Plugins', 'give' ); ?></h2></th>
719
+				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e('Active MU Plugins', 'give'); ?></h2></th>
720 720
 			</tr>
721 721
 		</thead>
722 722
 		<tbody>
723 723
 			<?php
724 724
 
725
-			foreach ( $active_mu_plugins as $mu_plugin_data ) {
726
-				if ( ! empty( $mu_plugin_data['Name'] ) ) {
725
+			foreach ($active_mu_plugins as $mu_plugin_data) {
726
+				if ( ! empty($mu_plugin_data['Name'])) {
727 727
 					// Link the plugin name to the plugin URL if available.
728
-					$plugin_name = esc_html( $mu_plugin_data['Name'] );
728
+					$plugin_name = esc_html($mu_plugin_data['Name']);
729 729
 
730
-					if ( ! empty( $mu_plugin_data['PluginURI'] ) ) {
731
-						$plugin_name = '<a href="' . esc_url( $mu_plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
730
+					if ( ! empty($mu_plugin_data['PluginURI'])) {
731
+						$plugin_name = '<a href="'.esc_url($mu_plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
732 732
 					}
733 733
 
734 734
 					// Link the author name to the author URL if available.
735
-					$author_name = esc_html( $mu_plugin_data['Author'] );
735
+					$author_name = esc_html($mu_plugin_data['Author']);
736 736
 
737
-					if ( ! empty( $mu_plugin_data['AuthorURI'] ) ) {
738
-						$author_name = '<a href="' . esc_url( $mu_plugin_data['AuthorURI'] ) . '">' . $author_name . '</a>';
737
+					if ( ! empty($mu_plugin_data['AuthorURI'])) {
738
+						$author_name = '<a href="'.esc_url($mu_plugin_data['AuthorURI']).'">'.$author_name.'</a>';
739 739
 					}
740 740
 					?>
741 741
 					<tr>
742 742
 						<td><?php echo $plugin_name; ?></td>
743 743
 						<td class="help">&nbsp;</td>
744
-						<td><?php echo sprintf( _x( 'by %s', 'by author', 'give' ), $author_name ) . ' &ndash; ' . esc_html( $mu_plugin_data['Version'] ); ?></td>
744
+						<td><?php echo sprintf(_x('by %s', 'by author', 'give'), $author_name).' &ndash; '.esc_html($mu_plugin_data['Version']); ?></td>
745 745
 					</tr>
746 746
 			<?php
747 747
 				}
@@ -754,53 +754,53 @@  discard block
 block discarded – undo
754 754
 <table class="give-status-table widefat" cellspacing="0">
755 755
 	<thead>
756 756
 		<tr>
757
-			<th colspan="3" data-export-label="Theme"><h2><?php _e( 'Theme', 'give' ); ?></h2></th>
757
+			<th colspan="3" data-export-label="Theme"><h2><?php _e('Theme', 'give'); ?></h2></th>
758 758
 		</tr>
759 759
 	</thead>
760 760
 	<?php
761
-	include_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
761
+	include_once(ABSPATH.'wp-admin/includes/theme-install.php');
762 762
 	$active_theme = wp_get_theme();
763 763
 	?>
764 764
 	<tbody>
765 765
 		<tr>
766
-			<td data-export-label="Name"><?php _e( 'Name', 'give' ); ?>:</td>
767
-			<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>
768
-			<td><?php echo esc_html( $active_theme->Name ); ?></td>
766
+			<td data-export-label="Name"><?php _e('Name', 'give'); ?>:</td>
767
+			<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>
768
+			<td><?php echo esc_html($active_theme->Name); ?></td>
769 769
 		</tr>
770 770
 		<tr>
771
-			<td data-export-label="Version"><?php _e( 'Version', 'give' ); ?>:</td>
772
-			<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>
773
-			<td><?php echo esc_html( $active_theme->Version ); ?></td>
771
+			<td data-export-label="Version"><?php _e('Version', 'give'); ?>:</td>
772
+			<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>
773
+			<td><?php echo esc_html($active_theme->Version); ?></td>
774 774
 		</tr>
775 775
 		<tr>
776
-			<td data-export-label="Author URL"><?php _e( 'Author URL', 'give' ); ?>:</td>
777
-			<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>
776
+			<td data-export-label="Author URL"><?php _e('Author URL', 'give'); ?>:</td>
777
+			<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>
778 778
 			<td><?php echo $active_theme->{'Author URI'}; ?></td>
779 779
 		</tr>
780 780
 		<tr>
781
-			<td data-export-label="Child Theme"><?php _e( 'Child Theme', 'give' ); ?>:</td>
782
-			<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>
781
+			<td data-export-label="Child Theme"><?php _e('Child Theme', 'give'); ?>:</td>
782
+			<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>
783 783
 			<td><?php
784
-				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' );
784
+				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');
785 785
 				?></td>
786 786
 		</tr>
787 787
 		<?php
788
-		if( is_child_theme() ) {
789
-			$parent_theme = wp_get_theme( $active_theme->Template );
788
+		if (is_child_theme()) {
789
+			$parent_theme = wp_get_theme($active_theme->Template);
790 790
 		?>
791 791
 			<tr>
792
-				<td data-export-label="Parent Theme Name"><?php _e( 'Parent Theme Name', 'give' ); ?>:</td>
793
-				<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>
794
-				<td><?php echo esc_html( $parent_theme->Name ); ?></td>
792
+				<td data-export-label="Parent Theme Name"><?php _e('Parent Theme Name', 'give'); ?>:</td>
793
+				<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>
794
+				<td><?php echo esc_html($parent_theme->Name); ?></td>
795 795
 			</tr>
796 796
 			<tr>
797
-				<td data-export-label="Parent Theme Version"><?php _e( 'Parent Theme Version', 'give' ); ?>:</td>
798
-				<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>
799
-				<td><?php echo esc_html( $parent_theme->Version ); ?></td>
797
+				<td data-export-label="Parent Theme Version"><?php _e('Parent Theme Version', 'give'); ?>:</td>
798
+				<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>
799
+				<td><?php echo esc_html($parent_theme->Version); ?></td>
800 800
 			</tr>
801 801
 			<tr>
802
-				<td data-export-label="Parent Theme Author URL"><?php _e( 'Parent Theme Author URL', 'give' ); ?>:</td>
803
-				<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>
802
+				<td data-export-label="Parent Theme Author URL"><?php _e('Parent Theme Author URL', 'give'); ?>:</td>
803
+				<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>
804 804
 				<td><?php echo $parent_theme->{'Author URI'}; ?></td>
805 805
 			</tr>
806 806
 		<?php } ?>
Please login to merge, or discard this patch.