Test Failed
Push — master ( 25adfe...70178c )
by Devin
01:46
created
includes/admin/upgrades/views/upgrades.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -18,33 +18,33 @@  discard block
 block discarded – undo
18 18
 ?>
19 19
 <div class="wrap" id="poststuff">
20 20
 	<div id="give-updates">
21
-		<h1 id="give-updates-h1"><?php esc_html_e( 'Give - Updates', 'give' ); ?></h1>
21
+		<h1 id="give-updates-h1"><?php esc_html_e('Give - Updates', 'give'); ?></h1>
22 22
 		<hr class="wp-header-end">
23 23
 
24 24
 		<div class="give-update-panel-content">
25
-			<p><?php printf( __( 'Give regularly receives new features, bug fixes, and enhancements. It is important to always stay up-to-date with latest version of Give core and its add-ons.  Please create a backup of your site before updating. To update add-ons be sure your <a href="%1$s">license keys</a> are activated.', 'give' ), 'https://givewp.com/my-account/' ); ?></p>
25
+			<p><?php printf(__('Give regularly receives new features, bug fixes, and enhancements. It is important to always stay up-to-date with latest version of Give core and its add-ons.  Please create a backup of your site before updating. To update add-ons be sure your <a href="%1$s">license keys</a> are activated.', 'give'), 'https://givewp.com/my-account/'); ?></p>
26 26
 		</div>
27 27
 
28 28
 		<?php $update_counter = 1; ?>
29 29
 
30 30
 		<?php $db_updates = $give_updates->get_db_update_count(); ?>
31
-		<?php if ( ! empty( $db_updates ) ) : ?>
32
-			<?php $db_update_url = add_query_arg( array(
31
+		<?php if ( ! empty($db_updates)) : ?>
32
+			<?php $db_update_url = add_query_arg(array(
33 33
 				'type' => 'database',
34
-			) ); ?>
34
+			)); ?>
35 35
 			<div id="give-db-updates">
36 36
 				<div class="postbox-container">
37 37
 					<div class="postbox">
38
-						<h2 class="hndle"><?php _e( 'Database Updates', 'give' ); ?></h2>
38
+						<h2 class="hndle"><?php _e('Database Updates', 'give'); ?></h2>
39 39
 						<div class="inside">
40 40
 							<div class="panel-content">
41
-								<p class="give-update-button"><?php echo sprintf( __( 'Give needs to update the database. <a href="%s">Update now</a>', 'give' ), $db_update_url ); ?></p>
41
+								<p class="give-update-button"><?php echo sprintf(__('Give needs to update the database. <a href="%s">Update now</a>', 'give'), $db_update_url); ?></p>
42 42
 							</div>
43 43
 							<div class="progress-container give-hidden">
44 44
 								<p class="update-message"
45 45
 								   data-update-count="<?php echo $db_updates; ?>"
46 46
 								   data-resume-update="<?php echo $give_updates->resume_updates(); ?>">
47
-									<strong><?php echo sprintf( __( 'Update 1 of %s', 'give' ), $db_updates ); ?></strong>
47
+									<strong><?php echo sprintf(__('Update 1 of %s', 'give'), $db_updates); ?></strong>
48 48
 								</p>
49 49
 								<div class="progress-content"></div>
50 50
 							</div>
@@ -61,17 +61,17 @@  discard block
 block discarded – undo
61 61
 		<?php endif; ?>
62 62
 
63 63
 		<?php $plugin_updates = $give_updates->get_plugin_update_count(); ?>
64
-		<?php if ( ! empty( $plugin_updates ) ) : ?>
65
-			<?php $plugin_update_url = add_query_arg( array(
64
+		<?php if ( ! empty($plugin_updates)) : ?>
65
+			<?php $plugin_update_url = add_query_arg(array(
66 66
 				's' => 'Give',
67
-			), admin_url( '/plugins.php' ) ); ?>
67
+			), admin_url('/plugins.php')); ?>
68 68
 			<div id="give-plugin-updates">
69 69
 				<div class="postbox-container">
70 70
 					<div class="postbox">
71
-						<h2 class="hndle"><?php _e( 'Add-on Updates', 'give' ); ?></h2>
71
+						<h2 class="hndle"><?php _e('Add-on Updates', 'give'); ?></h2>
72 72
 						<div class="inside">
73 73
 							<div class="panel-content">
74
-								<p><?php echo sprintf( __( 'There %1$s %2$s Give %3$s that %4$s to be updated. <a href="%5$s">Update now</a>', 'give' ), _n( 'is', 'are', $plugin_updates, 'give' ), $plugin_updates, _n( 'add-on', 'add-ons', $plugin_updates, 'give' ), _n( 'needs', 'need', $plugin_updates, 'give' ), $plugin_update_url  ); ?></p>
74
+								<p><?php echo sprintf(__('There %1$s %2$s Give %3$s that %4$s to be updated. <a href="%5$s">Update now</a>', 'give'), _n('is', 'are', $plugin_updates, 'give'), $plugin_updates, _n('add-on', 'add-ons', $plugin_updates, 'give'), _n('needs', 'need', $plugin_updates, 'give'), $plugin_update_url); ?></p>
75 75
 								<?php include_once 'plugins-update-section.php'; ?>
76 76
 							</div>
77 77
 						</div>
Please login to merge, or discard this patch.
includes/admin/payments/payments-history.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 */
26 26
 function give_payment_history_page() {
27 27
 
28
-	$give_payment = get_post_type_object( 'give_payment' );
28
+	$give_payment = get_post_type_object('give_payment');
29 29
 
30
-	if ( isset( $_GET['view'] ) && 'view-payment-details' == $_GET['view'] ) {
31
-		require_once GIVE_PLUGIN_DIR . 'includes/admin/payments/view-payment-details.php';
30
+	if (isset($_GET['view']) && 'view-payment-details' == $_GET['view']) {
31
+		require_once GIVE_PLUGIN_DIR.'includes/admin/payments/view-payment-details.php';
32 32
 	} else {
33
-		require_once GIVE_PLUGIN_DIR . 'includes/admin/payments/class-payments-table.php';
33
+		require_once GIVE_PLUGIN_DIR.'includes/admin/payments/class-payments-table.php';
34 34
 		$payments_table = new Give_Payment_History_Table();
35 35
 		$payments_table->prepare_items();
36 36
 	?>
@@ -44,18 +44,18 @@  discard block
 block discarded – undo
44 44
 		 *
45 45
 		 * @since 1.7
46 46
 		 */
47
-		do_action( 'give_payments_page_top' );
47
+		do_action('give_payments_page_top');
48 48
 		?>
49 49
 		<hr class="wp-header-end">
50 50
 
51
-		<form id="give-payments-advanced-filter" method="get" action="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-payment-history' ); ?>">
51
+		<form id="give-payments-advanced-filter" method="get" action="<?php echo admin_url('edit.php?post_type=give_forms&page=give-payment-history'); ?>">
52 52
 			<input type="hidden" name="post_type" value="give_forms" />
53 53
 			<input type="hidden" name="page" value="give-payment-history" />
54 54
 			<?php $payments_table->views() ?>
55 55
 			<?php $payments_table->advanced_filters(); ?>
56 56
 		</form>
57 57
 
58
-		<form id="give-payments-filter" method="get" action="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-payment-history' ); ?>">
58
+		<form id="give-payments-filter" method="get" action="<?php echo admin_url('edit.php?post_type=give_forms&page=give-payment-history'); ?>">
59 59
 			<input type="hidden" name="post_type" value="give_forms" />
60 60
 			<input type="hidden" name="page" value="give-payment-history" />
61 61
 			<?php $payments_table->display() ?>
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		 *
68 68
 		 * @since 1.7
69 69
 		 */
70
-		do_action( 'give_payments_page_bottom' );
70
+		do_action('give_payments_page_bottom');
71 71
 		?>
72 72
 
73 73
 	</div>
@@ -84,29 +84,29 @@  discard block
 block discarded – undo
84 84
  * @param $title
85 85
  * @return string
86 86
  */
87
-function give_view_order_details_title( $admin_title, $title ) {
87
+function give_view_order_details_title($admin_title, $title) {
88 88
 
89
-	if ( 'give_forms_page_give-payment-history' != get_current_screen()->base ) {
89
+	if ('give_forms_page_give-payment-history' != get_current_screen()->base) {
90 90
 		return $admin_title;
91 91
 	}
92 92
 
93
-	if( ! isset( $_GET['give-action'] ) ) {
93
+	if ( ! isset($_GET['give-action'])) {
94 94
 		return $admin_title;
95 95
 	}
96 96
 
97
-	switch( $_GET['give-action'] ) :
97
+	switch ($_GET['give-action']) :
98 98
 
99 99
 		case 'view-payment-details' :
100 100
 			$title = sprintf(
101 101
 				/* translators: %s: admin title */
102
-				esc_html__( 'View Donation Details - %s', 'give' ),
102
+				esc_html__('View Donation Details - %s', 'give'),
103 103
 				$admin_title
104 104
 			);
105 105
 			break;
106 106
 		case 'edit-payment' :
107 107
 			$title = sprintf(
108 108
 				/* translators: %s: admin title */
109
-				esc_html__( 'Edit Donation - %s', 'give' ),
109
+				esc_html__('Edit Donation - %s', 'give'),
110 110
 				$admin_title
111 111
 			);
112 112
 			break;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
 	return $title;
119 119
 }
120
-add_filter( 'admin_title', 'give_view_order_details_title', 10, 2 );
120
+add_filter('admin_title', 'give_view_order_details_title', 10, 2);
121 121
 
122 122
 /**
123 123
  * Intercept default Edit post links for Give payments and rewrite them to the View Order Details screen.
@@ -129,20 +129,20 @@  discard block
 block discarded – undo
129 129
  * @param $context
130 130
  * @return string
131 131
  */
132
-function give_override_edit_post_for_payment_link( $url, $post_id = 0, $context ) {
132
+function give_override_edit_post_for_payment_link($url, $post_id = 0, $context) {
133 133
 
134
-	$post = get_post( $post_id );
134
+	$post = get_post($post_id);
135 135
 
136
-	if( ! $post ) {
136
+	if ( ! $post) {
137 137
 		return $url;
138 138
 	}
139 139
 
140
-	if( 'give_payment' != $post->post_type ) {
140
+	if ('give_payment' != $post->post_type) {
141 141
 		return $url;
142 142
 	}
143 143
 
144
-	$url = admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $post_id );
144
+	$url = admin_url('edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id='.$post_id);
145 145
 
146 146
 	return $url;
147 147
 }
148
-add_filter( 'get_edit_post_link', 'give_override_edit_post_for_payment_link', 10, 3 );
148
+add_filter('get_edit_post_link', 'give_override_edit_post_for_payment_link', 10, 3);
Please login to merge, or discard this patch.
includes/admin/payments/view-payment-details.php 1 patch
Spacing   +146 added lines, -146 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -20,27 +20,27 @@  discard block
 block discarded – undo
20 20
  * @since 1.0
21 21
  * @return void
22 22
  */
23
-if ( ! isset( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
24
-	wp_die( esc_html__( 'Donation ID not supplied. Please try again.', 'give' ), esc_html__( 'Error', 'give' ), array( 'response' => 400 ) );
23
+if ( ! isset($_GET['id']) || ! is_numeric($_GET['id'])) {
24
+	wp_die(esc_html__('Donation ID not supplied. Please try again.', 'give'), esc_html__('Error', 'give'), array('response' => 400));
25 25
 }
26 26
 
27 27
 // Setup the variables
28
-$payment_id = absint( $_GET['id'] );
29
-$payment    = new Give_Payment( $payment_id );
28
+$payment_id = absint($_GET['id']);
29
+$payment    = new Give_Payment($payment_id);
30 30
 
31 31
 // Sanity check... fail if donation ID is invalid
32 32
 $payment_exists = $payment->ID;
33
-if ( empty( $payment_exists ) ) {
34
-	wp_die( esc_html__( 'The specified ID does not belong to a donation. Please try again.', 'give' ), esc_html__( 'Error', 'give' ), array( 'response' => 400 ) );
33
+if (empty($payment_exists)) {
34
+	wp_die(esc_html__('The specified ID does not belong to a donation. Please try again.', 'give'), esc_html__('Error', 'give'), array('response' => 400));
35 35
 }
36 36
 
37 37
 $number         = $payment->number;
38 38
 $payment_meta   = $payment->get_meta();
39
-$transaction_id = esc_attr( $payment->transaction_id );
39
+$transaction_id = esc_attr($payment->transaction_id);
40 40
 $user_id        = $payment->user_id;
41 41
 $donor_id       = $payment->customer_id;
42
-$payment_date   = strtotime( $payment->date );
43
-$user_info      = give_get_payment_meta_user_info( $payment_id );
42
+$payment_date   = strtotime($payment->date);
43
+$user_info      = give_get_payment_meta_user_info($payment_id);
44 44
 $address        = $payment->address;
45 45
 $currency_code  = $payment->currency;
46 46
 $gateway        = $payment->gateway;
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 	<h1 id="transaction-details-heading" class="wp-heading-inline"><?php
53 53
 		printf(
54 54
 			/* translators: %s: donation number */
55
-			esc_html__( 'Donation %s', 'give' ),
55
+			esc_html__('Donation %s', 'give'),
56 56
 			$number
57 57
 		);
58
-		if ( $payment_mode == 'test' ) {
59
-			echo '<span id="test-payment-label" class="give-item-label give-item-label-orange" data-tooltip="' . esc_attr__( 'This donation was made in test mode.', 'give' ) . '" data-tooltip-my-position="center left" data-tooltip-target-position="center right">' . esc_html__( 'Test Donation', 'give' ) . '</span>';
58
+		if ($payment_mode == 'test') {
59
+			echo '<span id="test-payment-label" class="give-item-label give-item-label-orange" data-tooltip="'.esc_attr__('This donation was made in test mode.', 'give').'" data-tooltip-my-position="center left" data-tooltip-target-position="center right">'.esc_html__('Test Donation', 'give').'</span>';
60 60
 		}
61 61
 		?></h1>
62 62
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 *
69 69
 	 * @param int $payment_id Payment id.
70 70
 	 */
71
-	do_action( 'give_view_order_details_before', $payment_id );
71
+	do_action('give_view_order_details_before', $payment_id);
72 72
 	?>
73 73
 
74 74
 	<hr class="wp-header-end">
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 		 *
83 83
 		 * @param int $payment_id Payment id.
84 84
 		 */
85
-		do_action( 'give_view_order_details_form_top', $payment_id );
85
+		do_action('give_view_order_details_form_top', $payment_id);
86 86
 		?>
87 87
 		<div id="poststuff">
88 88
 			<div id="give-dashboard-widgets-wrap">
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
 							 *
99 99
 							 * @param int $payment_id Payment id.
100 100
 							 */
101
-							do_action( 'give_view_order_details_sidebar_before', $payment_id );
101
+							do_action('give_view_order_details_sidebar_before', $payment_id);
102 102
 							?>
103 103
 
104 104
 							<div id="give-order-update" class="postbox give-order-data">
105 105
 
106
-								<h3 class="hndle"><?php esc_html_e( 'Update Donation', 'give' ); ?></h3>
106
+								<h3 class="hndle"><?php esc_html_e('Update Donation', 'give'); ?></h3>
107 107
 
108 108
 								<div class="inside">
109 109
 									<div class="give-admin-box">
@@ -116,33 +116,33 @@  discard block
 block discarded – undo
116 116
 										 *
117 117
 										 * @param int $payment_id Payment id.
118 118
 										 */
119
-										do_action( 'give_view_order_details_totals_before', $payment_id );
119
+										do_action('give_view_order_details_totals_before', $payment_id);
120 120
 										?>
121 121
 
122 122
 										<div class="give-admin-box-inside">
123 123
 											<p>
124
-												<label for="give-payment-status" class="strong"><?php esc_html_e( 'Status:', 'give' ); ?></label>&nbsp;
124
+												<label for="give-payment-status" class="strong"><?php esc_html_e('Status:', 'give'); ?></label>&nbsp;
125 125
 												<select id="give-payment-status" name="give-payment-status" class="medium-text">
126
-													<?php foreach ( give_get_payment_statuses() as $key => $status ) : ?>
127
-														<option value="<?php echo esc_attr( $key ); ?>"<?php selected( $payment->status, $key, true ); ?>><?php echo esc_html( $status ); ?></option>
126
+													<?php foreach (give_get_payment_statuses() as $key => $status) : ?>
127
+														<option value="<?php echo esc_attr($key); ?>"<?php selected($payment->status, $key, true); ?>><?php echo esc_html($status); ?></option>
128 128
 													<?php endforeach; ?>
129 129
 												</select>
130
-												<span class="give-donation-status status-<?php echo sanitize_title( $payment->status ); ?>"><span class="give-donation-status-icon"></span></span>
130
+												<span class="give-donation-status status-<?php echo sanitize_title($payment->status); ?>"><span class="give-donation-status-icon"></span></span>
131 131
 											</p>
132 132
 										</div>
133 133
 
134 134
 										<div class="give-admin-box-inside">
135 135
 											<p>
136
-												<label for="give-payment-date" class="strong"><?php esc_html_e( 'Date:', 'give' ); ?></label>&nbsp;
137
-												<input type="text" id="give-payment-date" name="give-payment-date" value="<?php echo esc_attr( date( 'm/d/Y', $payment_date ) ); ?>" class="medium-text give_datepicker"/>
136
+												<label for="give-payment-date" class="strong"><?php esc_html_e('Date:', 'give'); ?></label>&nbsp;
137
+												<input type="text" id="give-payment-date" name="give-payment-date" value="<?php echo esc_attr(date('m/d/Y', $payment_date)); ?>" class="medium-text give_datepicker"/>
138 138
 											</p>
139 139
 										</div>
140 140
 
141 141
 										<div class="give-admin-box-inside">
142 142
 											<p>
143
-												<label for="give-payment-time-hour" class="strong"><?php esc_html_e( 'Time:', 'give' ); ?></label>&nbsp;
144
-												<input type="number" step="1" max="24" id="give-payment-time-hour" name="give-payment-time-hour" value="<?php echo esc_attr( date_i18n( 'H', $payment_date ) ); ?>" class="small-text give-payment-time-hour"/>&nbsp;:&nbsp;
145
-												<input type="number" step="1" max="59" id="give-payment-time-min" name="give-payment-time-min" value="<?php echo esc_attr( date( 'i', $payment_date ) ); ?>" class="small-text give-payment-time-min"/>
143
+												<label for="give-payment-time-hour" class="strong"><?php esc_html_e('Time:', 'give'); ?></label>&nbsp;
144
+												<input type="number" step="1" max="24" id="give-payment-time-hour" name="give-payment-time-hour" value="<?php echo esc_attr(date_i18n('H', $payment_date)); ?>" class="small-text give-payment-time-hour"/>&nbsp;:&nbsp;
145
+												<input type="number" step="1" max="59" id="give-payment-time-min" name="give-payment-time-min" value="<?php echo esc_attr(date('i', $payment_date)); ?>" class="small-text give-payment-time-min"/>
146 146
 											</p>
147 147
 										</div>
148 148
 
@@ -156,13 +156,13 @@  discard block
 block discarded – undo
156 156
 										 *
157 157
 										 * @param int $payment_id Payment id.
158 158
 										 */
159
-										do_action( 'give_view_order_details_update_inner', $payment_id ); ?>
159
+										do_action('give_view_order_details_update_inner', $payment_id); ?>
160 160
 
161 161
 										<div class="give-order-payment give-admin-box-inside">
162 162
 											<p>
163
-												<label for="give-payment-total" class="strong"><?php esc_html_e( 'Total Donation:', 'give' ); ?></label>&nbsp;
164
-												<?php echo give_currency_symbol( $payment->currency ); ?>
165
-												&nbsp;<input id="give-payment-total" name="give-payment-total" type="text" class="small-text give-price-field" value="<?php echo esc_attr( give_format_decimal( give_get_payment_amount( $payment_id ), false, false ) ); ?>"/>
163
+												<label for="give-payment-total" class="strong"><?php esc_html_e('Total Donation:', 'give'); ?></label>&nbsp;
164
+												<?php echo give_currency_symbol($payment->currency); ?>
165
+												&nbsp;<input id="give-payment-total" name="give-payment-total" type="text" class="small-text give-price-field" value="<?php echo esc_attr(give_format_decimal(give_get_payment_amount($payment_id), false, false)); ?>"/>
166 166
 											</p>
167 167
 										</div>
168 168
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 										 *
175 175
 										 * @param int $payment_id Payment id.
176 176
 										 */
177
-										do_action( 'give_view_order_details_totals_after', $payment_id );
177
+										do_action('give_view_order_details_totals_after', $payment_id);
178 178
 										?>
179 179
 
180 180
 									</div>
@@ -192,17 +192,17 @@  discard block
 block discarded – undo
192 192
 									 *
193 193
 									 * @param int $payment_id Payment id.
194 194
 									 */
195
-									do_action( 'give_view_order_details_update_before', $payment_id );
195
+									do_action('give_view_order_details_update_before', $payment_id);
196 196
 									?>
197 197
 
198 198
 									<div id="major-publishing-actions">
199 199
 										<div id="publishing-action">
200
-											<input type="submit" class="button button-primary right" value="<?php esc_attr_e( 'Save Donation', 'give' ); ?>"/>
201
-											<?php if ( give_is_payment_complete( $payment_id ) ) : ?>
202
-												<a href="<?php echo esc_url( add_query_arg( array(
200
+											<input type="submit" class="button button-primary right" value="<?php esc_attr_e('Save Donation', 'give'); ?>"/>
201
+											<?php if (give_is_payment_complete($payment_id)) : ?>
202
+												<a href="<?php echo esc_url(add_query_arg(array(
203 203
 													'give-action' => 'email_links',
204 204
 													'purchase_id' => $payment_id,
205
-												) ) ); ?>" id="give-resend-receipt" class="button-secondary right"><?php esc_html_e( 'Resend Receipt', 'give' ); ?></a>
205
+												))); ?>" id="give-resend-receipt" class="button-secondary right"><?php esc_html_e('Resend Receipt', 'give'); ?></a>
206 206
 											<?php endif; ?>
207 207
 										</div>
208 208
 										<div class="clear"></div>
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 									 *
217 217
 									 * @param int $payment_id Payment id.
218 218
 									 */
219
-									do_action( 'give_view_order_details_update_after', $payment_id );
219
+									do_action('give_view_order_details_update_after', $payment_id);
220 220
 									?>
221 221
 
222 222
 								</div>
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
 							<div id="give-order-details" class="postbox give-order-data">
229 229
 
230
-								<h3 class="hndle"><?php esc_html_e( 'Donation Meta', 'give' ); ?></h3>
230
+								<h3 class="hndle"><?php esc_html_e('Donation Meta', 'give'); ?></h3>
231 231
 
232 232
 								<div class="inside">
233 233
 									<div class="give-admin-box">
@@ -240,44 +240,44 @@  discard block
 block discarded – undo
240 240
 										 *
241 241
 										 * @param int $payment_id Payment id.
242 242
 										 */
243
-										do_action( 'give_view_order_details_payment_meta_before', $payment_id );
243
+										do_action('give_view_order_details_payment_meta_before', $payment_id);
244 244
 
245
-										$gateway = give_get_payment_gateway( $payment_id );
246
-										if ( $gateway ) : ?>
245
+										$gateway = give_get_payment_gateway($payment_id);
246
+										if ($gateway) : ?>
247 247
 											<div class="give-order-gateway give-admin-box-inside">
248 248
 												<p>
249
-													<strong><?php esc_html_e( 'Gateway:', 'give' ); ?></strong>&nbsp;
250
-													<?php echo give_get_gateway_admin_label( $gateway ); ?>
249
+													<strong><?php esc_html_e('Gateway:', 'give'); ?></strong>&nbsp;
250
+													<?php echo give_get_gateway_admin_label($gateway); ?>
251 251
 												</p>
252 252
 											</div>
253 253
 										<?php endif; ?>
254 254
 
255 255
 										<div class="give-order-payment-key give-admin-box-inside">
256 256
 											<p>
257
-												<strong><?php esc_html_e( 'Key:', 'give' ); ?></strong>&nbsp;
258
-												<?php echo give_get_payment_key( $payment_id ); ?>
257
+												<strong><?php esc_html_e('Key:', 'give'); ?></strong>&nbsp;
258
+												<?php echo give_get_payment_key($payment_id); ?>
259 259
 											</p>
260 260
 										</div>
261 261
 
262 262
 										<div class="give-order-ip give-admin-box-inside">
263 263
 											<p>
264
-												<strong><?php esc_html_e( 'IP:', 'give' ); ?></strong>&nbsp;
265
-												<?php echo esc_html( give_get_payment_user_ip( $payment_id ) ); ?>
264
+												<strong><?php esc_html_e('IP:', 'give'); ?></strong>&nbsp;
265
+												<?php echo esc_html(give_get_payment_user_ip($payment_id)); ?>
266 266
 											</p>
267 267
 										</div>
268 268
 
269
-										<?php if ( $transaction_id ) : ?>
269
+										<?php if ($transaction_id) : ?>
270 270
 											<div class="give-order-tx-id give-admin-box-inside">
271 271
 												<p>
272
-													<strong><?php esc_html_e( 'Donation ID:', 'give' ); ?></strong>&nbsp;
273
-													<?php echo apply_filters( "give_payment_details_transaction_id-{$gateway}", $transaction_id, $payment_id ); ?>
272
+													<strong><?php esc_html_e('Donation ID:', 'give'); ?></strong>&nbsp;
273
+													<?php echo apply_filters("give_payment_details_transaction_id-{$gateway}", $transaction_id, $payment_id); ?>
274 274
 												</p>
275 275
 											</div>
276 276
 										<?php endif; ?>
277 277
 
278 278
 										<div class="give-admin-box-inside">
279
-											<p><?php $purchase_url = admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&donor=' . absint( give_get_payment_donor_id( $payment_id ) ) ); ?>
280
-												<a href="<?php echo $purchase_url; ?>"><?php esc_html_e( 'View all donations for this donor &raquo;', 'give' ); ?></a>
279
+											<p><?php $purchase_url = admin_url('edit.php?post_type=give_forms&page=give-payment-history&donor='.absint(give_get_payment_donor_id($payment_id))); ?>
280
+												<a href="<?php echo $purchase_url; ?>"><?php esc_html_e('View all donations for this donor &raquo;', 'give'); ?></a>
281 281
 											</p>
282 282
 										</div>
283 283
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 										 *
290 290
 										 * @param int $payment_id Payment id.
291 291
 										 */
292
-										do_action( 'give_view_order_details_payment_meta_after', $payment_id );
292
+										do_action('give_view_order_details_payment_meta_after', $payment_id);
293 293
 										?>
294 294
 
295 295
 									</div>
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 							 *
310 310
 							 * @param int $payment_id Payment id.
311 311
 							 */
312
-							do_action( 'give_view_order_details_sidebar_after', $payment_id );
312
+							do_action('give_view_order_details_sidebar_after', $payment_id);
313 313
 							?>
314 314
 
315 315
 						</div>
@@ -329,56 +329,56 @@  discard block
 block discarded – undo
329 329
 							 *
330 330
 							 * @param int $payment_id Payment id.
331 331
 							 */
332
-							do_action( 'give_view_order_details_main_before', $payment_id );
332
+							do_action('give_view_order_details_main_before', $payment_id);
333 333
 							?>
334 334
 
335 335
 							<?php $column_count = 'columns-3'; ?>
336 336
 							<div id="give-donation-overview" class="postbox <?php echo $column_count; ?>">
337
-								<h3 class="hndle"><?php esc_html_e( 'Donation Information', 'give' ); ?></h3>
337
+								<h3 class="hndle"><?php esc_html_e('Donation Information', 'give'); ?></h3>
338 338
 
339 339
 								<div class="inside">
340 340
 
341 341
 									<div class="column-container">
342 342
 										<div class="column">
343 343
 											<p>
344
-												<strong><?php esc_html_e( 'Donation Form ID:', 'give' ); ?></strong><br>
344
+												<strong><?php esc_html_e('Donation Form ID:', 'give'); ?></strong><br>
345 345
 												<?php
346
-												if ( $payment_meta['form_id'] ) :
346
+												if ($payment_meta['form_id']) :
347 347
 													printf(
348 348
 														'<a href="%1$s">#%2$s</a>',
349
-														admin_url( 'post.php?action=edit&post=' . $payment_meta['form_id'] ),
349
+														admin_url('post.php?action=edit&post='.$payment_meta['form_id']),
350 350
 														$payment_meta['form_id']
351 351
 													);
352 352
 												endif;
353 353
 												?>
354 354
 											</p>
355 355
 											<p>
356
-												<strong><?php esc_html_e( 'Donation Form Title:', 'give' ); ?></strong><br>
357
-												<?php echo Give()->html->forms_dropdown( array(
356
+												<strong><?php esc_html_e('Donation Form Title:', 'give'); ?></strong><br>
357
+												<?php echo Give()->html->forms_dropdown(array(
358 358
 													'selected' => $payment_meta['form_id'],
359 359
 													'name'   => 'give-payment-form-select',
360 360
 													'id'     => 'give-payment-form-select',
361 361
 													'chosen' => true,
362
-												) ); ?>
362
+												)); ?>
363 363
 											</p>
364 364
 										</div>
365 365
 										<div class="column">
366 366
 											<p>
367
-												<strong><?php esc_html_e( 'Donation Date:', 'give' ); ?></strong><br>
368
-												<?php echo date_i18n( give_date_format(), $payment_date ); ?>
367
+												<strong><?php esc_html_e('Donation Date:', 'give'); ?></strong><br>
368
+												<?php echo date_i18n(give_date_format(), $payment_date); ?>
369 369
 											</p>
370 370
 											<p>
371
-												<strong><?php esc_html_e( 'Donation Level:', 'give' ); ?></strong><br>
371
+												<strong><?php esc_html_e('Donation Level:', 'give'); ?></strong><br>
372 372
 												<span class="give-donation-level">
373 373
 													<?php
374
-													$var_prices = give_has_variable_prices( $payment_meta['form_id'] );
375
-													if ( empty( $var_prices ) ) {
376
-														esc_html_e( 'n/a', 'give' );
374
+													$var_prices = give_has_variable_prices($payment_meta['form_id']);
375
+													if (empty($var_prices)) {
376
+														esc_html_e('n/a', 'give');
377 377
 													} else {
378 378
 														$prices_atts = '';
379
-														if( $variable_prices = give_get_variable_prices( $payment_meta['form_id'] ) ) {
380
-															foreach ( $variable_prices as $variable_price ) {
381
-																$prices_atts[$variable_price['_give_id']['level_id']] = give_format_amount( $variable_price['_give_amount'], array( 'sanitize' => false ) );
379
+														if ($variable_prices = give_get_variable_prices($payment_meta['form_id'])) {
380
+															foreach ($variable_prices as $variable_price) {
381
+																$prices_atts[$variable_price['_give_id']['level_id']] = give_format_amount($variable_price['_give_amount'], array('sanitize' => false));
382 382
 															}
383 383
 														}
384 384
 														// Variable price dropdown options.
@@ -387,12 +387,12 @@  discard block
 block discarded – undo
387 387
 															'name'             => 'give-variable-price',
388 388
 															'chosen'           => true,
389 389
 															'show_option_all'  => '',
390
-															'show_option_none' => ( '' === get_post_meta( $payment_id, '_give_payment_price_id', true ) ? __( 'None', 'give' )  : '' ),
391
-															'select_atts'      => 'data-prices=' . esc_attr( json_encode( $prices_atts ) ),
390
+															'show_option_none' => ('' === get_post_meta($payment_id, '_give_payment_price_id', true) ? __('None', 'give') : ''),
391
+															'select_atts'      => 'data-prices='.esc_attr(json_encode($prices_atts)),
392 392
 															'selected'         => $payment_meta['price_id'],
393 393
 														);
394 394
 														// Render variable prices select tag html.
395
-														give_get_form_variable_price_dropdown( $variable_price_dropdown_option, true );
395
+														give_get_form_variable_price_dropdown($variable_price_dropdown_option, true);
396 396
 													}
397 397
 													?>
398 398
 												</span>
@@ -400,8 +400,8 @@  discard block
 block discarded – undo
400 400
 										</div>
401 401
 										<div class="column">
402 402
 											<p>
403
-												<strong><?php esc_html_e( 'Total Donation:', 'give' ); ?></strong><br>
404
-												<?php echo give_currency_filter( give_format_amount( $payment->total, array( 'sanitize' => false ) ), give_get_payment_currency_code( $payment->ID ) ); ?>
403
+												<strong><?php esc_html_e('Total Donation:', 'give'); ?></strong><br>
404
+												<?php echo give_currency_filter(give_format_amount($payment->total, array('sanitize' => false)), give_get_payment_currency_code($payment->ID)); ?>
405 405
 											</p>
406 406
 											<p>
407 407
 												<?php
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 												 *
415 415
 												 * @param int $payment_id Payment id.
416 416
 												 */
417
-												do_action( 'give_donation_details_thead_before', $payment_id );
417
+												do_action('give_donation_details_thead_before', $payment_id);
418 418
 
419 419
 
420 420
 												/**
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 												 *
427 427
 												 * @param int $payment_id Payment id.
428 428
 												 */
429
-												do_action( 'give_donation_details_thead_after', $payment_id );
429
+												do_action('give_donation_details_thead_after', $payment_id);
430 430
 
431 431
 												/**
432 432
 												 * Fires in order details page, in the donation-information metabox, before the body elements.
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 												 *
438 438
 												 * @param int $payment_id Payment id.
439 439
 												 */
440
-												do_action( 'give_donation_details_tbody_before', $payment_id );
440
+												do_action('give_donation_details_tbody_before', $payment_id);
441 441
 
442 442
 												/**
443 443
 												 * Fires in order details page, in the donation-information metabox, after the body elements.
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 												 *
449 449
 												 * @param int $payment_id Payment id.
450 450
 												 */
451
-												do_action( 'give_donation_details_tbody_after', $payment_id );
451
+												do_action('give_donation_details_tbody_after', $payment_id);
452 452
 												?>
453 453
 											</p>
454 454
 										</div>
@@ -468,67 +468,67 @@  discard block
 block discarded – undo
468 468
 							 *
469 469
 							 * @param int $payment_id Payment id.
470 470
 							 */
471
-							do_action( 'give_view_order_details_files_after', $payment_id );
471
+							do_action('give_view_order_details_files_after', $payment_id);
472 472
 							?>
473 473
 
474 474
 							<div id="give-donor-details" class="postbox">
475
-								<h3 class="hndle"><?php esc_html_e( 'Donor Details', 'give' ); ?></h3>
475
+								<h3 class="hndle"><?php esc_html_e('Donor Details', 'give'); ?></h3>
476 476
 
477 477
 								<div class="inside">
478 478
 
479
-									<?php $donor = new Give_Donor( $donor_id ); ?>
479
+									<?php $donor = new Give_Donor($donor_id); ?>
480 480
 
481 481
 									<div class="column-container donor-info">
482 482
 										<div class="column">
483 483
 											<p>
484
-												<strong><?php esc_html_e( 'Donor ID:', 'give' ); ?></strong><br>
484
+												<strong><?php esc_html_e('Donor ID:', 'give'); ?></strong><br>
485 485
 												<?php
486
-												if ( ! empty( $donor->id ) ) {
486
+												if ( ! empty($donor->id)) {
487 487
 													printf(
488 488
 														'<a href="%1$s">#%2$s</a>',
489
-														admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $donor->id ),
489
+														admin_url('edit.php?post_type=give_forms&page=give-donors&view=overview&id='.$donor->id),
490 490
 														$donor->id
491 491
 													);
492 492
 												}
493 493
 												?>
494 494
 											</p>
495 495
 											<p>
496
-												<strong><?php esc_html_e( 'Donor Since:', 'give' ); ?></strong><br>
497
-												<?php echo date_i18n( give_date_format(), strtotime( $donor->date_created ) ) ?>
496
+												<strong><?php esc_html_e('Donor Since:', 'give'); ?></strong><br>
497
+												<?php echo date_i18n(give_date_format(), strtotime($donor->date_created)) ?>
498 498
 											</p>
499 499
 										</div>
500 500
 										<div class="column">
501 501
 											<p>
502
-												<strong><?php esc_html_e( 'Donor Name:', 'give' ); ?></strong><br>
502
+												<strong><?php esc_html_e('Donor Name:', 'give'); ?></strong><br>
503 503
 												<?php
504
-                                                $donor_billing_name = give_get_donor_name_by( $payment_id, 'donation' );
505
-                                                $donor_name = give_get_donor_name_by( $donor_id, 'donor' );
504
+                                                $donor_billing_name = give_get_donor_name_by($payment_id, 'donation');
505
+                                                $donor_name = give_get_donor_name_by($donor_id, 'donor');
506 506
 
507 507
                                                 // Check whether the donor name and WP_User name is same or not.
508
-                                                if( sanitize_title( $donor_billing_name ) != sanitize_title( $donor_name ) ){
509
-                                                    echo $donor_billing_name . ' (<a href="' . esc_url( admin_url( "edit.php?post_type=give_forms&page=give-donors&view=overview&id=$donor_id" ) ) . '">' . $donor_name . '</a>)';
510
-                                                }else{
508
+                                                if (sanitize_title($donor_billing_name) != sanitize_title($donor_name)) {
509
+                                                    echo $donor_billing_name.' (<a href="'.esc_url(admin_url("edit.php?post_type=give_forms&page=give-donors&view=overview&id=$donor_id")).'">'.$donor_name.'</a>)';
510
+                                                } else {
511 511
                                                     echo $donor_name;
512 512
                                                 }
513 513
                                                 ?>
514 514
 											</p>
515 515
 											<p>
516
-												<strong><?php esc_html_e( 'Donor Email:', 'give' ); ?></strong><br>
516
+												<strong><?php esc_html_e('Donor Email:', 'give'); ?></strong><br>
517 517
 												<?php echo $donor->email; ?>
518 518
 											</p>
519 519
 										</div>
520 520
 										<div class="column">
521 521
 											<p>
522
-												<strong><?php esc_html_e( 'Change Donor:', 'give' ); ?></strong><br>
522
+												<strong><?php esc_html_e('Change Donor:', 'give'); ?></strong><br>
523 523
 												<?php
524
-												echo Give()->html->donor_dropdown( array(
524
+												echo Give()->html->donor_dropdown(array(
525 525
 													'selected' => $donor->id,
526 526
 													'name'     => 'donor-id',
527
-												) );
527
+												));
528 528
 												?>
529 529
 											</p>
530 530
 											<p>
531
-												<a href="#new" class="give-payment-new-donor"><?php esc_html_e( 'Create New Donor', 'give' ); ?></a>
531
+												<a href="#new" class="give-payment-new-donor"><?php esc_html_e('Create New Donor', 'give'); ?></a>
532 532
 											</p>
533 533
 										</div>
534 534
 									</div>
@@ -536,13 +536,13 @@  discard block
 block discarded – undo
536 536
 									<div class="column-container new-donor" style="display: none">
537 537
 										<div class="column">
538 538
 											<p>
539
-												<label for="give-new-donor-name"><?php esc_html_e( 'New Donor Name:', 'give' ); ?></label>
539
+												<label for="give-new-donor-name"><?php esc_html_e('New Donor Name:', 'give'); ?></label>
540 540
 												<input id="give-new-donor-name" type="text" name="give-new-donor-name" value="" class="medium-text"/>
541 541
 											</p>
542 542
 										</div>
543 543
 										<div class="column">
544 544
 											<p>
545
-												<label for="give-new-donor-email"><?php esc_html_e( 'New Donor Email:', 'give' ); ?></label>
545
+												<label for="give-new-donor-email"><?php esc_html_e('New Donor Email:', 'give'); ?></label>
546 546
 												<input id="give-new-donor-email" type="email" name="give-new-donor-email" value="" class="medium-text"/>
547 547
 											</p>
548 548
 										</div>
@@ -550,9 +550,9 @@  discard block
 block discarded – undo
550 550
 											<p>
551 551
 												<input type="hidden" name="give-current-donor" value="<?php echo $donor->id; ?>"/>
552 552
 												<input type="hidden" id="give-new-donor" name="give-new-donor" value="0"/>
553
-												<a href="#cancel" class="give-payment-new-donor-cancel give-delete"><?php esc_html_e( 'Cancel', 'give' ); ?></a>
553
+												<a href="#cancel" class="give-payment-new-donor-cancel give-delete"><?php esc_html_e('Cancel', 'give'); ?></a>
554 554
 												<br>
555
-												<em><?php esc_html_e( 'Click "Save Donation" to create new donor.', 'give' ); ?></em>
555
+												<em><?php esc_html_e('Click "Save Donation" to create new donor.', 'give'); ?></em>
556 556
 											</p>
557 557
 										</div>
558 558
 									</div>
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 									 * @param array $payment_meta Payment meta.
569 569
 									 * @param array $user_info    User information.
570 570
 									 */
571
-									do_action( 'give_payment_personal_details_list', $payment_meta, $user_info );
571
+									do_action('give_payment_personal_details_list', $payment_meta, $user_info);
572 572
 
573 573
 									/**
574 574
 									 * Fires on the donation details page, in the donor-details metabox.
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 									 *
578 578
 									 * @param int $payment_id Payment id.
579 579
 									 */
580
-									do_action( 'give_payment_view_details', $payment_id );
580
+									do_action('give_payment_view_details', $payment_id);
581 581
 									?>
582 582
 
583 583
 								</div>
@@ -593,11 +593,11 @@  discard block
 block discarded – undo
593 593
 							 *
594 594
 							 * @param int $payment_id Payment id.
595 595
 							 */
596
-							do_action( 'give_view_order_details_billing_before', $payment_id );
596
+							do_action('give_view_order_details_billing_before', $payment_id);
597 597
 							?>
598 598
 
599 599
 							<div id="give-billing-details" class="postbox">
600
-								<h3 class="hndle"><?php esc_html_e( 'Billing Address', 'give' ); ?></h3>
600
+								<h3 class="hndle"><?php esc_html_e('Billing Address', 'give'); ?></h3>
601 601
 
602 602
 								<div class="inside">
603 603
 
@@ -607,9 +607,9 @@  discard block
 block discarded – undo
607 607
 											<div class="data column-container">
608 608
 
609 609
 												<?php
610
-												$address['country'] = ( ! empty( $address['country'] ) ? $address['country'] : give_get_country() );
610
+												$address['country'] = ( ! empty($address['country']) ? $address['country'] : give_get_country());
611 611
 
612
-												$address['state'] = ( ! empty( $address['state'] ) ? $address['state'] : '' );
612
+												$address['state'] = ( ! empty($address['state']) ? $address['state'] : '');
613 613
 
614 614
 												// Get the country list that does not have any states init.
615 615
 												$no_states_country = give_no_states_country_list();
@@ -617,55 +617,55 @@  discard block
 block discarded – undo
617 617
 
618 618
 												<div class="row">
619 619
 													<div id="give-order-address-country-wrap">
620
-														<label class="order-data-address-line"><?php esc_html_e( 'Country:', 'give' ); ?></label>
620
+														<label class="order-data-address-line"><?php esc_html_e('Country:', 'give'); ?></label>
621 621
 														<?php
622
-														echo Give()->html->select( array(
622
+														echo Give()->html->select(array(
623 623
 															'options'          => give_get_country_list(),
624 624
 															'name'             => 'give-payment-address[0][country]',
625 625
 															'selected'         => $address['country'],
626 626
 															'show_option_all'  => false,
627 627
 															'show_option_none' => false,
628 628
 															'chosen'           => true,
629
-															'placeholder'      => esc_attr__( 'Select a country', 'give' ),
630
-															'data'             => array( 'search-type' => 'no_ajax' ),
631
-														) );
629
+															'placeholder'      => esc_attr__('Select a country', 'give'),
630
+															'data'             => array('search-type' => 'no_ajax'),
631
+														));
632 632
 														?>
633 633
 													</div>
634 634
 												</div>
635 635
 
636 636
 												<div class="row">
637 637
 													<div class="give-wrap-address-line1">
638
-														<label for="give-payment-address-line1" class="order-data-address"><?php esc_html_e( 'Address 1:', 'give' ); ?></label>
639
-														<input id="give-payment-address-line1" type="text" name="give-payment-address[0][line1]" value="<?php echo esc_attr( $address['line1'] ); ?>" class="medium-text"/>
638
+														<label for="give-payment-address-line1" class="order-data-address"><?php esc_html_e('Address 1:', 'give'); ?></label>
639
+														<input id="give-payment-address-line1" type="text" name="give-payment-address[0][line1]" value="<?php echo esc_attr($address['line1']); ?>" class="medium-text"/>
640 640
 													</div>
641 641
 												</div>
642 642
 
643 643
 												<div class="row">
644 644
 													<div class="give-wrap-address-line2">
645
-														<label for="give-payment-address-line2" class="order-data-address-line"><?php esc_html_e( 'Address 2:', 'give' ); ?></label>
646
-														<input id="give-payment-address-line2" type="text" name="give-payment-address[0][line2]" value="<?php echo esc_attr( $address['line2'] ); ?>" class="medium-text"/>
645
+														<label for="give-payment-address-line2" class="order-data-address-line"><?php esc_html_e('Address 2:', 'give'); ?></label>
646
+														<input id="give-payment-address-line2" type="text" name="give-payment-address[0][line2]" value="<?php echo esc_attr($address['line2']); ?>" class="medium-text"/>
647 647
 													</div>
648 648
 												</div>
649 649
 
650 650
 												<div class="row">
651
-													<div id="give-order-address-state-wrap" class="<?php echo ( ! empty( $address['country'] ) && array_key_exists( $address['country'], $no_states_country ) ? 'give-hidden' : '' ); ?>">
652
-														<label for="give-payment-address-state" class="order-data-address-line"><?php esc_html_e( 'State / Province / County:', 'give' ); ?></label>
651
+													<div id="give-order-address-state-wrap" class="<?php echo ( ! empty($address['country']) && array_key_exists($address['country'], $no_states_country) ? 'give-hidden' : ''); ?>">
652
+														<label for="give-payment-address-state" class="order-data-address-line"><?php esc_html_e('State / Province / County:', 'give'); ?></label>
653 653
 														<?php
654
-														$states = give_get_states( $address['country'] );
655
-														if ( ! empty( $states ) ) {
656
-															echo Give()->html->select( array(
654
+														$states = give_get_states($address['country']);
655
+														if ( ! empty($states)) {
656
+															echo Give()->html->select(array(
657 657
 																'options'          => $states,
658 658
 																'name'             => 'give-payment-address[0][state]',
659 659
 																'selected'         => $address['state'],
660 660
 																'show_option_all'  => false,
661 661
 																'show_option_none' => false,
662 662
 																'chosen'           => true,
663
-																'placeholder'      => esc_attr__( 'Select a state', 'give' ),
664
-																'data'             => array( 'search-type' => 'no_ajax' ),
665
-															) );
663
+																'placeholder'      => esc_attr__('Select a state', 'give'),
664
+																'data'             => array('search-type' => 'no_ajax'),
665
+															));
666 666
 														} else {
667 667
 															?>
668
-															<input id="give-payment-address-state" type="text" name="give-payment-address[0][state]" value="<?php echo esc_attr( $address['state'] ); ?>" class="medium-text"/>
668
+															<input id="give-payment-address-state" type="text" name="give-payment-address[0][state]" value="<?php echo esc_attr($address['state']); ?>" class="medium-text"/>
669 669
 															<?php
670 670
 														} ?>
671 671
 													</div>
@@ -674,15 +674,15 @@  discard block
 block discarded – undo
674 674
 												<div class="row">
675 675
 													<div class="column">
676 676
 														<div class="give-wrap-address-city">
677
-															<label for="give-payment-address-city" class="order-data-address-line"><?php esc_html_e( 'City:', 'give' ); ?></label>
678
-															<input id="give-payment-address-city" type="text" name="give-payment-address[0][city]" value="<?php echo esc_attr( $address['city'] ); ?>" class="medium-text"/>
677
+															<label for="give-payment-address-city" class="order-data-address-line"><?php esc_html_e('City:', 'give'); ?></label>
678
+															<input id="give-payment-address-city" type="text" name="give-payment-address[0][city]" value="<?php echo esc_attr($address['city']); ?>" class="medium-text"/>
679 679
 														</div>
680 680
 													</div>
681 681
 
682 682
 													<div class="column">
683 683
 														<div class="give-wrap-address-zip">
684
-															<label for="give-payment-address-zip" class="order-data-address-line"><?php esc_html_e( 'Zip / Postal Code:', 'give' ); ?></label>
685
-															<input id="give-payment-address-zip" type="text" name="give-payment-address[0][zip]" value="<?php echo esc_attr( $address['zip'] ); ?>" class="medium-text"/>
684
+															<label for="give-payment-address-zip" class="order-data-address-line"><?php esc_html_e('Zip / Postal Code:', 'give'); ?></label>
685
+															<input id="give-payment-address-zip" type="text" name="give-payment-address[0][zip]" value="<?php echo esc_attr($address['zip']); ?>" class="medium-text"/>
686 686
 														</div>
687 687
 													</div>
688 688
 												</div>
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
 									 *
702 702
 									 * @param int $payment_id Payment id.
703 703
 									 */
704
-									do_action( 'give_payment_billing_details', $payment_id );
704
+									do_action('give_payment_billing_details', $payment_id);
705 705
 									?>
706 706
 
707 707
 								</div>
@@ -717,32 +717,32 @@  discard block
 block discarded – undo
717 717
 							 *
718 718
 							 * @param int $payment_id Payment id.
719 719
 							 */
720
-							do_action( 'give_view_order_details_billing_after', $payment_id );
720
+							do_action('give_view_order_details_billing_after', $payment_id);
721 721
 							?>
722 722
 
723 723
 							<div id="give-payment-notes" class="postbox">
724
-								<h3 class="hndle"><?php esc_html_e( 'Donation Notes', 'give' ); ?></h3>
724
+								<h3 class="hndle"><?php esc_html_e('Donation Notes', 'give'); ?></h3>
725 725
 
726 726
 								<div class="inside">
727 727
 									<div id="give-payment-notes-inner">
728 728
 										<?php
729
-										$notes = give_get_payment_notes( $payment_id );
730
-										if ( ! empty( $notes ) ) {
729
+										$notes = give_get_payment_notes($payment_id);
730
+										if ( ! empty($notes)) {
731 731
 											$no_notes_display = ' style="display:none;"';
732
-											foreach ( $notes as $note ) :
732
+											foreach ($notes as $note) :
733 733
 
734
-												echo give_get_payment_note_html( $note, $payment_id );
734
+												echo give_get_payment_note_html($note, $payment_id);
735 735
 
736 736
 											endforeach;
737 737
 										} else {
738 738
 											$no_notes_display = '';
739 739
 										}
740
-										echo '<p class="give-no-payment-notes"' . $no_notes_display . '>' . esc_html__( 'No donation notes.', 'give' ) . '</p>'; ?>
740
+										echo '<p class="give-no-payment-notes"'.$no_notes_display.'>'.esc_html__('No donation notes.', 'give').'</p>'; ?>
741 741
 									</div>
742 742
 									<textarea name="give-payment-note" id="give-payment-note" class="large-text"></textarea>
743 743
 
744 744
 									<div class="give-clearfix">
745
-										<button id="give-add-payment-note" class="button button-secondary button-small" data-payment-id="<?php echo absint( $payment_id ); ?>"><?php esc_html_e( 'Add Note', 'give' ); ?></button>
745
+										<button id="give-add-payment-note" class="button button-secondary button-small" data-payment-id="<?php echo absint($payment_id); ?>"><?php esc_html_e('Add Note', 'give'); ?></button>
746 746
 									</div>
747 747
 
748 748
 								</div>
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 							 *
759 759
 							 * @param int $payment_id Payment id.
760 760
 							 */
761
-							do_action( 'give_view_order_details_main_after', $payment_id );
761
+							do_action('give_view_order_details_main_after', $payment_id);
762 762
 							?>
763 763
 
764 764
 						</div>
@@ -780,11 +780,11 @@  discard block
 block discarded – undo
780 780
 		 *
781 781
 		 * @param int $payment_id Payment id.
782 782
 		 */
783
-		do_action( 'give_view_order_details_form_bottom', $payment_id );
783
+		do_action('give_view_order_details_form_bottom', $payment_id);
784 784
 
785
-		wp_nonce_field( 'give_update_payment_details_nonce' );
785
+		wp_nonce_field('give_update_payment_details_nonce');
786 786
 		?>
787
-		<input type="hidden" name="give_payment_id" value="<?php echo esc_attr( $payment_id ); ?>"/>
787
+		<input type="hidden" name="give_payment_id" value="<?php echo esc_attr($payment_id); ?>"/>
788 788
 		<input type="hidden" name="give_action" value="update_payment_details"/>
789 789
 	</form>
790 790
 	<?php
@@ -795,6 +795,6 @@  discard block
 block discarded – undo
795 795
 	 *
796 796
 	 * @param int $payment_id Payment id.
797 797
 	 */
798
-	do_action( 'give_view_order_details_after', $payment_id );
798
+	do_action('give_view_order_details_after', $payment_id);
799 799
 	?>
800 800
 </div><!-- /.wrap -->
Please login to merge, or discard this patch.
includes/admin/payments/class-payments-table.php 1 patch
Spacing   +202 added lines, -202 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
17 17
 // Load WP_List_Table if not loaded.
18
-if ( ! class_exists( 'WP_List_Table' ) ) {
19
-	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
18
+if ( ! class_exists('WP_List_Table')) {
19
+	require_once ABSPATH.'wp-admin/includes/class-wp-list-table.php';
20 20
 }
21 21
 
22 22
 /**
@@ -134,15 +134,15 @@  discard block
 block discarded – undo
134 134
 	public function __construct() {
135 135
 
136 136
 		// Set parent defaults.
137
-		parent::__construct( array(
138
-			'singular' => give_get_forms_label_singular(),    // Singular name of the listed records.
139
-			'plural'   => give_get_forms_label_plural(),      // Plural name of the listed records.
140
-			'ajax'     => false,                              // Does this table support ajax?
141
-		) );
137
+		parent::__construct(array(
138
+			'singular' => give_get_forms_label_singular(), // Singular name of the listed records.
139
+			'plural'   => give_get_forms_label_plural(), // Plural name of the listed records.
140
+			'ajax'     => false, // Does this table support ajax?
141
+		));
142 142
 
143 143
 		$this->process_bulk_action();
144 144
 		$this->get_payment_counts();
145
-		$this->base_url = admin_url( 'edit.php?post_type=give_forms&page=give-payment-history' );
145
+		$this->base_url = admin_url('edit.php?post_type=give_forms&page=give-payment-history');
146 146
 	}
147 147
 
148 148
 	/**
@@ -151,55 +151,55 @@  discard block
 block discarded – undo
151 151
 	 * @return void
152 152
 	 */
153 153
 	public function advanced_filters() {
154
-		$start_date = isset( $_GET['start-date'] ) ? sanitize_text_field( $_GET['start-date'] ) : null;
155
-		$end_date   = isset( $_GET['end-date'] ) ? sanitize_text_field( $_GET['end-date'] ) : null;
156
-		$status     = isset( $_GET['status'] ) ? sanitize_text_field( $_GET['status'] ) : '';
157
-		$donor      = isset( $_GET['donor'] ) ? sanitize_text_field( $_GET['donor'] ) : '';
158
-		$search     = isset( $_GET['s'] ) ? sanitize_text_field( $_GET['s'] ) : '';
159
-		$form_id    = ! empty( $_GET['form_id'] ) ? absint( $_GET['form_id'] ) : 0;
154
+		$start_date = isset($_GET['start-date']) ? sanitize_text_field($_GET['start-date']) : null;
155
+		$end_date   = isset($_GET['end-date']) ? sanitize_text_field($_GET['end-date']) : null;
156
+		$status     = isset($_GET['status']) ? sanitize_text_field($_GET['status']) : '';
157
+		$donor      = isset($_GET['donor']) ? sanitize_text_field($_GET['donor']) : '';
158
+		$search     = isset($_GET['s']) ? sanitize_text_field($_GET['s']) : '';
159
+		$form_id    = ! empty($_GET['form_id']) ? absint($_GET['form_id']) : 0;
160 160
 		?>
161 161
 		<div id="give-payment-filters" class="give-filters">
162
-			<?php $this->search_box( esc_html__( 'Search', 'give' ), 'give-payments' ); ?>
162
+			<?php $this->search_box(esc_html__('Search', 'give'), 'give-payments'); ?>
163 163
 			<div id="give-payment-date-filters">
164 164
 				<div class="give-filter give-filter-half">
165 165
 					<label for="start-date"
166
-					       class="give-start-date-label"><?php esc_html_e( 'Start Date', 'give' ); ?></label>
166
+					       class="give-start-date-label"><?php esc_html_e('Start Date', 'give'); ?></label>
167 167
 					<input type="text" id="start-date" name="start-date" class="give_datepicker"
168 168
 					       value="<?php echo $start_date; ?>" placeholder="mm/dd/yyyy" />
169 169
 				</div>
170 170
 				<div class="give-filter give-filter-half">
171
-					<label for="end-date" class="give-end-date-label"><?php esc_html_e( 'End Date', 'give' ); ?></label>
171
+					<label for="end-date" class="give-end-date-label"><?php esc_html_e('End Date', 'give'); ?></label>
172 172
 					<input type="text" id="end-date" name="end-date" class="give_datepicker"
173 173
 					       value="<?php echo $end_date; ?>" placeholder="mm/dd/yyyy" />
174 174
 				</div>
175 175
 			</div>
176 176
 			<div id="give-payment-form-filter" class="give-filter">
177 177
 				<label for="give-donation-forms-filter"
178
-				       class="give-donation-forms-filter-label"><?php esc_html_e( 'Form', 'give' ); ?></label>
178
+				       class="give-donation-forms-filter-label"><?php esc_html_e('Form', 'give'); ?></label>
179 179
 				<?php
180 180
 				// Filter Donations by Donation Forms.
181
-				echo Give()->html->forms_dropdown( array(
181
+				echo Give()->html->forms_dropdown(array(
182 182
 					'name'     => 'form_id',
183 183
 					'id'       => 'give-donation-forms-filter',
184 184
 					'class'    => 'give-donation-forms-filter',
185 185
 					'selected' => $form_id, // Make sure to have $form_id set to 0, if there is no selection.
186 186
 					'chosen'   => true,
187
-					'number'   => - 1,
188
-				) );
187
+					'number'   => -1,
188
+				));
189 189
 				?>
190 190
 			</div>
191 191
 
192
-			<?php if ( ! empty( $status ) ) : ?>
193
-				<input type="hidden" name="status" value="<?php echo esc_attr( $status ); ?>" />
192
+			<?php if ( ! empty($status)) : ?>
193
+				<input type="hidden" name="status" value="<?php echo esc_attr($status); ?>" />
194 194
 			<?php endif; ?>
195 195
 
196 196
 			<div class="give-filter">
197
-				<?php submit_button( __( 'Apply', 'give' ), 'secondary', '', false ); ?>
197
+				<?php submit_button(__('Apply', 'give'), 'secondary', '', false); ?>
198 198
 				<?php
199 199
 				// Clear active filters button.
200
-				if ( ! empty( $start_date ) || ! empty( $end_date ) || ! empty( $donor ) || ! empty( $search ) || ! empty( $status ) || ! empty( $form_id ) ) : ?>
201
-					<a href="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-payment-history' ); ?>"
202
-					   class="button give-clear-filters-button"><?php esc_html_e( 'Clear Filters', 'give' ); ?></a>
200
+				if ( ! empty($start_date) || ! empty($end_date) || ! empty($donor) || ! empty($search) || ! empty($status) || ! empty($form_id)) : ?>
201
+					<a href="<?php echo admin_url('edit.php?post_type=give_forms&page=give-payment-history'); ?>"
202
+					   class="button give-clear-filters-button"><?php esc_html_e('Clear Filters', 'give'); ?></a>
203 203
 				<?php endif; ?>
204 204
 			</div>
205 205
 		</div>
@@ -218,18 +218,18 @@  discard block
 block discarded – undo
218 218
 	 *
219 219
 	 * @return void
220 220
 	 */
221
-	public function search_box( $text, $input_id ) {
222
-		if ( empty( $_REQUEST['s'] ) && ! $this->has_items() ) {
221
+	public function search_box($text, $input_id) {
222
+		if (empty($_REQUEST['s']) && ! $this->has_items()) {
223 223
 			return;
224 224
 		}
225 225
 
226
-		$input_id = $input_id . '-search-input';
226
+		$input_id = $input_id.'-search-input';
227 227
 
228
-		if ( ! empty( $_REQUEST['orderby'] ) ) {
229
-			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
228
+		if ( ! empty($_REQUEST['orderby'])) {
229
+			echo '<input type="hidden" name="orderby" value="'.esc_attr($_REQUEST['orderby']).'" />';
230 230
 		}
231
-		if ( ! empty( $_REQUEST['order'] ) ) {
232
-			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
231
+		if ( ! empty($_REQUEST['order'])) {
232
+			echo '<input type="hidden" name="order" value="'.esc_attr($_REQUEST['order']).'" />';
233 233
 		}
234 234
 		?>
235 235
 		<div class="give-filter give-filter-search" role="search">
@@ -241,13 +241,13 @@  discard block
 block discarded – undo
241 241
 			 *
242 242
 			 * @since 1.7
243 243
 			 */
244
-			do_action( 'give_payment_history_search' );
244
+			do_action('give_payment_history_search');
245 245
 			?>
246 246
 			<label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
247 247
 			<input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
248
-			<?php submit_button( $text, 'button', false, false, array(
248
+			<?php submit_button($text, 'button', false, false, array(
249 249
 				'ID' => 'search-submit',
250
-			) ); ?><br />
250
+			)); ?><br />
251 251
 		</div>
252 252
 		<?php
253 253
 	}
@@ -261,52 +261,52 @@  discard block
 block discarded – undo
261 261
 	 */
262 262
 	public function get_views() {
263 263
 
264
-		$current = isset( $_GET['status'] ) ? $_GET['status'] : '';
264
+		$current = isset($_GET['status']) ? $_GET['status'] : '';
265 265
 		$views   = array();
266 266
 		$tabs    = array(
267 267
 			'all'        => array(
268 268
 				'total_count',
269
-				esc_html__( 'All', 'give' ),
269
+				esc_html__('All', 'give'),
270 270
 			),
271 271
 			'publish'    => array(
272 272
 				'complete_count',
273
-				esc_html__( 'Completed', 'give' ),
273
+				esc_html__('Completed', 'give'),
274 274
 			),
275 275
 			'pending'    => array(
276 276
 				'pending_count',
277
-				esc_html__( 'Pending', 'give' ),
277
+				esc_html__('Pending', 'give'),
278 278
 			),
279 279
 			'processing' => array(
280 280
 				'processing_count',
281
-				esc_html__( 'Processing', 'give' ),
281
+				esc_html__('Processing', 'give'),
282 282
 			),
283 283
 			'refunded'   => array(
284 284
 				'refunded_count',
285
-				esc_html__( 'Refunded', 'give' ),
285
+				esc_html__('Refunded', 'give'),
286 286
 			),
287 287
 			'revoked'    => array(
288 288
 				'revoked_count',
289
-				esc_html__( 'Revoked', 'give' ),
289
+				esc_html__('Revoked', 'give'),
290 290
 			),
291 291
 			'failed'     => array(
292 292
 				'failed_count',
293
-				esc_html__( 'Failed', 'give' ),
293
+				esc_html__('Failed', 'give'),
294 294
 			),
295 295
 			'cancelled'  => array(
296 296
 				'cancelled_count',
297
-				esc_html__( 'Cancelled', 'give' ),
297
+				esc_html__('Cancelled', 'give'),
298 298
 			),
299 299
 			'abandoned'  => array(
300 300
 				'abandoned_count',
301
-				esc_html__( 'Abandoned', 'give' ),
301
+				esc_html__('Abandoned', 'give'),
302 302
 			),
303 303
 			'preapproval'  => array(
304 304
 				'preapproval_count',
305
-				esc_html__( 'Preapproval Pending', 'give' ),
305
+				esc_html__('Preapproval Pending', 'give'),
306 306
 			),
307 307
 		);
308 308
 
309
-		foreach ( $tabs as $key => $tab ) {
309
+		foreach ($tabs as $key => $tab) {
310 310
 			$count_key = $tab[0];
311 311
 			$name      = $tab[1];
312 312
 			$count     = $this->$count_key;
@@ -321,19 +321,19 @@  discard block
 block discarded – undo
321 321
 			 * @param string $key   Current view tab value.
322 322
 			 * @param int    $count Number of donation inside the tab.
323 323
 			 */
324
-			if ( 'all' === $key || $key === $current || apply_filters( 'give_payments_table_show_all_status', 0 < $count, $key, $count ) ) {
324
+			if ('all' === $key || $key === $current || apply_filters('give_payments_table_show_all_status', 0 < $count, $key, $count)) {
325 325
 
326
-				$views[ $key ] = sprintf(
326
+				$views[$key] = sprintf(
327 327
 					'<a href="%s" %s >%s&nbsp;<span class="count">(%s)</span></a>',
328
-					esc_url( ( 'all' === (string) $key ) ? remove_query_arg( array( 'status', 'paged' ) ) : add_query_arg( array( 'status' => $key, 'paged' => false ), admin_url( 'edit.php?post_type=give_forms&page=give-payment-history' ) ) ),
329
-					( ( 'all' === $key && empty( $current ) ) ) ? 'class="current"' : ( $current == $key ) ? 'class="current"' : '',
328
+					esc_url(('all' === (string) $key) ? remove_query_arg(array('status', 'paged')) : add_query_arg(array('status' => $key, 'paged' => false), admin_url('edit.php?post_type=give_forms&page=give-payment-history'))),
329
+					(('all' === $key && empty($current))) ? 'class="current"' : ($current == $key) ? 'class="current"' : '',
330 330
 					$name,
331 331
 					$count
332 332
 				);
333 333
 			}
334 334
 		}
335 335
 
336
-		return apply_filters( 'give_payments_table_views', $views );
336
+		return apply_filters('give_payments_table_views', $views);
337 337
 	}
338 338
 
339 339
 	/**
@@ -346,15 +346,15 @@  discard block
 block discarded – undo
346 346
 	public function get_columns() {
347 347
 		$columns = array(
348 348
 			'cb'            => '<input type="checkbox" />', // Render a checkbox instead of text.
349
-			'donation'      => esc_html__( 'Donation', 'give' ),
350
-			'donation_form' => esc_html__( 'Donation Form', 'give' ),
351
-			'status'        => esc_html__( 'Status', 'give' ),
352
-			'date'          => esc_html__( 'Date', 'give' ),
353
-			'amount'        => esc_html__( 'Amount', 'give' ),
354
-			'details'       => esc_html__( 'Details', 'give' ),
349
+			'donation'      => esc_html__('Donation', 'give'),
350
+			'donation_form' => esc_html__('Donation Form', 'give'),
351
+			'status'        => esc_html__('Status', 'give'),
352
+			'date'          => esc_html__('Date', 'give'),
353
+			'amount'        => esc_html__('Amount', 'give'),
354
+			'details'       => esc_html__('Details', 'give'),
355 355
 		);
356 356
 
357
-		return apply_filters( 'give_payments_table_columns', $columns );
357
+		return apply_filters('give_payments_table_columns', $columns);
358 358
 	}
359 359
 
360 360
 	/**
@@ -366,14 +366,14 @@  discard block
 block discarded – undo
366 366
 	 */
367 367
 	public function get_sortable_columns() {
368 368
 		$columns = array(
369
-			'donation'      => array( 'ID', true ),
370
-			'donation_form' => array( 'donation_form', false ),
371
-			'status'        => array( 'status', false ),
372
-			'amount'        => array( 'amount', false ),
373
-			'date'          => array( 'date', false ),
369
+			'donation'      => array('ID', true),
370
+			'donation_form' => array('donation_form', false),
371
+			'status'        => array('status', false),
372
+			'amount'        => array('amount', false),
373
+			'date'          => array('date', false),
374 374
 		);
375 375
 
376
-		return apply_filters( 'give_payments_table_sortable_columns', $columns );
376
+		return apply_filters('give_payments_table_sortable_columns', $columns);
377 377
 	}
378 378
 
379 379
 	/**
@@ -399,55 +399,55 @@  discard block
 block discarded – undo
399 399
 	 *
400 400
 	 * @return string Column Name
401 401
 	 */
402
-	public function column_default( $payment, $column_name ) {
402
+	public function column_default($payment, $column_name) {
403 403
 
404
-		$single_donation_url = esc_url( add_query_arg( 'id', $payment->ID, admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details' ) ) );
405
-		$row_actions         = $this->get_row_actions( $payment );
404
+		$single_donation_url = esc_url(add_query_arg('id', $payment->ID, admin_url('edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details')));
405
+		$row_actions         = $this->get_row_actions($payment);
406 406
 
407
-		switch ( $column_name ) {
407
+		switch ($column_name) {
408 408
 			case 'donation' :
409
-				$value = sprintf( '<a href="%1$s" data-tooltip="%2$s">#%3$s</a>&nbsp;%4$s&nbsp;%5$s<br>', $single_donation_url, sprintf( esc_attr__( 'View Donation #%s', 'give' ), $payment->ID ), $payment->ID, esc_html__( 'by', 'give' ), $this->get_donor( $payment ) );
410
-				$value .= $this->get_donor_email( $payment );
411
-				$value .= $this->row_actions( $row_actions );
409
+				$value = sprintf('<a href="%1$s" data-tooltip="%2$s">#%3$s</a>&nbsp;%4$s&nbsp;%5$s<br>', $single_donation_url, sprintf(esc_attr__('View Donation #%s', 'give'), $payment->ID), $payment->ID, esc_html__('by', 'give'), $this->get_donor($payment));
410
+				$value .= $this->get_donor_email($payment);
411
+				$value .= $this->row_actions($row_actions);
412 412
 				break;
413 413
 
414 414
 			case 'amount' :
415
-				$amount = ! empty( $payment->total ) ? $payment->total : 0;
416
-				$value  = give_currency_filter( give_format_amount( $amount, array( 'sanitize' => false ) ), give_get_payment_currency_code( $payment->ID ) );
417
-				$value  .= sprintf( '<br><small>%1$s %2$s</small>', __( 'via', 'give' ), give_get_gateway_admin_label( $payment->gateway ) );
415
+				$amount = ! empty($payment->total) ? $payment->total : 0;
416
+				$value  = give_currency_filter(give_format_amount($amount, array('sanitize' => false)), give_get_payment_currency_code($payment->ID));
417
+				$value .= sprintf('<br><small>%1$s %2$s</small>', __('via', 'give'), give_get_gateway_admin_label($payment->gateway));
418 418
 				break;
419 419
 
420 420
 			case 'donation_form' :
421
-				$form_title = empty( $payment->form_title ) ? sprintf( __( 'Untitled (#%s)', 'give' ), $payment->form_id ) : $payment->form_title;
422
-				$value      = '<a href="' . admin_url( 'post.php?post=' . $payment->form_id . '&action=edit' ) . '">' . $form_title . '</a>';
423
-				$level      = give_get_payment_form_title( $payment->meta, true );
421
+				$form_title = empty($payment->form_title) ? sprintf(__('Untitled (#%s)', 'give'), $payment->form_id) : $payment->form_title;
422
+				$value      = '<a href="'.admin_url('post.php?post='.$payment->form_id.'&action=edit').'">'.$form_title.'</a>';
423
+				$level      = give_get_payment_form_title($payment->meta, true);
424 424
 
425
-				if ( ! empty( $level ) ) {
425
+				if ( ! empty($level)) {
426 426
 					$value .= $level;
427 427
 				}
428 428
 
429 429
 				break;
430 430
 
431 431
 			case 'date' :
432
-				$date  = strtotime( $payment->date );
433
-				$value = date_i18n( give_date_format(), $date );
432
+				$date  = strtotime($payment->date);
433
+				$value = date_i18n(give_date_format(), $date);
434 434
 				break;
435 435
 
436 436
 			case 'status' :
437
-				$value = $this->get_payment_status( $payment );
437
+				$value = $this->get_payment_status($payment);
438 438
 				break;
439 439
 
440 440
 			case 'details' :
441
-				$value = sprintf( '<div class="give-payment-details-link-wrap"><a href="%1$s" class="give-payment-details-link button button-small" data-tooltip="%2$s" aria-label="%2$s"><span class="dashicons dashicons-visibility"></span></a></div>', $single_donation_url, sprintf( esc_attr__( 'View Donation #%s', 'give' ), $payment->ID ) );
441
+				$value = sprintf('<div class="give-payment-details-link-wrap"><a href="%1$s" class="give-payment-details-link button button-small" data-tooltip="%2$s" aria-label="%2$s"><span class="dashicons dashicons-visibility"></span></a></div>', $single_donation_url, sprintf(esc_attr__('View Donation #%s', 'give'), $payment->ID));
442 442
 				break;
443 443
 
444 444
 			default:
445
-				$value = isset( $payment->$column_name ) ? $payment->$column_name : '';
445
+				$value = isset($payment->$column_name) ? $payment->$column_name : '';
446 446
 				break;
447 447
 
448 448
 		}// End switch().
449 449
 
450
-		return apply_filters( 'give_payments_table_column', $value, $payment->ID, $column_name );
450
+		return apply_filters('give_payments_table_column', $value, $payment->ID, $column_name);
451 451
 	}
452 452
 
453 453
 	/**
@@ -460,17 +460,17 @@  discard block
 block discarded – undo
460 460
 	 *
461 461
 	 * @return string                Data shown in the Email column
462 462
 	 */
463
-	public function get_donor_email( $payment ) {
463
+	public function get_donor_email($payment) {
464 464
 
465
-		$email = give_get_payment_user_email( $payment->ID );
465
+		$email = give_get_payment_user_email($payment->ID);
466 466
 
467
-		if ( empty( $email ) ) {
468
-			$email = esc_html__( '(unknown)', 'give' );
467
+		if (empty($email)) {
468
+			$email = esc_html__('(unknown)', 'give');
469 469
 		}
470 470
 
471
-		$value = '<a href="mailto:' . $email . '" data-tooltip="' . esc_attr__( 'Email donor', 'give' ) . '">' . $email . '</a>';
471
+		$value = '<a href="mailto:'.$email.'" data-tooltip="'.esc_attr__('Email donor', 'give').'">'.$email.'</a>';
472 472
 
473
-		return apply_filters( 'give_payments_table_column', $value, $payment->ID, 'email' );
473
+		return apply_filters('give_payments_table_column', $value, $payment->ID, 'email');
474 474
 	}
475 475
 
476 476
 	/**
@@ -482,32 +482,32 @@  discard block
 block discarded – undo
482 482
 	 *
483 483
 	 * @return array $actions
484 484
 	 */
485
-	function get_row_actions( $payment ) {
485
+	function get_row_actions($payment) {
486 486
 
487 487
 		$actions = array();
488
-		$email   = give_get_payment_user_email( $payment->ID );
488
+		$email   = give_get_payment_user_email($payment->ID);
489 489
 
490 490
 		// Add search term string back to base URL.
491
-		$search_terms = ( isset( $_GET['s'] ) ? trim( $_GET['s'] ) : '' );
492
-		if ( ! empty( $search_terms ) ) {
493
-			$this->base_url = add_query_arg( 's', $search_terms, $this->base_url );
491
+		$search_terms = (isset($_GET['s']) ? trim($_GET['s']) : '');
492
+		if ( ! empty($search_terms)) {
493
+			$this->base_url = add_query_arg('s', $search_terms, $this->base_url);
494 494
 		}
495 495
 
496
-		if ( give_is_payment_complete( $payment->ID ) && ! empty( $email ) ) {
496
+		if (give_is_payment_complete($payment->ID) && ! empty($email)) {
497 497
 
498
-			$actions['email_links'] = sprintf( '<a class="resend-single-donation-receipt" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url( add_query_arg( array(
498
+			$actions['email_links'] = sprintf('<a class="resend-single-donation-receipt" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url(add_query_arg(array(
499 499
 				'give-action' => 'email_links',
500 500
 				'purchase_id' => $payment->ID,
501
-			), $this->base_url ), 'give_payment_nonce' ), sprintf( esc_attr__( 'Resend Donation %s Receipt', 'give' ), $payment->ID ), esc_html__( 'Resend Receipt', 'give' ) );
501
+			), $this->base_url), 'give_payment_nonce'), sprintf(esc_attr__('Resend Donation %s Receipt', 'give'), $payment->ID), esc_html__('Resend Receipt', 'give'));
502 502
 
503 503
 		}
504 504
 
505
-		$actions['delete'] = sprintf( '<a class="delete-single-donation" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url( add_query_arg( array(
505
+		$actions['delete'] = sprintf('<a class="delete-single-donation" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url(add_query_arg(array(
506 506
 			'give-action' => 'delete_payment',
507 507
 			'purchase_id' => $payment->ID,
508
-		), $this->base_url ), 'give_donation_nonce' ), sprintf( esc_attr__( 'Delete Donation %s', 'give' ), $payment->ID ), esc_html__( 'Delete', 'give' ) );
508
+		), $this->base_url), 'give_donation_nonce'), sprintf(esc_attr__('Delete Donation %s', 'give'), $payment->ID), esc_html__('Delete', 'give'));
509 509
 
510
-		return apply_filters( 'give_payment_row_actions', $actions, $payment );
510
+		return apply_filters('give_payment_row_actions', $actions, $payment);
511 511
 	}
512 512
 
513 513
 
@@ -521,14 +521,14 @@  discard block
 block discarded – undo
521 521
 	 *
522 522
 	 * @return string                Data shown in the Email column
523 523
 	 */
524
-	function get_payment_status( $payment ) {
525
-		$value = '<div class="give-donation-status status-' . sanitize_title( give_get_payment_status( $payment, true ) ) . '"><span class="give-donation-status-icon"></span> ' . give_get_payment_status( $payment, true ) . '</div>';
526
-		if ( $payment->mode == 'test' ) {
527
-			$value .= ' <span class="give-item-label give-item-label-orange give-test-mode-transactions-label" data-tooltip="' . esc_attr__( 'This donation was made in test mode.', 'give' ) . '">' . esc_html__( 'Test', 'give' ) . '</span>';
524
+	function get_payment_status($payment) {
525
+		$value = '<div class="give-donation-status status-'.sanitize_title(give_get_payment_status($payment, true)).'"><span class="give-donation-status-icon"></span> '.give_get_payment_status($payment, true).'</div>';
526
+		if ($payment->mode == 'test') {
527
+			$value .= ' <span class="give-item-label give-item-label-orange give-test-mode-transactions-label" data-tooltip="'.esc_attr__('This donation was made in test mode.', 'give').'">'.esc_html__('Test', 'give').'</span>';
528 528
 		}
529 529
 
530
-		if ( true === $payment->import && true === (bool) apply_filters( 'give_payment_show_importer_label', false ) ) {
531
-			$value .= ' <span class="give-item-label give-item-label-orange give-test-mode-transactions-label" data-tooltip="' . esc_attr__( 'This donation was imported.', 'give' ) . '">' . esc_html__( 'Import', 'give' ) . '</span>';
530
+		if (true === $payment->import && true === (bool) apply_filters('give_payment_show_importer_label', false)) {
531
+			$value .= ' <span class="give-item-label give-item-label-orange give-test-mode-transactions-label" data-tooltip="'.esc_attr__('This donation was imported.', 'give').'">'.esc_html__('Import', 'give').'</span>';
532 532
 		}
533 533
 
534 534
 		return $value;
@@ -544,8 +544,8 @@  discard block
 block discarded – undo
544 544
 	 *
545 545
 	 * @return string Displays a checkbox.
546 546
 	 */
547
-	public function column_cb( $payment ) {
548
-		return sprintf( '<input type="checkbox" name="%1$s[]" value="%2$s" />', 'payment', $payment->ID );
547
+	public function column_cb($payment) {
548
+		return sprintf('<input type="checkbox" name="%1$s[]" value="%2$s" />', 'payment', $payment->ID);
549 549
 	}
550 550
 
551 551
 	/**
@@ -558,8 +558,8 @@  discard block
 block discarded – undo
558 558
 	 *
559 559
 	 * @return string Displays a checkbox.
560 560
 	 */
561
-	public function get_payment_id( $payment ) {
562
-		return '<span class="give-payment-id">' . give_get_payment_number( $payment->ID ) . '</span>';
561
+	public function get_payment_id($payment) {
562
+		return '<span class="give-payment-id">'.give_get_payment_number($payment->ID).'</span>';
563 563
 	}
564 564
 
565 565
 	/**
@@ -572,32 +572,32 @@  discard block
 block discarded – undo
572 572
 	 *
573 573
 	 * @return string Data shown in the User column
574 574
 	 */
575
-	public function get_donor( $payment ) {
575
+	public function get_donor($payment) {
576 576
 
577
-		$donor_id           = give_get_payment_donor_id( $payment->ID );
578
-		$donor_billing_name = give_get_donor_name_by( $payment->ID, 'donation' );
579
-		$donor_name         = give_get_donor_name_by( $donor_id, 'donor' );
577
+		$donor_id           = give_get_payment_donor_id($payment->ID);
578
+		$donor_billing_name = give_get_donor_name_by($payment->ID, 'donation');
579
+		$donor_name         = give_get_donor_name_by($donor_id, 'donor');
580 580
 
581 581
 		$value = '';
582
-		if ( ! empty( $donor_id ) ) {
582
+		if ( ! empty($donor_id)) {
583 583
 
584 584
 			// Check whether the donor name and WP_User name is same or not.
585
-			if ( sanitize_title( $donor_billing_name ) != sanitize_title( $donor_name ) ) {
586
-				$value .= $donor_billing_name . ' (';
585
+			if (sanitize_title($donor_billing_name) != sanitize_title($donor_name)) {
586
+				$value .= $donor_billing_name.' (';
587 587
 			}
588 588
 
589
-			$value .= '<a href="' . esc_url( admin_url( "edit.php?post_type=give_forms&page=give-donors&view=overview&id=$donor_id" ) ) . '">' . $donor_name . '</a>';
589
+			$value .= '<a href="'.esc_url(admin_url("edit.php?post_type=give_forms&page=give-donors&view=overview&id=$donor_id")).'">'.$donor_name.'</a>';
590 590
 
591 591
 			// Check whether the donor name and WP_User name is same or not.
592
-			if ( sanitize_title( $donor_billing_name ) != sanitize_title( $donor_name ) ) {
592
+			if (sanitize_title($donor_billing_name) != sanitize_title($donor_name)) {
593 593
 				$value .= ')';
594 594
 			}
595 595
 		} else {
596
-			$email = give_get_payment_user_email( $payment->ID );
597
-			$value .= '<a href="' . esc_url( admin_url( "edit.php?post_type=give_forms&page=give-payment-history&s=$email" ) ) . '">' . esc_html__( '(donor missing)', 'give' ) . '</a>';
596
+			$email = give_get_payment_user_email($payment->ID);
597
+			$value .= '<a href="'.esc_url(admin_url("edit.php?post_type=give_forms&page=give-payment-history&s=$email")).'">'.esc_html__('(donor missing)', 'give').'</a>';
598 598
 		}
599 599
 
600
-		return apply_filters( 'give_payments_table_column', $value, $payment->ID, 'donor' );
600
+		return apply_filters('give_payments_table_column', $value, $payment->ID, 'donor');
601 601
 	}
602 602
 
603 603
 	/**
@@ -609,20 +609,20 @@  discard block
 block discarded – undo
609 609
 	 */
610 610
 	public function get_bulk_actions() {
611 611
 		$actions = array(
612
-			'delete'                 => __( 'Delete', 'give' ),
613
-			'set-status-publish'     => __( 'Set To Completed', 'give' ),
614
-			'set-status-pending'     => __( 'Set To Pending', 'give' ),
615
-			'set-status-processing'  => __( 'Set To Processing', 'give' ),
616
-			'set-status-refunded'    => __( 'Set To Refunded', 'give' ),
617
-			'set-status-revoked'     => __( 'Set To Revoked', 'give' ),
618
-			'set-status-failed'      => __( 'Set To Failed', 'give' ),
619
-			'set-status-cancelled'   => __( 'Set To Cancelled', 'give' ),
620
-			'set-status-abandoned'   => __( 'Set To Abandoned', 'give' ),
621
-			'set-status-preapproval' => __( 'Set To Preapproval', 'give' ),
622
-			'resend-receipt'         => __( 'Resend Email Receipts', 'give' ),
612
+			'delete'                 => __('Delete', 'give'),
613
+			'set-status-publish'     => __('Set To Completed', 'give'),
614
+			'set-status-pending'     => __('Set To Pending', 'give'),
615
+			'set-status-processing'  => __('Set To Processing', 'give'),
616
+			'set-status-refunded'    => __('Set To Refunded', 'give'),
617
+			'set-status-revoked'     => __('Set To Revoked', 'give'),
618
+			'set-status-failed'      => __('Set To Failed', 'give'),
619
+			'set-status-cancelled'   => __('Set To Cancelled', 'give'),
620
+			'set-status-abandoned'   => __('Set To Abandoned', 'give'),
621
+			'set-status-preapproval' => __('Set To Preapproval', 'give'),
622
+			'resend-receipt'         => __('Resend Email Receipts', 'give'),
623 623
 		);
624 624
 
625
-		return apply_filters( 'give_payments_table_bulk_actions', $actions );
625
+		return apply_filters('give_payments_table_bulk_actions', $actions);
626 626
 	}
627 627
 
628 628
 	/**
@@ -633,63 +633,63 @@  discard block
 block discarded – undo
633 633
 	 * @return void
634 634
 	 */
635 635
 	public function process_bulk_action() {
636
-		$ids    = isset( $_GET['payment'] ) ? $_GET['payment'] : false;
636
+		$ids    = isset($_GET['payment']) ? $_GET['payment'] : false;
637 637
 		$action = $this->current_action();
638 638
 
639
-		if ( ! is_array( $ids ) ) {
640
-			$ids = array( $ids );
639
+		if ( ! is_array($ids)) {
640
+			$ids = array($ids);
641 641
 		}
642 642
 
643
-		if ( empty( $action ) ) {
643
+		if (empty($action)) {
644 644
 			return;
645 645
 		}
646 646
 
647
-		foreach ( $ids as $id ) {
647
+		foreach ($ids as $id) {
648 648
 
649 649
 			// Detect when a bulk action is being triggered.
650
-			switch ( $this->current_action() ) {
650
+			switch ($this->current_action()) {
651 651
 
652 652
 				case'delete':
653
-					give_delete_donation( $id );
653
+					give_delete_donation($id);
654 654
 					break;
655 655
 
656 656
 				case 'set-status-publish':
657
-					give_update_payment_status( $id, 'publish' );
657
+					give_update_payment_status($id, 'publish');
658 658
 					break;
659 659
 
660 660
 				case 'set-status-pending':
661
-					give_update_payment_status( $id, 'pending' );
661
+					give_update_payment_status($id, 'pending');
662 662
 					break;
663 663
 
664 664
 				case 'set-status-processing':
665
-					give_update_payment_status( $id, 'processing' );
665
+					give_update_payment_status($id, 'processing');
666 666
 					break;
667 667
 
668 668
 				case 'set-status-refunded':
669
-					give_update_payment_status( $id, 'refunded' );
669
+					give_update_payment_status($id, 'refunded');
670 670
 					break;
671 671
 				case 'set-status-revoked':
672
-					give_update_payment_status( $id, 'revoked' );
672
+					give_update_payment_status($id, 'revoked');
673 673
 					break;
674 674
 
675 675
 				case 'set-status-failed':
676
-					give_update_payment_status( $id, 'failed' );
676
+					give_update_payment_status($id, 'failed');
677 677
 					break;
678 678
 
679 679
 				case 'set-status-cancelled':
680
-					give_update_payment_status( $id, 'cancelled' );
680
+					give_update_payment_status($id, 'cancelled');
681 681
 					break;
682 682
 
683 683
 				case 'set-status-abandoned':
684
-					give_update_payment_status( $id, 'abandoned' );
684
+					give_update_payment_status($id, 'abandoned');
685 685
 					break;
686 686
 
687 687
 				case 'set-status-preapproval':
688
-					give_update_payment_status( $id, 'preapproval' );
688
+					give_update_payment_status($id, 'preapproval');
689 689
 					break;
690 690
 
691 691
 				case 'resend-receipt':
692
-					give_email_donation_receipt( $id, false );
692
+					give_email_donation_receipt($id, false);
693 693
 					break;
694 694
 			}// End switch().
695 695
 
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
 			 * @param int    $id             The ID of the payment.
702 702
 			 * @param string $current_action The action that is being triggered.
703 703
 			 */
704
-			do_action( 'give_payments_table_do_bulk_action', $id, $this->current_action() );
704
+			do_action('give_payments_table_do_bulk_action', $id, $this->current_action());
705 705
 		}// End foreach().
706 706
 
707 707
 	}
@@ -717,31 +717,31 @@  discard block
 block discarded – undo
717 717
 
718 718
 		$args = array();
719 719
 
720
-		if ( isset( $_GET['user'] ) ) {
721
-			$args['user'] = urldecode( $_GET['user'] );
722
-		} elseif ( isset( $_GET['donor'] ) ) {
723
-			$args['donor'] = absint( $_GET['donor'] );
724
-		} elseif ( isset( $_GET['s'] ) ) {
725
-			$is_user = strpos( $_GET['s'], strtolower( 'user:' ) ) !== false;
726
-			if ( $is_user ) {
727
-				$args['user'] = absint( trim( str_replace( 'user:', '', strtolower( $_GET['s'] ) ) ) );
728
-				unset( $args['s'] );
720
+		if (isset($_GET['user'])) {
721
+			$args['user'] = urldecode($_GET['user']);
722
+		} elseif (isset($_GET['donor'])) {
723
+			$args['donor'] = absint($_GET['donor']);
724
+		} elseif (isset($_GET['s'])) {
725
+			$is_user = strpos($_GET['s'], strtolower('user:')) !== false;
726
+			if ($is_user) {
727
+				$args['user'] = absint(trim(str_replace('user:', '', strtolower($_GET['s']))));
728
+				unset($args['s']);
729 729
 			} else {
730
-				$args['s'] = sanitize_text_field( $_GET['s'] );
730
+				$args['s'] = sanitize_text_field($_GET['s']);
731 731
 			}
732 732
 		}
733 733
 
734
-		if ( ! empty( $_GET['start-date'] ) ) {
735
-			$args['start-date'] = urldecode( $_GET['start-date'] );
734
+		if ( ! empty($_GET['start-date'])) {
735
+			$args['start-date'] = urldecode($_GET['start-date']);
736 736
 		}
737 737
 
738
-		if ( ! empty( $_GET['end-date'] ) ) {
739
-			$args['end-date'] = urldecode( $_GET['end-date'] );
738
+		if ( ! empty($_GET['end-date'])) {
739
+			$args['end-date'] = urldecode($_GET['end-date']);
740 740
 		}
741 741
 
742
-		$args['form_id'] = ! empty( $_GET['form_id'] ) ? absint( $_GET['form_id'] ) : null;
742
+		$args['form_id'] = ! empty($_GET['form_id']) ? absint($_GET['form_id']) : null;
743 743
 
744
-		$payment_count           = give_count_payments( $args );
744
+		$payment_count           = give_count_payments($args);
745 745
 		$this->complete_count    = $payment_count->publish;
746 746
 		$this->pending_count     = $payment_count->pending;
747 747
 		$this->processing_count  = $payment_count->processing;
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 		$this->abandoned_count   = $payment_count->abandoned;
753 753
 		$this->preapproval_count = $payment_count->preapproval;
754 754
 
755
-		foreach ( $payment_count as $count ) {
755
+		foreach ($payment_count as $count) {
756 756
 			$this->total_count += $count;
757 757
 		}
758 758
 	}
@@ -767,28 +767,28 @@  discard block
 block discarded – undo
767 767
 	public function payments_data() {
768 768
 
769 769
 		$per_page   = $this->per_page;
770
-		$orderby    = isset( $_GET['orderby'] ) ? urldecode( $_GET['orderby'] ) : 'ID';
771
-		$order      = isset( $_GET['order'] ) ? $_GET['order'] : 'DESC';
772
-		$user       = isset( $_GET['user'] ) ? $_GET['user'] : null;
773
-		$donor      = isset( $_GET['donor'] ) ? $_GET['donor'] : null;
774
-		$status     = isset( $_GET['status'] ) ? $_GET['status'] : give_get_payment_status_keys();
775
-		$meta_key   = isset( $_GET['meta_key'] ) ? $_GET['meta_key'] : null;
776
-		$year       = isset( $_GET['year'] ) ? $_GET['year'] : null;
777
-		$month      = isset( $_GET['m'] ) ? $_GET['m'] : null;
778
-		$day        = isset( $_GET['day'] ) ? $_GET['day'] : null;
779
-		$search     = isset( $_GET['s'] ) ? sanitize_text_field( $_GET['s'] ) : null;
780
-		$start_date = isset( $_GET['start-date'] ) ? sanitize_text_field( $_GET['start-date'] ) : null;
781
-		$end_date   = isset( $_GET['end-date'] ) ? sanitize_text_field( $_GET['end-date'] ) : $start_date;
782
-		$form_id    = ! empty( $_GET['form_id'] ) ? absint( $_GET['form_id'] ) : null;
783
-
784
-		if ( ! empty( $search ) ) {
770
+		$orderby    = isset($_GET['orderby']) ? urldecode($_GET['orderby']) : 'ID';
771
+		$order      = isset($_GET['order']) ? $_GET['order'] : 'DESC';
772
+		$user       = isset($_GET['user']) ? $_GET['user'] : null;
773
+		$donor      = isset($_GET['donor']) ? $_GET['donor'] : null;
774
+		$status     = isset($_GET['status']) ? $_GET['status'] : give_get_payment_status_keys();
775
+		$meta_key   = isset($_GET['meta_key']) ? $_GET['meta_key'] : null;
776
+		$year       = isset($_GET['year']) ? $_GET['year'] : null;
777
+		$month      = isset($_GET['m']) ? $_GET['m'] : null;
778
+		$day        = isset($_GET['day']) ? $_GET['day'] : null;
779
+		$search     = isset($_GET['s']) ? sanitize_text_field($_GET['s']) : null;
780
+		$start_date = isset($_GET['start-date']) ? sanitize_text_field($_GET['start-date']) : null;
781
+		$end_date   = isset($_GET['end-date']) ? sanitize_text_field($_GET['end-date']) : $start_date;
782
+		$form_id    = ! empty($_GET['form_id']) ? absint($_GET['form_id']) : null;
783
+
784
+		if ( ! empty($search)) {
785 785
 			$status = 'any'; // Force all payment statuses when searching.
786 786
 		}
787 787
 
788 788
 		$args = array(
789 789
 			'output'     => 'payments',
790 790
 			'number'     => $per_page,
791
-			'page'       => isset( $_GET['paged'] ) ? $_GET['paged'] : null,
791
+			'page'       => isset($_GET['paged']) ? $_GET['paged'] : null,
792 792
 			'orderby'    => $orderby,
793 793
 			'order'      => $order,
794 794
 			'user'       => $user,
@@ -804,12 +804,12 @@  discard block
 block discarded – undo
804 804
 			'give_forms' => $form_id,
805 805
 		);
806 806
 
807
-		if ( is_string( $search ) && false !== strpos( $search, 'txn:' ) ) {
807
+		if (is_string($search) && false !== strpos($search, 'txn:')) {
808 808
 			$args['search_in_notes'] = true;
809
-			$args['s']               = trim( str_replace( 'txn:', '', $args['s'] ) );
809
+			$args['s']               = trim(str_replace('txn:', '', $args['s']));
810 810
 		}
811 811
 
812
-		$p_query = new Give_Payments_Query( $args );
812
+		$p_query = new Give_Payments_Query($args);
813 813
 
814 814
 		return $p_query->get_payments();
815 815
 
@@ -829,17 +829,17 @@  discard block
 block discarded – undo
829 829
 	 */
830 830
 	public function prepare_items() {
831 831
 
832
-		wp_reset_vars( array( 'action', 'payment', 'orderby', 'order', 's' ) );
832
+		wp_reset_vars(array('action', 'payment', 'orderby', 'order', 's'));
833 833
 
834 834
 		$columns  = $this->get_columns();
835 835
 		$hidden   = array(); // No hidden columns.
836 836
 		$sortable = $this->get_sortable_columns();
837 837
 		$data     = $this->payments_data();
838
-		$status   = isset( $_GET['status'] ) ? $_GET['status'] : 'any';
838
+		$status   = isset($_GET['status']) ? $_GET['status'] : 'any';
839 839
 
840
-		$this->_column_headers = array( $columns, $hidden, $sortable );
840
+		$this->_column_headers = array($columns, $hidden, $sortable);
841 841
 
842
-		switch ( $status ) {
842
+		switch ($status) {
843 843
 			case 'publish':
844 844
 				$total_items = $this->complete_count;
845 845
 				break;
@@ -872,20 +872,20 @@  discard block
 block discarded – undo
872 872
 				break;
873 873
 			default:
874 874
 				// Retrieve the count of the non-default-Give status.
875
-				$count       = wp_count_posts( 'give_payment' );
876
-				$total_items = isset( $count->{$status} ) ? $count->{$status} : 0;
875
+				$count       = wp_count_posts('give_payment');
876
+				$total_items = isset($count->{$status} ) ? $count->{$status} : 0;
877 877
 				break;
878 878
 		}
879 879
 
880 880
 		$this->items = $data;
881 881
 
882
-		$this->set_pagination_args( array(
882
+		$this->set_pagination_args(array(
883 883
 			'total_items' => $total_items,
884 884
 			// We have to calculate the total number of items.
885 885
 			'per_page'    => $this->per_page,
886 886
 			// We have to determine how many items to show on a page.
887
-			'total_pages' => ceil( $total_items / $this->per_page ),
887
+			'total_pages' => ceil($total_items / $this->per_page),
888 888
 			// We have to calculate the total number of pages.
889
-		) );
889
+		));
890 890
 	}
891 891
 }
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-advanced.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
  * @since       1.8
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit; // Exit if accessed directly
14 14
 }
15 15
 
16
-if ( ! class_exists( 'Give_Settings_Advanced' ) ) :
16
+if ( ! class_exists('Give_Settings_Advanced')) :
17 17
 
18 18
 	/**
19 19
 	 * Give_Settings_Advanced.
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		 */
28 28
 		public function __construct() {
29 29
 			$this->id    = 'advanced';
30
-			$this->label = __( 'Advanced', 'give' );
30
+			$this->label = __('Advanced', 'give');
31 31
 
32 32
 			$this->default_tab = 'advanced-options';
33 33
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 			$current_section = give_get_current_setting_section();
47 47
 
48
-			switch ( $current_section ) {
48
+			switch ($current_section) {
49 49
 				case 'advanced-options':
50 50
 					$settings = array(
51 51
 						array(
@@ -53,19 +53,19 @@  discard block
 block discarded – undo
53 53
 							'type' => 'title',
54 54
 						),
55 55
 						array(
56
-							'name'    => __( 'Remove Data on Uninstall', 'give' ),
57
-							'desc'    => __( 'When the plugin is deleted, completely remove all Give data. This includes all Give settings, forms, form meta, donor, donor data, donations. Everything.', 'give' ),
56
+							'name'    => __('Remove Data on Uninstall', 'give'),
57
+							'desc'    => __('When the plugin is deleted, completely remove all Give data. This includes all Give settings, forms, form meta, donor, donor data, donations. Everything.', 'give'),
58 58
 							'id'      => 'uninstall_on_delete',
59 59
 							'type'    => 'radio_inline',
60 60
 							'default' => 'disabled',
61 61
 							'options' => array(
62
-								'enabled'  => __( 'Yes, Remove all data', 'give' ),
63
-								'disabled' => __( 'No, keep my Give settings and donation data', 'give' ),
62
+								'enabled'  => __('Yes, Remove all data', 'give'),
63
+								'disabled' => __('No, keep my Give settings and donation data', 'give'),
64 64
 							),
65 65
 						),
66 66
 						array(
67
-							'name'    => __( 'Default User Role', 'give' ),
68
-							'desc'    => __( 'Assign default user roles for donors when donors opt to register as a WP User.', 'give' ),
67
+							'name'    => __('Default User Role', 'give'),
68
+							'desc'    => __('Assign default user roles for donors when donors opt to register as a WP User.', 'give'),
69 69
 							'id'      => 'donor_default_user_role',
70 70
 							'type'    => 'select',
71 71
 							'default' => 'give_donor',
@@ -73,44 +73,44 @@  discard block
 block discarded – undo
73 73
 						),
74 74
 						array(
75 75
 							/* translators: %s: the_content */
76
-							'name'    => sprintf( __( '%s filter', 'give' ), '<code>the_content</code>' ),
76
+							'name'    => sprintf(__('%s filter', 'give'), '<code>the_content</code>'),
77 77
 							/* translators: 1: https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content 2: the_content */
78
-							'desc'    => sprintf( __( 'If you are seeing extra social buttons, related posts, or other unwanted elements appearing within your forms then you can disable WordPress\' content filter. <a href="%1$s" target="_blank">Learn more</a> about %2$s filter.', 'give' ), esc_url( 'https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content' ), '<code>the_content</code>' ),
78
+							'desc'    => sprintf(__('If you are seeing extra social buttons, related posts, or other unwanted elements appearing within your forms then you can disable WordPress\' content filter. <a href="%1$s" target="_blank">Learn more</a> about %2$s filter.', 'give'), esc_url('https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content'), '<code>the_content</code>'),
79 79
 							'id'      => 'the_content_filter',
80 80
 							'default' => 'enabled',
81 81
 							'type'    => 'radio_inline',
82 82
 							'options' => array(
83
-								'enabled'  => __( 'Enabled', 'give' ),
84
-								'disabled' => __( 'Disabled', 'give' ),
83
+								'enabled'  => __('Enabled', 'give'),
84
+								'disabled' => __('Disabled', 'give'),
85 85
 							),
86 86
 						),
87 87
 						array(
88
-							'name'    => __( 'Script Loading Location', 'give' ),
89
-							'desc'    => __( 'This allows you to load your Give scripts either in the <code>&lt;head&gt;</code> or footer of your website.', 'give' ),
88
+							'name'    => __('Script Loading Location', 'give'),
89
+							'desc'    => __('This allows you to load your Give scripts either in the <code>&lt;head&gt;</code> or footer of your website.', 'give'),
90 90
 							'id'      => 'scripts_footer',
91 91
 							'type'    => 'radio_inline',
92 92
 							'default' => 'disabled',
93 93
 							'options' => array(
94
-								'enabled'  => __( 'Footer', 'give' ),
95
-								'disabled' => __( 'Head', 'give' ),
94
+								'enabled'  => __('Footer', 'give'),
95
+								'disabled' => __('Head', 'give'),
96 96
 							),
97 97
 						),
98 98
 						array(
99
-							'name'    => __( 'Akismet SPAM Protection', 'give' ),
100
-							'desc'    => __( 'Add a layer of SPAM protection to your donation submissions with Akismet. When enabled, donation submissions will be first sent to Akismet\'s API.', 'give' ),
99
+							'name'    => __('Akismet SPAM Protection', 'give'),
100
+							'desc'    => __('Add a layer of SPAM protection to your donation submissions with Akismet. When enabled, donation submissions will be first sent to Akismet\'s API.', 'give'),
101 101
 							'id'      => 'akismet_spam_protection',
102 102
 							'type'    => 'radio_inline',
103
-							'default' => ( give_check_akismet_key() ) ? 'enabled' : 'disabled',
103
+							'default' => (give_check_akismet_key()) ? 'enabled' : 'disabled',
104 104
 							'options' => array(
105
-								'enabled'  => __( 'Enabled', 'give' ),
106
-								'disabled' => __( 'Disabled', 'give' ),
105
+								'enabled'  => __('Enabled', 'give'),
106
+								'disabled' => __('Disabled', 'give'),
107 107
 							),
108 108
 						),
109 109
 						array(
110
-							'name'  => __( 'Advanced Settings Docs Link', 'give' ),
110
+							'name'  => __('Advanced Settings Docs Link', 'give'),
111 111
 							'id'    => 'advanced_settings_docs_link',
112
-							'url'   => esc_url( 'http://docs.givewp.com/settings-advanced' ),
113
-							'title' => __( 'Advanced Settings', 'give' ),
112
+							'url'   => esc_url('http://docs.givewp.com/settings-advanced'),
113
+							'title' => __('Advanced Settings', 'give'),
114 114
 							'type'  => 'give_docs_link',
115 115
 						),
116 116
 						array(
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			 * Filter the advanced settings.
127 127
 			 * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8
128 128
 			 */
129
-			$settings = apply_filters( 'give_settings_advanced', $settings );
129
+			$settings = apply_filters('give_settings_advanced', $settings);
130 130
 
131 131
 			/**
132 132
 			 * Filter the settings.
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 			 *
136 136
 			 * @param  array $settings
137 137
 			 */
138
-			$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
138
+			$settings = apply_filters('give_get_settings_'.$this->id, $settings);
139 139
 
140 140
 			// Output.
141 141
 			return $settings;
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
 		 */
150 150
 		public function get_sections() {
151 151
 			$sections = array(
152
-				'advanced-options' => __( 'Advanced Options', 'give' ),
152
+				'advanced-options' => __('Advanced Options', 'give'),
153 153
 			);
154 154
 
155
-			return apply_filters( 'give_get_sections_' . $this->id, $sections );
155
+			return apply_filters('give_get_sections_'.$this->id, $sections);
156 156
 		}
157 157
 	}
158 158
 
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-imports.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * Admin View: Imports
4 4
  */
5 5
 
6
-if ( ! defined( 'ABSPATH' ) ) {
6
+if ( ! defined('ABSPATH')) {
7 7
 	exit;
8 8
 } ?>
9 9
 
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
 				 *
19 19
 				 * @since 1.8.14
20 20
 				 */
21
-				do_action( 'give_tools_tab_import_content_top' );
21
+				do_action('give_tools_tab_import_content_top');
22 22
 				?>
23 23
 
24 24
 				<table class="widefat Import-options-table give-table">
25 25
 					<thead>
26 26
 						<tr>
27
-							<th scope="col"><?php esc_html_e( 'Import Type', 'give' ); ?></th>
28
-							<th scope="col"><?php esc_html_e( 'Import Options', 'give' ); ?></th>
27
+							<th scope="col"><?php esc_html_e('Import Type', 'give'); ?></th>
28
+							<th scope="col"><?php esc_html_e('Import Options', 'give'); ?></th>
29 29
 						</tr>
30 30
 					</thead>
31 31
 					<tbody>
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
 						 *
39 39
 						 * @since 1.8.14
40 40
 						 */
41
-						do_action( 'give_tools_tab_import_table_top' );
41
+						do_action('give_tools_tab_import_table_top');
42 42
 						?>
43 43
 
44 44
 						<tr class="give-Import-pdf-sales-earnings">
45 45
 							<td scope="row" class="row-title">
46 46
 								<h3>
47
-									<span><?php esc_html_e( 'Import Donations', 'give' ); ?></span>
47
+									<span><?php esc_html_e('Import Donations', 'give'); ?></span>
48 48
 								</h3>
49
-								<p><?php esc_html_e( 'Import a CSV of Donations.', 'give' ); ?></p>
49
+								<p><?php esc_html_e('Import a CSV of Donations.', 'give'); ?></p>
50 50
 							</td>
51 51
 							<td>
52
-								<a class="button" href="<?php echo add_query_arg( array( 'importer-type' => 'import_donations' ) ); ?>">
53
-									<?php esc_html_e( 'Import CSV', 'give' ); ?>
52
+								<a class="button" href="<?php echo add_query_arg(array('importer-type' => 'import_donations')); ?>">
53
+									<?php esc_html_e('Import CSV', 'give'); ?>
54 54
 								</a>
55 55
 							</td>
56 56
 						</tr>
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 						 *
65 65
 						 * @since 1.8.14
66 66
 						 */
67
-						do_action( 'give_tools_tab_import_table_bottom' );
67
+						do_action('give_tools_tab_import_table_bottom');
68 68
 						?>
69 69
 					</tbody>
70 70
 				</table>
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 				 *
76 76
 				 * @since 1.8.14
77 77
 				 */
78
-				do_action( 'give_tools_tab_import_content_bottom' );
78
+				do_action('give_tools_tab_import_content_bottom');
79 79
 				?>
80 80
 
81 81
 			</div>
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-data.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@  discard block
 block discarded – undo
3 3
  * Admin View: Exports
4 4
  */
5 5
 
6
-if ( ! defined( 'ABSPATH' ) ) {
6
+if ( ! defined('ABSPATH')) {
7 7
 	exit;
8 8
 }
9 9
 
10
-if ( ! current_user_can( 'manage_give_settings' ) ) {
10
+if ( ! current_user_can('manage_give_settings')) {
11 11
 	return;
12 12
 }
13 13
 
@@ -16,29 +16,29 @@  discard block
 block discarded – undo
16 16
  *
17 17
  * @since 1.5
18 18
  */
19
-do_action( 'give_tools_recount_stats_before' );
19
+do_action('give_tools_recount_stats_before');
20 20
 ?>
21 21
 	<div id="poststuff">
22 22
 		<div class="postbox">
23 23
 
24
-			<h2 class="hndle ui-sortable-handle"><span><?php esc_html_e( 'Recount Stats', 'give' ); ?></span></h2>
24
+			<h2 class="hndle ui-sortable-handle"><span><?php esc_html_e('Recount Stats', 'give'); ?></span></h2>
25 25
 
26 26
 			<div class="inside recount-stats-controls">
27
-				<p><?php esc_html_e( 'Use these tools to recount stats, delete test transactions, or reset stats.', 'give' ); ?></p>
27
+				<p><?php esc_html_e('Use these tools to recount stats, delete test transactions, or reset stats.', 'give'); ?></p>
28 28
 				<form method="post" id="give-tools-recount-form" class="give-export-form">
29 29
 
30
-					<?php wp_nonce_field( 'give_ajax_export', 'give_ajax_export' ); ?>
30
+					<?php wp_nonce_field('give_ajax_export', 'give_ajax_export'); ?>
31 31
 
32 32
 					<select name="give-export-class" id="recount-stats-type">
33
-						<option value="0" selected="selected" disabled="disabled"><?php esc_html_e( 'Please select an option', 'give' ); ?></option>
34
-						<option data-type="recount-stats" value="Give_Tools_Recount_Income"><?php esc_html_e( 'Recalculate Total Donation Income Amount', 'give' ); ?></option>
35
-						<option data-type="recount-form" value="Give_Tools_Recount_Form_Stats"><?php esc_html_e( 'Recalculate Income Amount and Donation Counts for a Form', 'give' ); ?></option>
36
-						<option data-type="recount-all" value="Give_Tools_Recount_All_Stats"><?php esc_html_e( 'Recalculate Income Amount and Donation Counts for All Forms', 'give' ); ?></option>
37
-						<option data-type="recount-donor-stats" value="Give_Tools_Recount_Donor_Stats"><?php esc_html_e( 'Recalculate Donor Statistics', 'give' ); ?></option>
38
-						<option data-type="delete-test-transactions" value="Give_Tools_Delete_Test_Transactions"><?php esc_html_e( 'Delete Test Payments', 'give' ); ?></option>
39
-						<option data-type="delete-test-donors"   value="Give_Tools_Delete_Donors"><?php esc_html_e( 'Delete Test Donors and Payments', 'give' ); ?></option>
40
-						<option data-type="delete-import-donors"   value="Give_Tools_Import_Donors"><?php esc_html_e( 'Delete Imported Donors and Payments', 'give' ); ?></option>
41
-						<option data-type="reset-stats" value="Give_Tools_Reset_Stats"><?php esc_html_e( 'Delete All Data', 'give' ); ?></option>
33
+						<option value="0" selected="selected" disabled="disabled"><?php esc_html_e('Please select an option', 'give'); ?></option>
34
+						<option data-type="recount-stats" value="Give_Tools_Recount_Income"><?php esc_html_e('Recalculate Total Donation Income Amount', 'give'); ?></option>
35
+						<option data-type="recount-form" value="Give_Tools_Recount_Form_Stats"><?php esc_html_e('Recalculate Income Amount and Donation Counts for a Form', 'give'); ?></option>
36
+						<option data-type="recount-all" value="Give_Tools_Recount_All_Stats"><?php esc_html_e('Recalculate Income Amount and Donation Counts for All Forms', 'give'); ?></option>
37
+						<option data-type="recount-donor-stats" value="Give_Tools_Recount_Donor_Stats"><?php esc_html_e('Recalculate Donor Statistics', 'give'); ?></option>
38
+						<option data-type="delete-test-transactions" value="Give_Tools_Delete_Test_Transactions"><?php esc_html_e('Delete Test Payments', 'give'); ?></option>
39
+						<option data-type="delete-test-donors"   value="Give_Tools_Delete_Donors"><?php esc_html_e('Delete Test Donors and Payments', 'give'); ?></option>
40
+						<option data-type="delete-import-donors"   value="Give_Tools_Import_Donors"><?php esc_html_e('Delete Imported Donors and Payments', 'give'); ?></option>
41
+						<option data-type="reset-stats" value="Give_Tools_Reset_Stats"><?php esc_html_e('Delete All Data', 'give'); ?></option>
42 42
 						<?php
43 43
 						/**
44 44
 						 * Fires in the recount stats selectbox.
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 						 *
48 48
 						 * @since 1.5
49 49
 						 */
50
-						do_action( 'give_recount_tool_options' );
50
+						do_action('give_recount_tool_options');
51 51
 						?>
52 52
 					</select>
53 53
 
@@ -55,33 +55,33 @@  discard block
 block discarded – undo
55 55
 						<?php
56 56
 						$args = array(
57 57
 							'name'   => 'form_id',
58
-							'number' => - 1,
58
+							'number' => -1,
59 59
 							'chosen' => true,
60 60
 						);
61
-						echo Give()->html->forms_dropdown( $args );
61
+						echo Give()->html->forms_dropdown($args);
62 62
 						?>
63 63
 					</span>
64 64
 
65 65
 					<span class="tools-form-dropdown tools-form-dropdown-delete-import-donors" style="display: none">
66 66
 						<label for="delete-import-donors">
67 67
 							<?php
68
-							echo Give()->html->checkbox( array(
68
+							echo Give()->html->checkbox(array(
69 69
 								'name'    => 'delete-import-donors'
70
-							) );
71
-							_e( 'Delete imported WordPress users', 'give' );
70
+							));
71
+							_e('Delete imported WordPress users', 'give');
72 72
 							?>
73 73
 						</label>
74 74
 					</span>
75 75
 
76
-					<input type="submit" id="recount-stats-submit" value="<?php esc_attr_e( 'Submit', 'give' ); ?>" class="button-secondary"/>
76
+					<input type="submit" id="recount-stats-submit" value="<?php esc_attr_e('Submit', 'give'); ?>" class="button-secondary"/>
77 77
 
78 78
 					<br/>
79 79
 
80 80
 					<span class="give-recount-stats-descriptions">
81
-						<span id="recount-stats"><?php esc_html_e( 'Recalculates the overall donation income amount.', 'give' ); ?></span>
82
-						<span id="recount-form"><?php esc_html_e( 'Recalculates the donation and income stats for a specific form.', 'give' ); ?></span>
83
-						<span id="recount-all"><?php esc_html_e( 'Recalculates the earnings and sales stats for all forms.', 'give' ); ?></span>
84
-						<span id="recount-customer-stats"><?php esc_html_e( 'Recalculates the lifetime value and donation counts for all donors.', 'give' ); ?></span>
81
+						<span id="recount-stats"><?php esc_html_e('Recalculates the overall donation income amount.', 'give'); ?></span>
82
+						<span id="recount-form"><?php esc_html_e('Recalculates the donation and income stats for a specific form.', 'give'); ?></span>
83
+						<span id="recount-all"><?php esc_html_e('Recalculates the earnings and sales stats for all forms.', 'give'); ?></span>
84
+						<span id="recount-customer-stats"><?php esc_html_e('Recalculates the lifetime value and donation counts for all donors.', 'give'); ?></span>
85 85
 						<?php
86 86
 						/**
87 87
 						 * Fires in the recount stats description area.
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
 						 *
91 91
 						 * @since 1.5
92 92
 						 */
93
-						do_action( 'give_recount_tool_descriptions' );
93
+						do_action('give_recount_tool_descriptions');
94 94
 						?>
95
-						<span id="delete-test-transactions"><?php _e( '<strong>Deletes</strong> all TEST donations, donors, and related log entries.', 'give' ); ?></span>
96
-						<span id="reset-stats"><?php _e( '<strong>Deletes</strong> ALL donations, donors, and related log entries regardless of test or live mode.', 'give' ); ?></span>
95
+						<span id="delete-test-transactions"><?php _e('<strong>Deletes</strong> all TEST donations, donors, and related log entries.', 'give'); ?></span>
96
+						<span id="reset-stats"><?php _e('<strong>Deletes</strong> ALL donations, donors, and related log entries regardless of test or live mode.', 'give'); ?></span>
97 97
 					</span>
98 98
 
99 99
 					<span class="spinner"></span>
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 				 *
108 108
 				 * @since 1.5
109 109
 				 */
110
-				do_action( 'give_tools_recount_forms' );
110
+				do_action('give_tools_recount_forms');
111 111
 				?>
112 112
 			</div><!-- .inside -->
113 113
 		</div><!-- .postbox -->
@@ -118,4 +118,4 @@  discard block
 block discarded – undo
118 118
  *
119 119
  * @since 1.5
120 120
  */
121
-do_action( 'give_tools_recount_stats_after' );
121
+do_action('give_tools_recount_stats_after');
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-import-donations.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@  discard block
 block discarded – undo
3 3
  * Admin View: Import Donations
4 4
  */
5 5
 
6
-if ( ! defined( 'ABSPATH' ) ) {
6
+if ( ! defined('ABSPATH')) {
7 7
 	exit;
8 8
 }
9 9
 
10
-if ( ! current_user_can( 'manage_give_settings' ) ) {
10
+if ( ! current_user_can('manage_give_settings')) {
11 11
 	return;
12 12
 }
13 13
 
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
  *
17 17
  * @since 1.8.13
18 18
  */
19
-do_action( 'give_tools_import_donations_main_before' );
19
+do_action('give_tools_import_donations_main_before');
20 20
 ?>
21 21
     <div id="poststuff">
22 22
         <div class="postbox">
23
-            <h1 class="give-importer-h1" align="center"><?php esc_html_e( 'Import Donations', 'give' ); ?></h1>
23
+            <h1 class="give-importer-h1" align="center"><?php esc_html_e('Import Donations', 'give'); ?></h1>
24 24
             <div class="inside give-tools-setting-page-import">
25 25
 				<?php
26 26
 				/**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 				 *
29 29
 				 * @since 1.8.14
30 30
 				 */
31
-				do_action( 'give_tools_import_donations_form_before_start' );
31
+				do_action('give_tools_import_donations_form_before_start');
32 32
 				?>
33 33
                 <form method="post" id="give-import-donations-form" class="give-import-form tools-setting-page-import tools-setting-page-import">
34 34
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 					 *
39 39
 					 * @since 1.8.14
40 40
 					 */
41
-					do_action( 'give_tools_import_donations_form_start' );
41
+					do_action('give_tools_import_donations_form_start');
42 42
 					?>
43 43
 
44 44
 					<?php
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 					 *
48 48
 					 * @since 1.8.14
49 49
 					 */
50
-					do_action( 'give_tools_import_donations_form_end' );
50
+					do_action('give_tools_import_donations_form_end');
51 51
 					?>
52 52
                 </form>
53 53
 				<?php
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 				 *
57 57
 				 * @since 1.8.14
58 58
 				 */
59
-				do_action( 'give_tools_import_donations_form_after_end' );
59
+				do_action('give_tools_import_donations_form_after_end');
60 60
 				?>
61 61
             </div><!-- .inside -->
62 62
         </div><!-- .postbox -->
@@ -67,4 +67,4 @@  discard block
 block discarded – undo
67 67
  *
68 68
  * @since 1.8.13
69 69
  */
70
-do_action( 'give_tools_import_donations_main_after' );
70
+do_action('give_tools_import_donations_main_after');
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-system-info.php 1 patch
Spacing   +316 added lines, -316 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 inline">
25
-	<p class="give-debug-report-text"><?php sprintf(_e( 'Please copy and paste this information in your ticket when contacting support:', 'give' )); ?> </p>
25
+	<p class="give-debug-report-text"><?php sprintf(_e('Please copy and paste this information in your ticket when contacting support:', 'give')); ?> </p>
26 26
 	<div class="give-debug-report-actions">
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' ); ?> <span class="dashicons dashicons-external"></span></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'); ?> <span class="dashicons dashicons-external"></span></a>
29 29
 	</div>
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 Statuses"><?php _e( 'Registered Post Statuses', '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 statuses.', 'give' ) ); ?>"></span></td>
153
-			<td><?php echo esc_html( implode( ', ', get_post_stati() ) ); ?></td>
151
+			<td data-export-label="Registered Post Statuses"><?php _e('Registered Post Statuses', '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 statuses.', 'give')); ?>"></span></td>
153
+			<td><?php echo esc_html(implode(', ', get_post_stati())); ?></td>
154 154
 		</tr>
155 155
 	</tbody>
156 156
 </table>
@@ -158,90 +158,90 @@  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="TLS Connection"><?php _e( 'TLS Connection', 'give' ); ?>:</td>
172
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Most payment gateway APIs only support connections using the TLS 1.2 security protocol.', 'give' ) ); ?>"></span></td>
171
+			<td data-export-label="TLS Connection"><?php _e('TLS Connection', 'give'); ?>:</td>
172
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Most payment gateway APIs only support connections using the TLS 1.2 security protocol.', 'give')); ?>"></span></td>
173 173
 			<td><?php
174
-				$tls_check = wp_remote_post( 'https://www.howsmyssl.com/a/check' );
175
-				if ( ! is_wp_error( $tls_check ) ) {
176
-					$tls_check = json_decode( wp_remote_retrieve_body( $tls_check ) );
174
+				$tls_check = wp_remote_post('https://www.howsmyssl.com/a/check');
175
+				if ( ! is_wp_error($tls_check)) {
176
+					$tls_check = json_decode(wp_remote_retrieve_body($tls_check));
177 177
 					/* translators: %s: SSL connection response */
178
-					printf( __('Connection uses %s', 'give'), esc_html( $tls_check->tls_version )) ;
178
+					printf(__('Connection uses %s', 'give'), esc_html($tls_check->tls_version));
179 179
 				}
180 180
 				?></td>
181 181
 		</tr>
182 182
 		<tr>
183
-			<td data-export-label="TLS Connection"><?php _e( 'TLS Rating', 'give' ); ?>:</td>
184
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'The server\'s connection as rated by https://www.howsmyssl.com/', 'give' ) ); ?>"></span></td>
185
-			<td><?php if ( ! is_wp_error( $tls_check ) ) {
186
-					esc_html_e( $tls_check->rating);
183
+			<td data-export-label="TLS Connection"><?php _e('TLS Rating', 'give'); ?>:</td>
184
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('The server\'s connection as rated by https://www.howsmyssl.com/', 'give')); ?>"></span></td>
185
+			<td><?php if ( ! is_wp_error($tls_check)) {
186
+					esc_html_e($tls_check->rating);
187 187
 				} ?></td>
188 188
 		</tr>
189 189
 		<tr>
190
-			<td data-export-label="Server Info"><?php _e( 'Server Info', 'give' ); ?>:</td>
191
-			<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>
192
-			<td><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ); ?></td>
190
+			<td data-export-label="Server Info"><?php _e('Server Info', 'give'); ?>:</td>
191
+			<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>
192
+			<td><?php echo esc_html($_SERVER['SERVER_SOFTWARE']); ?></td>
193 193
 		</tr>
194 194
 		<tr>
195
-			<td data-export-label="PHP Version"><?php _e( 'PHP Version', 'give' ); ?>:</td>
196
-			<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>
195
+			<td data-export-label="PHP Version"><?php _e('PHP Version', 'give'); ?>:</td>
196
+			<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>
197 197
 			<td><?php
198 198
 				// Check if phpversion function exists.
199
-				if ( function_exists( 'phpversion' ) ) {
199
+				if (function_exists('phpversion')) {
200 200
 					$php_version = phpversion();
201 201
 
202
-					if ( version_compare( $php_version, '5.6', '<' ) ) {
203
-						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>';
202
+					if (version_compare($php_version, '5.6', '<')) {
203
+						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>';
204 204
 					} else {
205
-						echo '<mark class="yes">' . esc_html( $php_version ) . '</mark>';
205
+						echo '<mark class="yes">'.esc_html($php_version).'</mark>';
206 206
 					}
207 207
 				} else {
208
-					_e( "Couldn't determine PHP version because phpversion() doesn't exist.", 'give' );
208
+					_e("Couldn't determine PHP version because phpversion() doesn't exist.", 'give');
209 209
 				}
210 210
 				?></td>
211 211
 		</tr>
212
-		<?php if ( function_exists( 'ini_get' ) ) : ?>
212
+		<?php if (function_exists('ini_get')) : ?>
213 213
 			<tr>
214
-				<td data-export-label="PHP Post Max Size"><?php _e( 'PHP Post Max Size', 'give' ); ?>:</td>
215
-				<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>
216
-				<td><?php echo size_format( give_let_to_num( ini_get( 'post_max_size' ) ) ); ?></td>
214
+				<td data-export-label="PHP Post Max Size"><?php _e('PHP Post Max Size', 'give'); ?>:</td>
215
+				<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>
216
+				<td><?php echo size_format(give_let_to_num(ini_get('post_max_size'))); ?></td>
217 217
 			</tr>
218 218
 			<tr>
219
-				<td data-export-label="PHP Time Limit"><?php _e( 'PHP Time Limit', 'give' ); ?>:</td>
220
-				<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>
221
-				<td><?php echo ini_get( 'max_execution_time' ); ?></td>
219
+				<td data-export-label="PHP Time Limit"><?php _e('PHP Time Limit', 'give'); ?>:</td>
220
+				<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>
221
+				<td><?php echo ini_get('max_execution_time'); ?></td>
222 222
 			</tr>
223 223
 			<tr>
224
-				<td data-export-label="PHP Max Input Vars"><?php _e( 'PHP Max Input Vars', 'give' ); ?>:</td>
225
-				<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>
226
-				<td><?php echo ini_get( 'max_input_vars' ); ?></td>
224
+				<td data-export-label="PHP Max Input Vars"><?php _e('PHP Max Input Vars', 'give'); ?>:</td>
225
+				<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>
226
+				<td><?php echo ini_get('max_input_vars'); ?></td>
227 227
 			</tr>
228 228
 			<tr>
229
-				<td data-export-label="PHP Max Upload Size"><?php _e( 'PHP Max Upload Size', 'give' ); ?>:</td>
230
-				<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>
231
-				<td><?php echo size_format( wp_max_upload_size() ); ?></td>
229
+				<td data-export-label="PHP Max Upload Size"><?php _e('PHP Max Upload Size', 'give'); ?>:</td>
230
+				<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>
231
+				<td><?php echo size_format(wp_max_upload_size()); ?></td>
232 232
 			</tr>
233 233
 			<tr>
234
-				<td data-export-label="cURL Version"><?php _e( 'cURL Version', 'give' ); ?>:</td>
235
-				<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>
234
+				<td data-export-label="cURL Version"><?php _e('cURL Version', 'give'); ?>:</td>
235
+				<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>
236 236
 				<td>
237 237
 					<?php
238
-					if ( function_exists( 'curl_version' ) ) {
238
+					if (function_exists('curl_version')) {
239 239
 						$curl_version = curl_version();
240 240
 
241
-						if ( version_compare( $curl_version['version'], '7.40', '<' ) ) {
242
-							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>';
241
+						if (version_compare($curl_version['version'], '7.40', '<')) {
242
+							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>';
243 243
 						} else {
244
-							echo '<mark class="yes">' . esc_html( $curl_version['version'] . ', ' . $curl_version['ssl_version'] ) . '</mark>';
244
+							echo '<mark class="yes">'.esc_html($curl_version['version'].', '.$curl_version['ssl_version']).'</mark>';
245 245
 						}
246 246
 					} else {
247 247
 						echo '&ndash';
@@ -250,42 +250,42 @@  discard block
 block discarded – undo
250 250
 				</td>
251 251
 			</tr>
252 252
 			<tr>
253
-				<td data-export-label="SUHOSIN Installed"><?php _e( 'SUHOSIN Installed', 'give' ); ?>:</td>
254
-				<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>
255
-				<td><?php echo extension_loaded( 'suhosin' ) ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
253
+				<td data-export-label="SUHOSIN Installed"><?php _e('SUHOSIN Installed', 'give'); ?>:</td>
254
+				<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>
255
+				<td><?php echo extension_loaded('suhosin') ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
256 256
 			</tr>
257 257
 		<?php endif;
258 258
 
259
-		if ( $wpdb->use_mysqli ) {
260
-			$ver = mysqli_get_server_info( $wpdb->dbh );
259
+		if ($wpdb->use_mysqli) {
260
+			$ver = mysqli_get_server_info($wpdb->dbh);
261 261
 		} else {
262 262
 			$ver = mysql_get_server_info();
263 263
 		}
264 264
 
265
-		if ( ! empty( $wpdb->is_mysql ) && ! stristr( $ver, 'MariaDB' ) ) : ?>
265
+		if ( ! empty($wpdb->is_mysql) && ! stristr($ver, 'MariaDB')) : ?>
266 266
 			<tr>
267
-				<td data-export-label="MySQL Version"><?php _e( 'MySQL Version', 'give' ); ?>:</td>
268
-				<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>
267
+				<td data-export-label="MySQL Version"><?php _e('MySQL Version', 'give'); ?>:</td>
268
+				<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>
269 269
 				<td>
270 270
 					<?php
271 271
 					$mysql_version = $wpdb->db_version();
272 272
 
273
-					if ( version_compare( $mysql_version, '5.6', '<' ) ) {
274
-						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>';
273
+					if (version_compare($mysql_version, '5.6', '<')) {
274
+						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>';
275 275
 					} else {
276
-						echo '<mark class="yes">' . esc_html( $mysql_version ) . '</mark>';
276
+						echo '<mark class="yes">'.esc_html($mysql_version).'</mark>';
277 277
 					}
278 278
 					?>
279 279
 				</td>
280 280
 			</tr>
281 281
 		<?php endif; ?>
282 282
 		<tr>
283
-			<td data-export-label="Default Timezone is UTC"><?php _e( 'Default Timezone is UTC', 'give' ); ?>:</td>
284
-			<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>
283
+			<td data-export-label="Default Timezone is UTC"><?php _e('Default Timezone is UTC', 'give'); ?>:</td>
284
+			<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>
285 285
 			<td><?php
286 286
 				$default_timezone = date_default_timezone_get();
287
-				if ( 'UTC' !== $default_timezone ) {
288
-					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( 'Default timezone is %s - it should be UTC', 'give' ), $default_timezone ) . '</mark>';
287
+				if ('UTC' !== $default_timezone) {
288
+					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> '.sprintf(__('Default timezone is %s - it should be UTC', 'give'), $default_timezone).'</mark>';
289 289
 				} else {
290 290
 					echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
291 291
 				} ?>
@@ -296,118 +296,118 @@  discard block
 block discarded – undo
296 296
 
297 297
 		// fsockopen/cURL.
298 298
 		$posting['fsockopen_curl']['name'] = 'fsockopen/cURL';
299
-		$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' );
299
+		$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');
300 300
 
301
-		if ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ) {
301
+		if (function_exists('fsockopen') || function_exists('curl_init')) {
302 302
 			$posting['fsockopen_curl']['success'] = true;
303 303
 		} else {
304 304
 			$posting['fsockopen_curl']['success'] = false;
305
-			$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' );
305
+			$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');
306 306
 		}
307 307
 
308 308
 		// SOAP.
309 309
 		$posting['soap_client']['name'] = 'SoapClient';
310
-		$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' );
310
+		$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');
311 311
 
312
-		if ( class_exists( 'SoapClient' ) ) {
312
+		if (class_exists('SoapClient')) {
313 313
 			$posting['soap_client']['success'] = true;
314 314
 		} else {
315 315
 			$posting['soap_client']['success'] = false;
316
-			$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>' );
316
+			$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>');
317 317
 		}
318 318
 
319 319
 		// DOMDocument.
320 320
 		$posting['dom_document']['name'] = 'DOMDocument';
321
-		$posting['dom_document']['help'] = __( 'HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'give' );
321
+		$posting['dom_document']['help'] = __('HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'give');
322 322
 
323
-		if ( class_exists( 'DOMDocument' ) ) {
323
+		if (class_exists('DOMDocument')) {
324 324
 			$posting['dom_document']['success'] = true;
325 325
 		} else {
326 326
 			$posting['dom_document']['success'] = false;
327
-			$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>' );
327
+			$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>');
328 328
 		}
329 329
 
330 330
 		// gzip.
331 331
 		$posting['gzip']['name'] = 'gzip';
332
-		$posting['gzip']['help'] = __( 'gzip is used for file compression and decompression.', 'give' );
332
+		$posting['gzip']['help'] = __('gzip is used for file compression and decompression.', 'give');
333 333
 
334
-		if ( is_callable( 'gzopen' ) ) {
334
+		if (is_callable('gzopen')) {
335 335
 			$posting['gzip']['success'] = true;
336 336
 		} else {
337 337
 			$posting['gzip']['success'] = false;
338
-			$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>' );
338
+			$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>');
339 339
 		}
340 340
 
341 341
 		// GD Graphics Library.
342 342
 		$posting['gd']['name'] = 'GD Graphics Library';
343
-		$posting['gd']['help'] = __( 'GD Graphics Library is used for dynamically manipulating images.', 'give' );
344
-		$posting['gd']['success'] = extension_loaded( 'gd' ) && function_exists( 'gd_info' ) ? true : false;
343
+		$posting['gd']['help'] = __('GD Graphics Library is used for dynamically manipulating images.', 'give');
344
+		$posting['gd']['success'] = extension_loaded('gd') && function_exists('gd_info') ? true : false;
345 345
 
346 346
 		// Multibyte String.
347 347
 		$posting['mbstring']['name'] = 'Multibyte String';
348
-		$posting['mbstring']['help'] = __( 'Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'give' );
348
+		$posting['mbstring']['help'] = __('Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'give');
349 349
 
350
-		if ( extension_loaded( 'mbstring' ) ) {
350
+		if (extension_loaded('mbstring')) {
351 351
 			$posting['mbstring']['success'] = true;
352 352
 		} else {
353 353
 			$posting['mbstring']['success'] = false;
354
-			$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>' );
354
+			$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>');
355 355
 		}
356 356
 
357 357
 		// WP Remote Post Check.
358
-		$posting['wp_remote_post']['name'] = __( 'Remote Post', 'give');
359
-		$posting['wp_remote_post']['help'] = __( 'PayPal uses this method of communicating when sending back transaction information.', 'give' );
358
+		$posting['wp_remote_post']['name'] = __('Remote Post', 'give');
359
+		$posting['wp_remote_post']['help'] = __('PayPal uses this method of communicating when sending back transaction information.', 'give');
360 360
 
361
-		$response = wp_safe_remote_post( 'https://www.paypal.com/cgi-bin/webscr', array(
361
+		$response = wp_safe_remote_post('https://www.paypal.com/cgi-bin/webscr', array(
362 362
 			'timeout'     => 60,
363
-			'user-agent'  => 'Give/' . GIVE_VERSION,
363
+			'user-agent'  => 'Give/'.GIVE_VERSION,
364 364
 			'httpversion' => '1.1',
365 365
 			'body'        => array(
366 366
 				'cmd'     => '_notify-validate'
367 367
 			)
368
-		) );
368
+		));
369 369
 
370
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
370
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
371 371
 			$posting['wp_remote_post']['success'] = true;
372 372
 		} else {
373
-			$posting['wp_remote_post']['note']    = __( 'wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider.', 'give' );
374
-			if ( is_wp_error( $response ) ) {
375
-				$posting['wp_remote_post']['note'] .= ' ' . sprintf( __( 'Error: %s', 'give' ), sanitize_text_field( $response->get_error_message() ) );
373
+			$posting['wp_remote_post']['note']    = __('wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider.', 'give');
374
+			if (is_wp_error($response)) {
375
+				$posting['wp_remote_post']['note'] .= ' '.sprintf(__('Error: %s', 'give'), sanitize_text_field($response->get_error_message()));
376 376
 			} else {
377
-				$posting['wp_remote_post']['note'] .= ' ' . sprintf( __( 'Status code: %s', 'give' ), sanitize_text_field( $response['response']['code'] ) );
377
+				$posting['wp_remote_post']['note'] .= ' '.sprintf(__('Status code: %s', 'give'), sanitize_text_field($response['response']['code']));
378 378
 			}
379 379
 			$posting['wp_remote_post']['success'] = false;
380 380
 		}
381 381
 
382 382
 		// WP Remote Get Check.
383
-		$posting['wp_remote_get']['name'] = __( 'Remote Get', 'give');
384
-		$posting['wp_remote_get']['help'] = __( 'Give plugins may use this method of communication when checking for plugin updates.', 'give' );
383
+		$posting['wp_remote_get']['name'] = __('Remote Get', 'give');
384
+		$posting['wp_remote_get']['help'] = __('Give plugins may use this method of communication when checking for plugin updates.', 'give');
385 385
 
386
-		$response = wp_safe_remote_get( 'https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . ( is_multisite() ? '1' : '0' ) );
386
+		$response = wp_safe_remote_get('https://woocommerce.com/wc-api/product-key-api?request=ping&network='.(is_multisite() ? '1' : '0'));
387 387
 
388
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
388
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
389 389
 			$posting['wp_remote_get']['success'] = true;
390 390
 		} else {
391
-			$posting['wp_remote_get']['note']    = __( 'wp_remote_get() failed. The Give plugin updater won\'t work with your server. Contact your hosting provider.', 'give' );
392
-			if ( is_wp_error( $response ) ) {
393
-				$posting['wp_remote_get']['note'] .= ' ' . sprintf( __( 'Error: %s', 'give' ), give_clean( $response->get_error_message() ) );
391
+			$posting['wp_remote_get']['note']    = __('wp_remote_get() failed. The Give plugin updater won\'t work with your server. Contact your hosting provider.', 'give');
392
+			if (is_wp_error($response)) {
393
+				$posting['wp_remote_get']['note'] .= ' '.sprintf(__('Error: %s', 'give'), give_clean($response->get_error_message()));
394 394
 			} else {
395
-				$posting['wp_remote_get']['note'] .= ' ' . sprintf( __( 'Status code: %s', 'give' ), give_clean( $response['response']['code'] ) );
395
+				$posting['wp_remote_get']['note'] .= ' '.sprintf(__('Status code: %s', 'give'), give_clean($response['response']['code']));
396 396
 			}
397 397
 			$posting['wp_remote_get']['success'] = false;
398 398
 		}
399 399
 
400
-		$posting = apply_filters( 'give_debug_posting', $posting );
400
+		$posting = apply_filters('give_debug_posting', $posting);
401 401
 
402
-		foreach ( $posting as $post ) {
403
-			$mark = ! empty( $post['success'] ) ? 'yes' : 'error';
402
+		foreach ($posting as $post) {
403
+			$mark = ! empty($post['success']) ? 'yes' : 'error';
404 404
 			?>
405 405
 			<tr>
406
-				<td data-export-label="<?php echo esc_html( $post['name'] ); ?>"><?php echo esc_html( $post['name'] ); ?>:</td>
407
-				<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>
406
+				<td data-export-label="<?php echo esc_html($post['name']); ?>"><?php echo esc_html($post['name']); ?>:</td>
407
+				<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>
408 408
 				<td>
409 409
 					<mark class="<?php echo $mark; ?>">
410
-						<?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'] ) : ''; ?>
410
+						<?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']) : ''; ?>
411 411
 					</mark>
412 412
 				</td>
413 413
 			</tr>
@@ -420,122 +420,122 @@  discard block
 block discarded – undo
420 420
 <table class="give-status-table widefat" cellspacing="0">
421 421
 	<thead>
422 422
 		<tr>
423
-			<th colspan="3" data-export-label="Give Configuration"><h2><?php _e( 'Give Configuration', 'give' ); ?></h2></th>
423
+			<th colspan="3" data-export-label="Give Configuration"><h2><?php _e('Give Configuration', 'give'); ?></h2></th>
424 424
 		</tr>
425 425
 	</thead>
426 426
 	<tbody>
427 427
 		<tr>
428
-			<td data-export-label="Give Version"><?php _e( 'Give Version', 'give' ); ?>:</td>
429
-			<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>
430
-			<td><?php echo esc_html( GIVE_VERSION ); ?></td>
428
+			<td data-export-label="Give Version"><?php _e('Give Version', 'give'); ?>:</td>
429
+			<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>
430
+			<td><?php echo esc_html(GIVE_VERSION); ?></td>
431 431
 		</tr>
432 432
 		<tr>
433
-			<td data-export-label="Upgraded From"><?php _e( 'Upgraded From', 'give' ); ?>:</td>
434
-			<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>
435
-			<td><?php echo esc_html( get_option( 'give_version_upgraded_from', '&ndash;' ) ); ?></td>
433
+			<td data-export-label="Upgraded From"><?php _e('Upgraded From', 'give'); ?>:</td>
434
+			<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>
435
+			<td><?php echo esc_html(get_option('give_version_upgraded_from', '&ndash;')); ?></td>
436 436
 		</tr>
437 437
 		<tr>
438
-			<td data-export-label="Test Mode"><?php _e( 'Test Mode', 'give' ); ?>:</td>
439
-			<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>
440
-			<td><?php echo give_is_test_mode() ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
438
+			<td data-export-label="Test Mode"><?php _e('Test Mode', 'give'); ?>:</td>
439
+			<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>
440
+			<td><?php echo give_is_test_mode() ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
441 441
 		</tr>
442 442
 		<tr>
443
-			<td data-export-label="Currency Code"><?php _e( 'Currency Code', 'give' ); ?>:</td>
444
-			<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>
445
-			<td><?php echo esc_html( give_get_currency() ); ?></td>
443
+			<td data-export-label="Currency Code"><?php _e('Currency Code', 'give'); ?>:</td>
444
+			<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>
445
+			<td><?php echo esc_html(give_get_currency()); ?></td>
446 446
 		</tr>
447 447
 		<tr>
448
-			<td data-export-label="Currency Position"><?php _e( 'Currency Position', 'give' ); ?>:</td>
449
-			<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>
450
-			<td><?php echo 'before' === give_get_option( 'currency_position' ) ? __( 'Before', 'give' ) : __( 'After', 'give' ); ?></td>
448
+			<td data-export-label="Currency Position"><?php _e('Currency Position', 'give'); ?>:</td>
449
+			<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>
450
+			<td><?php echo 'before' === give_get_option('currency_position') ? __('Before', 'give') : __('After', 'give'); ?></td>
451 451
 		</tr>
452 452
 		<tr>
453
-			<td data-export-label="Decimal Separator"><?php _e( 'Decimal Separator', 'give' ); ?>:</td>
454
-			<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>
455
-			<td><?php echo esc_html( give_get_price_decimal_separator() ); ?></td>
453
+			<td data-export-label="Decimal Separator"><?php _e('Decimal Separator', 'give'); ?>:</td>
454
+			<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>
455
+			<td><?php echo esc_html(give_get_price_decimal_separator()); ?></td>
456 456
 		</tr>
457 457
 		<tr>
458
-			<td data-export-label="Thousands Separator"><?php _e( 'Thousands Separator', 'give' ); ?>:</td>
459
-			<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>
460
-			<td><?php echo esc_html( give_get_price_thousand_separator() ); ?></td>
458
+			<td data-export-label="Thousands Separator"><?php _e('Thousands Separator', 'give'); ?>:</td>
459
+			<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>
460
+			<td><?php echo esc_html(give_get_price_thousand_separator()); ?></td>
461 461
 		</tr>
462 462
 		<tr>
463
-			<td data-export-label="Success Page"><?php _e( 'Success Page', 'give' ); ?>:</td>
464
-			<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>
465
-			<td><?php echo ! empty( $give_options['success_page'] ) ? esc_url( get_permalink( $give_options['success_page'] ) ) : '&ndash;'; ?></td>
463
+			<td data-export-label="Success Page"><?php _e('Success Page', 'give'); ?>:</td>
464
+			<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>
465
+			<td><?php echo ! empty($give_options['success_page']) ? esc_url(get_permalink($give_options['success_page'])) : '&ndash;'; ?></td>
466 466
 		</tr>
467 467
 		<tr>
468
-			<td data-export-label="Failure Page"><?php _e( 'Failure Page', 'give' ); ?>:</td>
469
-			<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>
470
-			<td><?php echo ! empty( $give_options['failure_page'] ) ? esc_url( get_permalink( $give_options['failure_page'] ) ) : '&ndash;'; ?></td>
468
+			<td data-export-label="Failure Page"><?php _e('Failure Page', 'give'); ?>:</td>
469
+			<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>
470
+			<td><?php echo ! empty($give_options['failure_page']) ? esc_url(get_permalink($give_options['failure_page'])) : '&ndash;'; ?></td>
471 471
 		</tr>
472 472
 		<tr>
473
-			<td data-export-label="Donation History Page"><?php _e( 'Donation History Page', 'give' ); ?>:</td>
474
-			<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>
475
-			<td><?php echo ! empty( $give_options['history_page'] ) ? esc_url( get_permalink( $give_options['history_page'] ) ) : '&ndash;'; ?></td>
473
+			<td data-export-label="Donation History Page"><?php _e('Donation History Page', 'give'); ?>:</td>
474
+			<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>
475
+			<td><?php echo ! empty($give_options['history_page']) ? esc_url(get_permalink($give_options['history_page'])) : '&ndash;'; ?></td>
476 476
 		</tr>
477 477
 		<tr>
478
-			<td data-export-label="Give Forms Slug"><?php _e( 'Give Forms Slug', 'give' ); ?>:</td>
479
-			<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>
480
-			<td><?php echo esc_html( defined( 'GIVE_SLUG' ) ? '/' . GIVE_SLUG . '/' : '/donations/' ); ?></td>
478
+			<td data-export-label="Give Forms Slug"><?php _e('Give Forms Slug', 'give'); ?>:</td>
479
+			<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>
480
+			<td><?php echo esc_html(defined('GIVE_SLUG') ? '/'.GIVE_SLUG.'/' : '/donations/'); ?></td>
481 481
 		</tr>
482 482
 		<?php
483 483
 		$active_gateways = give_get_enabled_payment_gateways();
484 484
 		$enabled_gateways = $default_gateway = '';
485 485
 
486
-		if ( $active_gateways ) {
487
-			$default_gateway_is_active = give_is_gateway_active( give_get_default_gateway( null ) );
486
+		if ($active_gateways) {
487
+			$default_gateway_is_active = give_is_gateway_active(give_get_default_gateway(null));
488 488
 
489
-			if ( $default_gateway_is_active ) {
490
-				$default_gateway = give_get_default_gateway( null );
491
-				$default_gateway = $active_gateways[ $default_gateway ]['admin_label'];
489
+			if ($default_gateway_is_active) {
490
+				$default_gateway = give_get_default_gateway(null);
491
+				$default_gateway = $active_gateways[$default_gateway]['admin_label'];
492 492
 			} else {
493
-				$default_gateway = __( 'Test Donation', 'give' );
493
+				$default_gateway = __('Test Donation', 'give');
494 494
 			}
495 495
 
496 496
 			$gateways = array();
497 497
 
498
-			foreach ( $active_gateways as $gateway ) {
498
+			foreach ($active_gateways as $gateway) {
499 499
 				$gateways[] = $gateway['admin_label'];
500 500
 			}
501 501
 
502
-			$enabled_gateways = implode( ', ', $gateways );
502
+			$enabled_gateways = implode(', ', $gateways);
503 503
 		}
504 504
 		?>
505 505
 		<tr>
506
-			<td data-export-label="Enabled Payment Gateways"><?php _e( 'Enabled Payment Gateways', 'give' ); ?>:</td>
507
-			<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>
508
-			<td><?php echo esc_html( ! empty( $enabled_gateways ) ? $enabled_gateways : '&ndash;' ); ?></td>
506
+			<td data-export-label="Enabled Payment Gateways"><?php _e('Enabled Payment Gateways', 'give'); ?>:</td>
507
+			<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>
508
+			<td><?php echo esc_html( ! empty($enabled_gateways) ? $enabled_gateways : '&ndash;'); ?></td>
509 509
 		</tr>
510 510
 		<tr>
511
-			<td data-export-label="Default Payment Gateway"><?php _e( 'Default Payment Gateway', 'give' ); ?>:</td>
512
-			<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>
513
-			<td><?php echo esc_html( ! empty( $default_gateway ) ? $default_gateway : '&ndash;' ); ?></td>
511
+			<td data-export-label="Default Payment Gateway"><?php _e('Default Payment Gateway', 'give'); ?>:</td>
512
+			<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>
513
+			<td><?php echo esc_html( ! empty($default_gateway) ? $default_gateway : '&ndash;'); ?></td>
514 514
 		</tr>
515 515
 		<tr>
516
-			<td data-export-label="PayPal IPN Verification"><?php _e( 'PayPal IPN Verification', 'give' ); ?>:</td>
517
-			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether admins requires verification of IPN notifications with PayPal.', 'give' ) ); ?>"></span></td>
518
-			<td><?php echo 'enabled' === give_get_option( 'paypal_verification' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
516
+			<td data-export-label="PayPal IPN Verification"><?php _e('PayPal IPN Verification', 'give'); ?>:</td>
517
+			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr(__('Whether admins requires verification of IPN notifications with PayPal.', 'give')); ?>"></span></td>
518
+			<td><?php echo 'enabled' === give_get_option('paypal_verification') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
519 519
 		</tr>
520 520
 		<tr>
521
-			<td data-export-label="PayPal IPN Notifications"><?php _e( 'PayPal IPN Notifications', 'give' ); ?>:</td>
522
-			<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>
521
+			<td data-export-label="PayPal IPN Notifications"><?php _e('PayPal IPN Notifications', 'give'); ?>:</td>
522
+			<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>
523 523
 			<td>
524 524
 				<?php
525
-				$last_paypal_ipn_received = get_option( 'give_last_paypal_ipn_received' );
526
-				if( is_array( $last_paypal_ipn_received ) && count( $last_paypal_ipn_received ) > 0 ) {
525
+				$last_paypal_ipn_received = get_option('give_last_paypal_ipn_received');
526
+				if (is_array($last_paypal_ipn_received) && count($last_paypal_ipn_received) > 0) {
527 527
 					$donation_id     = $last_paypal_ipn_received['payment_id'];
528
-					$ipn_timestamp   = give_get_meta( $donation_id, 'give_last_paypal_ipn_received', true );
529
-					$transaction_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id=' . $last_paypal_ipn_received['transaction_id'];
530
-					$donation_url    = site_url() . '/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $donation_id;
528
+					$ipn_timestamp   = give_get_meta($donation_id, 'give_last_paypal_ipn_received', true);
529
+					$transaction_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id='.$last_paypal_ipn_received['transaction_id'];
530
+					$donation_url    = site_url().'/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id='.$donation_id;
531 531
 					echo sprintf(
532
-							__( 'IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ) on %s at %s. Status %s', 'give' ),
532
+							__('IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ) on %s at %s. Status %s', 'give'),
533 533
 							$donation_url,
534 534
 							$donation_id,
535 535
 							$transaction_url,
536 536
 							$last_paypal_ipn_received['transaction_id'],
537
-							date_i18n( 'm/d/Y', $ipn_timestamp ),
538
-							date_i18n( 'H:i', $ipn_timestamp ),
537
+							date_i18n('m/d/Y', $ipn_timestamp),
538
+							date_i18n('H:i', $ipn_timestamp),
539 539
 							$last_paypal_ipn_received['auth_status']
540 540
 					);
541 541
 				} else {
@@ -545,14 +545,14 @@  discard block
 block discarded – undo
545 545
 			</td>
546 546
 		</tr>
547 547
 		<tr>
548
-			<td data-export-label="Admin Email Notifications"><?php _e( 'Admin Email Notifications', 'give' ); ?>:</td>
549
-			<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>
550
-			<td><?php echo 'enabled' === give_get_option( 'admin_notices' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
548
+			<td data-export-label="Admin Email Notifications"><?php _e('Admin Email Notifications', 'give'); ?>:</td>
549
+			<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>
550
+			<td><?php echo 'enabled' === give_get_option('admin_notices') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
551 551
 		</tr>
552 552
 		<tr>
553
-			<td data-export-label="Donor Email Access"><?php _e( 'Donor Email Access', 'give' ); ?>:</td>
554
-			<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>
555
-			<td><?php echo 'enabled' === give_get_option( 'email_access' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
553
+			<td data-export-label="Donor Email Access"><?php _e('Donor Email Access', 'give'); ?>:</td>
554
+			<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>
555
+			<td><?php echo 'enabled' === give_get_option('email_access') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
556 556
 		</tr>
557 557
 	</tbody>
558 558
 </table>
@@ -560,45 +560,45 @@  discard block
 block discarded – undo
560 560
 <table class="give-status-table widefat" cellspacing="0">
561 561
 	<thead>
562 562
 		<tr>
563
-			<th colspan="3" data-export-label="Session Configuration"><h2><?php _e( 'Session Configuration', 'give' ); ?></h2></th>
563
+			<th colspan="3" data-export-label="Session Configuration"><h2><?php _e('Session Configuration', 'give'); ?></h2></th>
564 564
 		</tr>
565 565
 	</thead>
566 566
 	<tbody>
567 567
 		<tr>
568
-			<td data-export-label="Give Use Sessions"><?php _e( 'Give Use Sessions', 'give' ); ?>:</td>
569
-			<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>
570
-			<td><?php echo defined( 'GIVE_USE_PHP_SESSIONS' ) && GIVE_USE_PHP_SESSIONS ? __( 'Enforced', 'give' ) : ( Give()->session->use_php_sessions() ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ) ); ?></td>
568
+			<td data-export-label="Give Use Sessions"><?php _e('Give Use Sessions', 'give'); ?>:</td>
569
+			<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>
570
+			<td><?php echo defined('GIVE_USE_PHP_SESSIONS') && GIVE_USE_PHP_SESSIONS ? __('Enforced', 'give') : (Give()->session->use_php_sessions() ? __('Enabled', 'give') : __('Disabled', 'give')); ?></td>
571 571
 		</tr>
572 572
 		<tr>
573
-			<td data-export-label="Session"><?php _e( 'Session', 'give' ); ?>:</td>
574
-			<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>
575
-			<td><?php echo isset( $_SESSION ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
573
+			<td data-export-label="Session"><?php _e('Session', 'give'); ?>:</td>
574
+			<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>
575
+			<td><?php echo isset($_SESSION) ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
576 576
 		</tr>
577
-		<?php if ( isset( $_SESSION ) ) { ?>
577
+		<?php if (isset($_SESSION)) { ?>
578 578
 			<tr>
579
-				<td data-export-label="Session Name"><?php _e( 'Session Name', 'give' ); ?>:</td>
580
-				<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>
581
-				<td><?php echo esc_html( ini_get( 'session.name' ) ); ?></td>
579
+				<td data-export-label="Session Name"><?php _e('Session Name', 'give'); ?>:</td>
580
+				<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>
581
+				<td><?php echo esc_html(ini_get('session.name')); ?></td>
582 582
 			</tr>
583 583
 			<tr>
584
-				<td data-export-label="Cookie Path"><?php _e( 'Cookie Path', 'give' ); ?>:</td>
585
-				<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>
586
-				<td><?php echo esc_html( ini_get( 'session.cookie_path' ) ); ?></td>
584
+				<td data-export-label="Cookie Path"><?php _e('Cookie Path', 'give'); ?>:</td>
585
+				<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>
586
+				<td><?php echo esc_html(ini_get('session.cookie_path')); ?></td>
587 587
 			</tr>
588 588
 			<tr>
589
-				<td data-export-label="Save Path"><?php _e( 'Save Path', 'give' ); ?>:</td>
590
-				<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>
591
-				<td><?php echo esc_html( ini_get( 'session.save_path' ) ); ?></td>
589
+				<td data-export-label="Save Path"><?php _e('Save Path', 'give'); ?>:</td>
590
+				<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>
591
+				<td><?php echo esc_html(ini_get('session.save_path')); ?></td>
592 592
 			</tr>
593 593
 			<tr>
594
-				<td data-export-label="Use Cookies"><?php _e( 'Use Cookies', 'give' ); ?>:</td>
595
-				<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>
596
-				<td><?php echo ini_get( 'session.use_cookies' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
594
+				<td data-export-label="Use Cookies"><?php _e('Use Cookies', 'give'); ?>:</td>
595
+				<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>
596
+				<td><?php echo ini_get('session.use_cookies') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
597 597
 			</tr>
598 598
 			<tr>
599
-				<td data-export-label="Use Only Cookies"><?php _e( 'Use Only Cookies', 'give' ); ?>:</td>
600
-				<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>
601
-				<td><?php echo ini_get( 'session.use_only_cookies' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
599
+				<td data-export-label="Use Only Cookies"><?php _e('Use Only Cookies', 'give'); ?>:</td>
600
+				<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>
601
+				<td><?php echo ini_get('session.use_only_cookies') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
602 602
 			</tr>
603 603
 		<?php } ?>
604 604
 	</tbody>
@@ -607,13 +607,13 @@  discard block
 block discarded – undo
607 607
 <table class="give-status-table widefat" cellspacing="0">
608 608
 	<thead>
609 609
 	<tr>
610
-		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e( 'Active Give Add-ons', 'give' ); ?></h2></th>
610
+		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e('Active Give Add-ons', 'give'); ?></h2></th>
611 611
 	</tr>
612 612
 	</thead>
613 613
 	<tbody>
614 614
 		<?php
615
-		foreach ( $plugins as $plugin_data ) {
616
-			if ( 'active' != $plugin_data['Status'] ||  'add-on' != $plugin_data['Type'] ) {
615
+		foreach ($plugins as $plugin_data) {
616
+			if ('active' != $plugin_data['Status'] || 'add-on' != $plugin_data['Type']) {
617 617
 				continue;
618 618
 			}
619 619
 
@@ -621,30 +621,30 @@  discard block
 block discarded – undo
621 621
 			$author_name = $plugin_data['Author'];
622 622
 
623 623
 			// Link the plugin name to the plugin URL if available.
624
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
625
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
624
+			if ( ! empty($plugin_data['PluginURI'])) {
625
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
626 626
 			}
627 627
 
628 628
 			// Link the author name to the author URL if available.
629
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
630
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
629
+			if ( ! empty($plugin_data['AuthorURI'])) {
630
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
631 631
 			}
632 632
 			?>
633 633
 			<tr>
634
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
634
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
635 635
 				<td class="help">&nbsp;</td>
636 636
 				<td>
637 637
 					<?php
638
-					if ( true === $plugin_data['License'] ) {
639
-						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> ' . __( 'Licensed', 'give' );
638
+					if (true === $plugin_data['License']) {
639
+						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> '.__('Licensed', 'give');
640 640
 					} else {
641
-						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> ' . __( 'Unlicensed', 'give' );
641
+						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> '.__('Unlicensed', 'give');
642 642
 					}
643 643
 
644 644
 					echo ' &ndash; '
645
-					     . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
645
+					     . sprintf(_x('by %s', 'by author', 'give'), wp_kses($author_name, wp_kses_allowed_html('post')))
646 646
 					     . ' &ndash; '
647
-					     . esc_html( $plugin_data['Version'] );
647
+					     . esc_html($plugin_data['Version']);
648 648
 					?>
649 649
 				</td>
650 650
 			</tr>
@@ -657,18 +657,18 @@  discard block
 block discarded – undo
657 657
 <table class="give-status-table widefat" cellspacing="0">
658 658
 	<thead>
659 659
 		<tr>
660
-			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e( 'Other Active Plugins', 'give' ); ?></h2></th>
660
+			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e('Other Active Plugins', 'give'); ?></h2></th>
661 661
 		</tr>
662 662
 	</thead>
663 663
 	<tbody>
664 664
 		<?php
665
-		foreach ( $plugins as $plugin_data ) {
666
-			if ( 'active' != $plugin_data['Status'] ||  'other' != $plugin_data['Type'] ) {
665
+		foreach ($plugins as $plugin_data) {
666
+			if ('active' != $plugin_data['Status'] || 'other' != $plugin_data['Type']) {
667 667
 				continue;
668 668
 			}
669 669
 
670 670
 			// Do not show Give core plugin.
671
-			if ( 'Give - Donation Plugin' === $plugin_data['Name'] ) {
671
+			if ('Give - Donation Plugin' === $plugin_data['Name']) {
672 672
 				continue;
673 673
 			}
674 674
 
@@ -676,19 +676,19 @@  discard block
 block discarded – undo
676 676
 			$author_name = $plugin_data['Author'];
677 677
 
678 678
 			// Link the plugin name to the plugin URL if available.
679
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
680
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
679
+			if ( ! empty($plugin_data['PluginURI'])) {
680
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
681 681
 			}
682 682
 
683 683
 			// Link the author name to the author URL if available.
684
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
685
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
684
+			if ( ! empty($plugin_data['AuthorURI'])) {
685
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
686 686
 			}
687 687
 			?>
688 688
 			<tr>
689
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
689
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
690 690
 				<td class="help">&nbsp;</td>
691
-				<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>
691
+				<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>
692 692
 			</tr>
693 693
 		<?php
694 694
 		}
@@ -699,13 +699,13 @@  discard block
 block discarded – undo
699 699
 <table class="give-status-table widefat" cellspacing="0">
700 700
 	<thead>
701 701
 		<tr>
702
-			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e( 'Inactive Plugins', 'give' ); ?></h2></th>
702
+			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e('Inactive Plugins', 'give'); ?></h2></th>
703 703
 		</tr>
704 704
 	</thead>
705 705
 	<tbody>
706 706
 		<?php
707
-		foreach ( $plugins as $plugin_data ) {
708
-			if ( 'inactive' != $plugin_data['Status'] ) {
707
+		foreach ($plugins as $plugin_data) {
708
+			if ('inactive' != $plugin_data['Status']) {
709 709
 				continue;
710 710
 			}
711 711
 
@@ -713,19 +713,19 @@  discard block
 block discarded – undo
713 713
 			$author_name = $plugin_data['Author'];
714 714
 
715 715
 			// Link the plugin name to the plugin URL if available.
716
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
717
-				$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
716
+			if ( ! empty($plugin_data['PluginURI'])) {
717
+				$plugin_name = '<a href="'.esc_url($plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
718 718
 			}
719 719
 
720 720
 			// Link the author name to the author URL if available.
721
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
722
-				$author_name = '<a href="' . esc_url( $plugin_data['AuthorURI'] ) . '" title="' . esc_attr__( 'Visit author homepage' , 'give' ) . '">' . $author_name . '</a>';
721
+			if ( ! empty($plugin_data['AuthorURI'])) {
722
+				$author_name = '<a href="'.esc_url($plugin_data['AuthorURI']).'" title="'.esc_attr__('Visit author homepage', 'give').'">'.$author_name.'</a>';
723 723
 			}
724 724
 			?>
725 725
 			<tr>
726
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
726
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
727 727
 				<td class="help">&nbsp;</td>
728
-				<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>
728
+				<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>
729 729
 			</tr>
730 730
 			<?php
731 731
 		}
@@ -735,37 +735,37 @@  discard block
 block discarded – undo
735 735
 
736 736
 <?php
737 737
 $active_mu_plugins = (array) get_mu_plugins();
738
-if ( ! empty( $active_mu_plugins ) ) {
738
+if ( ! empty($active_mu_plugins)) {
739 739
 ?>
740 740
 	<table class="give-status-table widefat" cellspacing="0">
741 741
 		<thead>
742 742
 			<tr>
743
-				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e( 'Active MU Plugins', 'give' ); ?></h2></th>
743
+				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e('Active MU Plugins', 'give'); ?></h2></th>
744 744
 			</tr>
745 745
 		</thead>
746 746
 		<tbody>
747 747
 			<?php
748 748
 
749
-			foreach ( $active_mu_plugins as $mu_plugin_data ) {
750
-				if ( ! empty( $mu_plugin_data['Name'] ) ) {
749
+			foreach ($active_mu_plugins as $mu_plugin_data) {
750
+				if ( ! empty($mu_plugin_data['Name'])) {
751 751
 					// Link the plugin name to the plugin URL if available.
752
-					$plugin_name = esc_html( $mu_plugin_data['Name'] );
752
+					$plugin_name = esc_html($mu_plugin_data['Name']);
753 753
 
754
-					if ( ! empty( $mu_plugin_data['PluginURI'] ) ) {
755
-						$plugin_name = '<a href="' . esc_url( $mu_plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage' , 'give' ) . '">' . $plugin_name . '</a>';
754
+					if ( ! empty($mu_plugin_data['PluginURI'])) {
755
+						$plugin_name = '<a href="'.esc_url($mu_plugin_data['PluginURI']).'" title="'.esc_attr__('Visit plugin homepage', 'give').'">'.$plugin_name.'</a>';
756 756
 					}
757 757
 
758 758
 					// Link the author name to the author URL if available.
759
-					$author_name = esc_html( $mu_plugin_data['Author'] );
759
+					$author_name = esc_html($mu_plugin_data['Author']);
760 760
 
761
-					if ( ! empty( $mu_plugin_data['AuthorURI'] ) ) {
762
-						$author_name = '<a href="' . esc_url( $mu_plugin_data['AuthorURI'] ) . '">' . $author_name . '</a>';
761
+					if ( ! empty($mu_plugin_data['AuthorURI'])) {
762
+						$author_name = '<a href="'.esc_url($mu_plugin_data['AuthorURI']).'">'.$author_name.'</a>';
763 763
 					}
764 764
 					?>
765 765
 					<tr>
766 766
 						<td><?php echo $plugin_name; ?></td>
767 767
 						<td class="help">&nbsp;</td>
768
-						<td><?php echo sprintf( _x( 'by %s', 'by author', 'give' ), $author_name ) . ' &ndash; ' . esc_html( $mu_plugin_data['Version'] ); ?></td>
768
+						<td><?php echo sprintf(_x('by %s', 'by author', 'give'), $author_name).' &ndash; '.esc_html($mu_plugin_data['Version']); ?></td>
769 769
 					</tr>
770 770
 			<?php
771 771
 				}
@@ -778,53 +778,53 @@  discard block
 block discarded – undo
778 778
 <table class="give-status-table widefat" cellspacing="0">
779 779
 	<thead>
780 780
 		<tr>
781
-			<th colspan="3" data-export-label="Theme"><h2><?php _e( 'Theme', 'give' ); ?></h2></th>
781
+			<th colspan="3" data-export-label="Theme"><h2><?php _e('Theme', 'give'); ?></h2></th>
782 782
 		</tr>
783 783
 	</thead>
784 784
 	<?php
785
-	include_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
785
+	include_once(ABSPATH.'wp-admin/includes/theme-install.php');
786 786
 	$active_theme = wp_get_theme();
787 787
 	?>
788 788
 	<tbody>
789 789
 		<tr>
790
-			<td data-export-label="Name"><?php _e( 'Name', 'give' ); ?>:</td>
791
-			<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>
792
-			<td><?php echo esc_html( $active_theme->Name ); ?></td>
790
+			<td data-export-label="Name"><?php _e('Name', 'give'); ?>:</td>
791
+			<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>
792
+			<td><?php echo esc_html($active_theme->Name); ?></td>
793 793
 		</tr>
794 794
 		<tr>
795
-			<td data-export-label="Version"><?php _e( 'Version', 'give' ); ?>:</td>
796
-			<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>
797
-			<td><?php echo esc_html( $active_theme->Version ); ?></td>
795
+			<td data-export-label="Version"><?php _e('Version', 'give'); ?>:</td>
796
+			<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>
797
+			<td><?php echo esc_html($active_theme->Version); ?></td>
798 798
 		</tr>
799 799
 		<tr>
800
-			<td data-export-label="Author URL"><?php _e( 'Author URL', 'give' ); ?>:</td>
801
-			<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>
800
+			<td data-export-label="Author URL"><?php _e('Author URL', 'give'); ?>:</td>
801
+			<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>
802 802
 			<td><?php echo $active_theme->{'Author URI'}; ?></td>
803 803
 		</tr>
804 804
 		<tr>
805
-			<td data-export-label="Child Theme"><?php _e( 'Child Theme', 'give' ); ?>:</td>
806
-			<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>
805
+			<td data-export-label="Child Theme"><?php _e('Child Theme', 'give'); ?>:</td>
806
+			<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>
807 807
 			<td><?php
808
-				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' );
808
+				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');
809 809
 				?></td>
810 810
 		</tr>
811 811
 		<?php
812
-		if( is_child_theme() ) {
813
-			$parent_theme = wp_get_theme( $active_theme->Template );
812
+		if (is_child_theme()) {
813
+			$parent_theme = wp_get_theme($active_theme->Template);
814 814
 		?>
815 815
 			<tr>
816
-				<td data-export-label="Parent Theme Name"><?php _e( 'Parent Theme Name', 'give' ); ?>:</td>
817
-				<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>
818
-				<td><?php echo esc_html( $parent_theme->Name ); ?></td>
816
+				<td data-export-label="Parent Theme Name"><?php _e('Parent Theme Name', 'give'); ?>:</td>
817
+				<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>
818
+				<td><?php echo esc_html($parent_theme->Name); ?></td>
819 819
 			</tr>
820 820
 			<tr>
821
-				<td data-export-label="Parent Theme Version"><?php _e( 'Parent Theme Version', 'give' ); ?>:</td>
822
-				<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>
823
-				<td><?php echo esc_html( $parent_theme->Version ); ?></td>
821
+				<td data-export-label="Parent Theme Version"><?php _e('Parent Theme Version', 'give'); ?>:</td>
822
+				<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>
823
+				<td><?php echo esc_html($parent_theme->Version); ?></td>
824 824
 			</tr>
825 825
 			<tr>
826
-				<td data-export-label="Parent Theme Author URL"><?php _e( 'Parent Theme Author URL', 'give' ); ?>:</td>
827
-				<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>
826
+				<td data-export-label="Parent Theme Author URL"><?php _e('Parent Theme Author URL', 'give'); ?>:</td>
827
+				<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>
828 828
 				<td><?php echo $parent_theme->{'Author URI'}; ?></td>
829 829
 			</tr>
830 830
 		<?php } ?>
Please login to merge, or discard this patch.