Test Failed
Push — issue/3417 ( 9726e4 )
by Ravinder
1141:09 queued 1139:41
created
includes/admin/shortcodes/shortcode-give-login.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@
 block discarded – undo
42 42
 				'minWidth' => 320,
43 43
 				'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after login.', 'give' ),
44 44
 			),
45
-            array(
46
-                'type' => 'container',
47
-                'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ),
48
-            ),
49
-            array(
50
-                'type'     => 'textbox',
51
-                'name'     => 'logout-redirect',
52
-                'minWidth' => 320,
53
-                'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ),
54
-            ),
45
+			array(
46
+				'type' => 'container',
47
+				'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ),
48
+			),
49
+			array(
50
+				'type'     => 'textbox',
51
+				'name'     => 'logout-redirect',
52
+				'minWidth' => 320,
53
+				'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ),
54
+			),
55 55
 		);
56 56
 	}
57 57
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 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
 
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
 	public function __construct() {
23 23
 
24
-		$this->shortcode['title'] = esc_html__( 'Login', 'give' );
25
-		$this->shortcode['label'] = esc_html__( 'Login', 'give' );
24
+		$this->shortcode['title'] = esc_html__('Login', 'give');
25
+		$this->shortcode['label'] = esc_html__('Login', 'give');
26 26
 
27
-		parent::__construct( 'give_login' );
27
+		parent::__construct('give_login');
28 28
 	}
29 29
 
30 30
 	/**
@@ -37,23 +37,23 @@  discard block
 block discarded – undo
37 37
 		return array(
38 38
 			array(
39 39
 				'type' => 'container',
40
-				'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Login Redirect URL (optional):', 'give' ) ),
40
+				'html' => sprintf('<p class="no-margin">%s</p>', esc_html__('Login Redirect URL (optional):', 'give')),
41 41
 			),
42 42
 			array(
43 43
 				'type'     => 'textbox',
44 44
 				'name'     => 'login-redirect',
45 45
 				'minWidth' => 320,
46
-				'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after login.', 'give' ),
46
+				'tooltip'  => esc_attr__('Enter an URL here to redirect to after login.', 'give'),
47 47
 			),
48 48
             array(
49 49
                 'type' => 'container',
50
-                'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ),
50
+                'html' => sprintf('<p class="no-margin">%s</p>', esc_html__('Logout Redirect URL (optional):', 'give')),
51 51
             ),
52 52
             array(
53 53
                 'type'     => 'textbox',
54 54
                 'name'     => 'logout-redirect',
55 55
                 'minWidth' => 320,
56
-                'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ),
56
+                'tooltip'  => esc_attr__('Enter an URL here to redirect to after logout.', 'give'),
57 57
             ),
58 58
 		);
59 59
 	}
Please login to merge, or discard this patch.
includes/admin/shortcodes/abstract-shortcode-generator.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,8 +248,8 @@
 block discarded – undo
248 248
 
249 249
 			// do not reindex array!
250 250
 			$field['options'] = array(
251
-				                    '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ),
252
-			                    ) + $field['options'];
251
+									'' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ),
252
+								) + $field['options'];
253 253
 
254 254
 			foreach ( $field['options'] as $value => $text ) {
255 255
 				$new_listbox['values'][] = array(
Please login to merge, or discard this patch.
Spacing   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 
13 13
 // Exit if accessed directly.
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit;
16 16
 }
17 17
 
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @since 1.0
64 64
 	 */
65
-	public function __construct( $shortcode ) {
65
+	public function __construct($shortcode) {
66 66
 
67 67
 		$this->shortcode_tag = $shortcode;
68 68
 
69
-		add_action( 'admin_init', array( $this, 'init' ) );
69
+		add_action('admin_init', array($this, 'init'));
70 70
 
71 71
 	}
72 72
 
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
 	 */
78 78
 	public function init() {
79 79
 
80
-		if ( $this->shortcode_tag ) {
80
+		if ($this->shortcode_tag) {
81 81
 
82
-			$this->self = get_class( $this );
82
+			$this->self = get_class($this);
83 83
 
84 84
 			$this->errors   = array();
85 85
 			$this->required = array();
@@ -88,18 +88,18 @@  discard block
 block discarded – undo
88 88
 			$fields = $this->get_fields();
89 89
 
90 90
 			$defaults = array(
91
-				'btn_close' => esc_html__( 'Close', 'give' ),
92
-				'btn_okay'  => esc_html__( 'Insert Shortcode', 'give' ),
91
+				'btn_close' => esc_html__('Close', 'give'),
92
+				'btn_okay'  => esc_html__('Insert Shortcode', 'give'),
93 93
 				'errors'    => $this->errors,
94 94
 				'fields'    => $fields,
95
-				'label'     => '[' . $this->shortcode_tag . ']',
95
+				'label'     => '['.$this->shortcode_tag.']',
96 96
 				'required'  => $this->required,
97
-				'title'     => esc_html__( 'Insert Shortcode', 'give' ),
97
+				'title'     => esc_html__('Insert Shortcode', 'give'),
98 98
 			);
99 99
 
100
-			if ( user_can_richedit() ) {
100
+			if (user_can_richedit()) {
101 101
 
102
-				Give_Shortcode_Button::$shortcodes[ $this->shortcode_tag ] = wp_parse_args( $this->shortcode, $defaults );
102
+				Give_Shortcode_Button::$shortcodes[$this->shortcode_tag] = wp_parse_args($this->shortcode, $defaults);
103 103
 
104 104
 			}
105 105
 		}
@@ -128,13 +128,13 @@  discard block
 block discarded – undo
128 128
 	 *
129 129
 	 * @since 1.0
130 130
 	 */
131
-	protected function generate_fields( $defined_fields ) {
131
+	protected function generate_fields($defined_fields) {
132 132
 
133 133
 		$fields = array();
134 134
 
135
-		if ( is_array( $defined_fields ) ) {
135
+		if (is_array($defined_fields)) {
136 136
 
137
-			foreach ( $defined_fields as $field ) {
137
+			foreach ($defined_fields as $field) {
138 138
 
139 139
 				$defaults = array(
140 140
 					'label'       => false,
@@ -145,14 +145,14 @@  discard block
 block discarded – undo
145 145
 					'type'        => '',
146 146
 				);
147 147
 
148
-				$field  = wp_parse_args( (array) $field, $defaults );
149
-				$method = 'generate_' . strtolower( $field['type'] );
148
+				$field  = wp_parse_args((array) $field, $defaults);
149
+				$method = 'generate_'.strtolower($field['type']);
150 150
 
151
-				if ( method_exists( $this, $method ) ) {
151
+				if (method_exists($this, $method)) {
152 152
 
153
-					$field = call_user_func( array( $this, $method ), $field );
153
+					$field = call_user_func(array($this, $method), $field);
154 154
 
155
-					if ( $field ) {
155
+					if ($field) {
156 156
 						$fields[] = $field;
157 157
 					}
158 158
 				}
@@ -172,23 +172,23 @@  discard block
 block discarded – undo
172 172
 	protected function get_fields() {
173 173
 
174 174
 		$defined_fields   = $this->define_fields();
175
-		$generated_fields = $this->generate_fields( $defined_fields );
175
+		$generated_fields = $this->generate_fields($defined_fields);
176 176
 
177 177
 		$errors = array();
178 178
 
179
-		if ( ! empty( $this->errors ) ) {
180
-			foreach ( $this->required as $name => $alert ) {
179
+		if ( ! empty($this->errors)) {
180
+			foreach ($this->required as $name => $alert) {
181 181
 				// Using WordPress function in place of array_column wp_list_pluck as it support older version as well.
182
-				if ( false === array_search( $name, give_list_pluck( $generated_fields, 'name' ) ) ) {
182
+				if (false === array_search($name, give_list_pluck($generated_fields, 'name'))) {
183 183
 
184
-					$errors[] = $this->errors[ $name ];
184
+					$errors[] = $this->errors[$name];
185 185
 				}
186 186
 			}
187 187
 
188 188
 			$this->errors = $errors;
189 189
 		}
190 190
 
191
-		if ( ! empty( $errors ) ) {
191
+		if ( ! empty($errors)) {
192 192
 
193 193
 			return $errors;
194 194
 		}
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
 	 *
206 206
 	 * @since 1.0
207 207
 	 */
208
-	protected function generate_container( $field ) {
208
+	protected function generate_container($field) {
209 209
 
210
-		if ( array_key_exists( 'html', $field ) ) {
210
+		if (array_key_exists('html', $field)) {
211 211
 
212 212
 			return array(
213 213
 				'type' => $field['type'],
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
 	 *
228 228
 	 * @since 1.0
229 229
 	 */
230
-	protected function generate_listbox( $field ) {
230
+	protected function generate_listbox($field) {
231 231
 
232
-		$listbox = shortcode_atts( array(
232
+		$listbox = shortcode_atts(array(
233 233
 			'label'    => '',
234 234
 			'minWidth' => '',
235 235
 			'name'     => false,
@@ -237,27 +237,27 @@  discard block
 block discarded – undo
237 237
 			'type'     => '',
238 238
 			'value'    => '',
239 239
 			'classes'  => ''
240
-		), $field );
240
+		), $field);
241 241
 
242
-		if ( $this->validate( $field ) ) {
242
+		if ($this->validate($field)) {
243 243
 
244 244
 			$new_listbox = array();
245 245
 
246
-			foreach ( $listbox as $key => $value ) {
246
+			foreach ($listbox as $key => $value) {
247 247
 
248
-				if ( $key == 'value' && empty( $value ) ) {
249
-					$new_listbox[ $key ] = $listbox['name'];
250
-				} else if ( $value ) {
251
-					$new_listbox[ $key ] = $value;
248
+				if ($key == 'value' && empty($value)) {
249
+					$new_listbox[$key] = $listbox['name'];
250
+				} else if ($value) {
251
+					$new_listbox[$key] = $value;
252 252
 				}
253 253
 			}
254 254
 
255 255
 			// do not reindex array!
256 256
 			$field['options'] = array(
257
-				                    '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ),
257
+				                    '' => ($field['placeholder'] ? $field['placeholder'] : esc_attr__('- Select -', 'give')),
258 258
 			                    ) + $field['options'];
259 259
 
260
-			foreach ( $field['options'] as $value => $text ) {
260
+			foreach ($field['options'] as $value => $text) {
261 261
 				$new_listbox['values'][] = array(
262 262
 					'text'  => $text,
263 263
 					'value' => $value,
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	 *
280 280
 	 * @since 1.0
281 281
 	 */
282
-	protected function generate_post( $field ) {
282
+	protected function generate_post($field) {
283 283
 
284 284
 		$args = array(
285 285
 			'post_type'        => 'post',
@@ -289,26 +289,26 @@  discard block
 block discarded – undo
289 289
 			'suppress_filters' => false,
290 290
 		);
291 291
 
292
-		$args    = wp_parse_args( (array) $field['query_args'], $args );
292
+		$args    = wp_parse_args((array) $field['query_args'], $args);
293 293
 
294
-		$posts   = get_posts( $args );
294
+		$posts   = get_posts($args);
295 295
 		$options = array();
296 296
 
297
-		if ( ! empty( $posts ) ) {
298
-			foreach ( $posts as $post ) {
299
-				$options[ absint( $post->ID ) ] = empty( $post->post_title )
300
-					? sprintf( __( 'Untitled (#%s)', 'give' ), $post->ID )
301
-					: apply_filters( 'the_title', $post->post_title );
297
+		if ( ! empty($posts)) {
298
+			foreach ($posts as $post) {
299
+				$options[absint($post->ID)] = empty($post->post_title)
300
+					? sprintf(__('Untitled (#%s)', 'give'), $post->ID)
301
+					: apply_filters('the_title', $post->post_title);
302 302
 			}
303 303
 
304 304
 			$field['type']    = 'listbox';
305 305
 			$field['options'] = $options;
306 306
 
307
-			return $this->generate_listbox( $field );
307
+			return $this->generate_listbox($field);
308 308
 		}
309 309
 
310 310
 		// perform validation here before returning false
311
-		$this->validate( $field );
311
+		$this->validate($field);
312 312
 
313 313
 		return false;
314 314
 	}
@@ -322,9 +322,9 @@  discard block
 block discarded – undo
322 322
 	 *
323 323
 	 * @since 1.0
324 324
 	 */
325
-	protected function generate_textbox( $field ) {
325
+	protected function generate_textbox($field) {
326 326
 
327
-		$textbox = shortcode_atts( array(
327
+		$textbox = shortcode_atts(array(
328 328
 			'label'       => '',
329 329
 			'maxLength'   => '',
330 330
 			'minHeight'   => '',
@@ -336,15 +336,15 @@  discard block
 block discarded – undo
336 336
 			'value'       => '',
337 337
 			'classes'     => '',
338 338
 			'placeholder' => ''
339
-		), $field );
339
+		), $field);
340 340
 
341 341
 		// Remove empty placeholder.
342
-		if( empty( $textbox['placeholder'] ) ) {
343
-			unset( $textbox['placeholder'] );
342
+		if (empty($textbox['placeholder'])) {
343
+			unset($textbox['placeholder']);
344 344
 		}
345 345
 
346
-		if ( $this->validate( $field ) ) {
347
-			return array_filter( $textbox, array( $this, 'return_textbox_value' ) );
346
+		if ($this->validate($field)) {
347
+			return array_filter($textbox, array($this, 'return_textbox_value'));
348 348
 		}
349 349
 
350 350
 		return false;
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 	 *
358 358
 	 * @return bool
359 359
 	 */
360
-	function return_textbox_value( $value ) {
360
+	function return_textbox_value($value) {
361 361
 		return $value !== '';
362 362
 	}
363 363
 
@@ -373,9 +373,9 @@  discard block
 block discarded – undo
373 373
 	 *
374 374
 	 * @since 1.0
375 375
 	 */
376
-	protected function validate( $field ) {
376
+	protected function validate($field) {
377 377
 
378
-		extract( shortcode_atts(
378
+		extract(shortcode_atts(
379 379
 				array(
380 380
 					'name'     => false,
381 381
 					'required' => false,
@@ -383,36 +383,36 @@  discard block
 block discarded – undo
383 383
 				), $field )
384 384
 		);
385 385
 
386
-		if ( $name ) {
386
+		if ($name) {
387 387
 
388
-			if ( isset( $required['error'] ) ) {
388
+			if (isset($required['error'])) {
389 389
 
390 390
 				$error = array(
391 391
 					'type' => 'container',
392 392
 					'html' => $required['error'],
393 393
 				);
394 394
 
395
-				$this->errors[ $name ] = $this->generate_container( $error );
395
+				$this->errors[$name] = $this->generate_container($error);
396 396
 			}
397 397
 
398
-			if ( ! ! $required || is_array( $required ) ) {
398
+			if ( ! ! $required || is_array($required)) {
399 399
 
400
-				$alert = esc_html__( 'Some of the shortcode options are required.', 'give' );
400
+				$alert = esc_html__('Some of the shortcode options are required.', 'give');
401 401
 
402
-				if ( isset( $required['alert'] ) ) {
402
+				if (isset($required['alert'])) {
403 403
 
404 404
 					$alert = $required['alert'];
405 405
 
406
-				} else if ( ! empty( $label ) ) {
406
+				} else if ( ! empty($label)) {
407 407
 
408 408
 					$alert = sprintf(
409 409
 					/* translators: %s: option label */
410
-						esc_html__( 'The "%s" option is required.', 'give' ),
411
-						str_replace( ':', '', $label )
410
+						esc_html__('The "%s" option is required.', 'give'),
411
+						str_replace(':', '', $label)
412 412
 					);
413 413
 				}
414 414
 
415
-				$this->required[ $name ] = $alert;
415
+				$this->required[$name] = $alert;
416 416
 			}
417 417
 
418 418
 			return true;
Please login to merge, or discard this patch.
includes/class-give-template-loader.php 1 patch
Spacing   +23 added lines, -23 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
 
@@ -36,29 +36,29 @@  discard block
 block discarded – undo
36 36
 		/**
37 37
 		 * Templates
38 38
 		 */
39
-		add_filter( 'template_include', array( __CLASS__, 'template_loader' ) );
39
+		add_filter('template_include', array(__CLASS__, 'template_loader'));
40 40
 
41 41
 		/**
42 42
 		 * Content Wrappers
43 43
 		 */
44
-		add_action( 'give_before_main_content', 'give_output_content_wrapper', 10 );
45
-		add_action( 'give_after_main_content', 'give_output_content_wrapper_end', 10 );
44
+		add_action('give_before_main_content', 'give_output_content_wrapper', 10);
45
+		add_action('give_after_main_content', 'give_output_content_wrapper_end', 10);
46 46
 
47 47
 		/**
48 48
 		 * Entry Summary Classes
49 49
 		 */
50
-		add_filter( 'give_forms_single_summary_classes', array( $this, 'give_set_single_summary_classes' ) );
50
+		add_filter('give_forms_single_summary_classes', array($this, 'give_set_single_summary_classes'));
51 51
 
52 52
 		/**
53 53
 		 * Sidebar
54 54
 		 */
55
-		add_action( 'give_before_single_form_summary', array( $this, 'give_output_sidebar_option' ), 1 );
55
+		add_action('give_before_single_form_summary', array($this, 'give_output_sidebar_option'), 1);
56 56
 
57 57
 		/**
58 58
 		 * Single Forms Summary Box
59 59
 		 */
60
-		add_action( 'give_single_form_summary', 'give_template_single_title', 5 );
61
-		add_action( 'give_single_form_summary', 'give_get_donation_form', 10 );
60
+		add_action('give_single_form_summary', 'give_template_single_title', 5);
61
+		add_action('give_single_form_summary', 'give_get_donation_form', 10);
62 62
 
63 63
 	}
64 64
 
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
 	 *
74 74
 	 * @return string $classes List of space separated class names.
75 75
 	 */
76
-	public function give_set_single_summary_classes( $classes ) {
76
+	public function give_set_single_summary_classes($classes) {
77 77
 
78 78
 		//Add full width class when feature image is disabled AND no widgets are present
79
-		if ( ! give_is_setting_enabled( give_get_option( 'form_sidebar' ) ) ) {
79
+		if ( ! give_is_setting_enabled(give_get_option('form_sidebar'))) {
80 80
 			$classes .= ' give-full-width';
81 81
 		}
82 82
 
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
 	public function give_output_sidebar_option() {
98 98
 
99 99
 		//Add full width class when feature image is disabled AND no widgets are present
100
-		if ( give_is_setting_enabled( give_get_option( 'form_sidebar' ) ) ) {
101
-			add_action( 'give_before_single_form_summary', 'give_left_sidebar_pre_wrap', 5 );
102
-			add_action( 'give_before_single_form_summary', 'give_show_form_images', 10 );
103
-			add_action( 'give_before_single_form_summary', 'give_get_forms_sidebar', 20 );
104
-			add_action( 'give_before_single_form_summary', 'give_left_sidebar_post_wrap', 30 );
100
+		if (give_is_setting_enabled(give_get_option('form_sidebar'))) {
101
+			add_action('give_before_single_form_summary', 'give_left_sidebar_pre_wrap', 5);
102
+			add_action('give_before_single_form_summary', 'give_show_form_images', 10);
103
+			add_action('give_before_single_form_summary', 'give_get_forms_sidebar', 20);
104
+			add_action('give_before_single_form_summary', 'give_left_sidebar_post_wrap', 30);
105 105
 		}
106 106
 
107 107
 	}
@@ -123,20 +123,20 @@  discard block
 block discarded – undo
123 123
 	 *
124 124
 	 * @return string $template
125 125
 	 */
126
-	public static function template_loader( $template ) {
127
-		$find = array( 'give.php' );
126
+	public static function template_loader($template) {
127
+		$find = array('give.php');
128 128
 		$file = '';
129 129
 
130
-		if ( is_single() && get_post_type() == 'give_forms' ) {
130
+		if (is_single() && get_post_type() == 'give_forms') {
131 131
 			$file   = 'single-give-form.php';
132 132
 			$find[] = $file;
133
-			$find[] = apply_filters( 'give_template_path', 'give/' ) . $file;
133
+			$find[] = apply_filters('give_template_path', 'give/').$file;
134 134
 		}
135 135
 
136
-		if ( $file ) {
137
-			$template = locate_template( array_unique( $find ) );
138
-			if ( ! $template ) {
139
-				$template = GIVE_PLUGIN_DIR . '/templates/' . $file;
136
+		if ($file) {
137
+			$template = locate_template(array_unique($find));
138
+			if ( ! $template) {
139
+				$template = GIVE_PLUGIN_DIR.'/templates/'.$file;
140 140
 			}
141 141
 		}
142 142
 
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-system-info.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -586,9 +586,9 @@
 block discarded – undo
586 586
 					}
587 587
 
588 588
 					echo ' &ndash; '
589
-					     . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
590
-					     . ' &ndash; '
591
-					     . esc_html( $plugin_data['Version'] );
589
+						 . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
590
+						 . ' &ndash; '
591
+						 . esc_html( $plugin_data['Version'] );
592 592
 					?>
593 593
 				</td>
594 594
 			</tr>
Please login to merge, or discard this patch.
Spacing   +329 added lines, -330 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
 
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
 ?>
26 26
 
27 27
 <div class="give-debug-report-wrapper">
28
-	<p class="give-debug-report-text"><?php echo sprintf(__( 'Please copy and paste this information in your ticket when contacting support:', 'give' )); ?> </p>
28
+	<p class="give-debug-report-text"><?php echo sprintf(__('Please copy and paste this information in your ticket when contacting support:', 'give')); ?> </p>
29 29
 	<div class="give-debug-report-actions">
30
-		<a class="button-primary js-give-debug-report-button" href="#"><?php _e( 'Get System Report', 'give' ); ?></a>
31
-		<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>
30
+		<a class="button-primary js-give-debug-report-button" href="#"><?php _e('Get System Report', 'give'); ?></a>
31
+		<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>
32 32
 	</div>
33 33
 	<div class="give-debug-report js-give-debug-report">
34 34
 		<textarea readonly="readonly"></textarea>
@@ -38,56 +38,56 @@  discard block
 block discarded – undo
38 38
 <table class="give-status-table widefat" cellspacing="0" id="status">
39 39
 	<thead>
40 40
 		<tr>
41
-			<th colspan="3" data-export-label="WordPress Environment"><h2><?php _e( 'WordPress Environment', 'give' ); ?></h2></th>
41
+			<th colspan="3" data-export-label="WordPress Environment"><h2><?php _e('WordPress Environment', 'give'); ?></h2></th>
42 42
 		</tr>
43 43
 	</thead>
44 44
 	<tbody>
45 45
 		<tr>
46
-			<td data-export-label="Home URL"><?php _e( 'Home URL', 'give' ); ?>:</td>
47
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The URL of your site\'s homepage.', 'give' ) ); ?></td>
48
-			<td><?php form_option( 'home' ); ?></td>
46
+			<td data-export-label="Home URL"><?php _e('Home URL', 'give'); ?>:</td>
47
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The URL of your site\'s homepage.', 'give')); ?></td>
48
+			<td><?php form_option('home'); ?></td>
49 49
 		</tr>
50 50
 		<tr>
51
-			<td data-export-label="Site URL"><?php _e( 'Site URL', 'give' ); ?>:</td>
52
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The root URL of your site.', 'give' ) ); ?></td>
53
-			<td><?php form_option( 'siteurl' ); ?></td>
51
+			<td data-export-label="Site URL"><?php _e('Site URL', 'give'); ?>:</td>
52
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The root URL of your site.', 'give')); ?></td>
53
+			<td><?php form_option('siteurl'); ?></td>
54 54
 		</tr>
55 55
 		<tr>
56
-			<td data-export-label="WP Version"><?php _e( 'WP Version', 'give' ); ?>:</td>
57
-			<td class="help"><?php echo Give()->tooltips->render_help(  __( 'The version of WordPress installed on your site.', 'give' ) ); ?></td>
58
-			<td><?php bloginfo( 'version' ); ?></td>
56
+			<td data-export-label="WP Version"><?php _e('WP Version', 'give'); ?>:</td>
57
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The version of WordPress installed on your site.', 'give')); ?></td>
58
+			<td><?php bloginfo('version'); ?></td>
59 59
 		</tr>
60 60
 		<tr>
61
-			<td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'give' ); ?>:</td>
62
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether or not you have WordPress Multisite enabled.', 'give' ) ); ?></td>
63
-			<td><?php if ( is_multisite() ) echo '<span class="dashicons dashicons-yes"></span>'; else echo '&ndash;'; ?></td>
61
+			<td data-export-label="WP Multisite"><?php _e('WP Multisite', 'give'); ?>:</td>
62
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether or not you have WordPress Multisite enabled.', 'give')); ?></td>
63
+			<td><?php if (is_multisite()) echo '<span class="dashicons dashicons-yes"></span>'; else echo '&ndash;'; ?></td>
64 64
 
65 65
 		</tr>
66 66
 		<tr>
67
-			<td data-export-label="WP Memory Limit"><?php _e( 'WP Memory Limit', 'give' ); ?>:</td>
68
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The maximum amount of memory (RAM) that your site can use at one time.', 'give' ) ); ?></td>
67
+			<td data-export-label="WP Memory Limit"><?php _e('WP Memory Limit', 'give'); ?>:</td>
68
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The maximum amount of memory (RAM) that your site can use at one time.', 'give')); ?></td>
69 69
 			<td>
70 70
 				<?php
71
-				$memory = give_let_to_num( WP_MEMORY_LIMIT );
71
+				$memory = give_let_to_num(WP_MEMORY_LIMIT);
72 72
 
73
-				if ( function_exists( 'memory_get_usage' ) ) {
74
-					$system_memory = give_let_to_num( @ini_get( 'memory_limit' ) );
75
-					$memory        = max( $memory, $system_memory );
73
+				if (function_exists('memory_get_usage')) {
74
+					$system_memory = give_let_to_num(@ini_get('memory_limit'));
75
+					$memory        = max($memory, $system_memory);
76 76
 				}
77 77
 
78
-				if ( $memory < 67108864 ) {
79
-					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>';
78
+				if ($memory < 67108864) {
79
+					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>';
80 80
 				} else {
81
-					echo '<mark class="yes">' . size_format( $memory ) . '</mark>';
81
+					echo '<mark class="yes">'.size_format($memory).'</mark>';
82 82
 				}
83 83
 				?>
84 84
 			</td>
85 85
 		</tr>
86 86
 		<tr>
87
-			<td data-export-label="WP Debug Mode"><?php _e( 'WP Debug Mode', 'give' ); ?>:</td>
88
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Displays whether or not WordPress is in Debug Mode.', 'give' ) ); ?></td>
87
+			<td data-export-label="WP Debug Mode"><?php _e('WP Debug Mode', 'give'); ?>:</td>
88
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Displays whether or not WordPress is in Debug Mode.', 'give')); ?></td>
89 89
 			<td>
90
-				<?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?>
90
+				<?php if (defined('WP_DEBUG') && WP_DEBUG) : ?>
91 91
 					<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
92 92
 				<?php else : ?>
93 93
 					<mark class="no">&ndash;</mark>
@@ -95,10 +95,10 @@  discard block
 block discarded – undo
95 95
 			</td>
96 96
 		</tr>
97 97
 		<tr>
98
-			<td data-export-label="WP Cron"><?php _e( 'WP Cron', 'give' ); ?>:</td>
99
-			<td class="help"><?php echo Give()->tooltips->render( __( 'Displays whether or not WP Cron Jobs are enabled.', 'give' ) ); ?></td>
98
+			<td data-export-label="WP Cron"><?php _e('WP Cron', 'give'); ?>:</td>
99
+			<td class="help"><?php echo Give()->tooltips->render(__('Displays whether or not WP Cron Jobs are enabled.', 'give')); ?></td>
100 100
 			<td>
101
-				<?php if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) : ?>
101
+				<?php if (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON) : ?>
102 102
 					<mark class="no">&ndash;</mark>
103 103
 				<?php else : ?>
104 104
 					<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
@@ -106,60 +106,60 @@  discard block
 block discarded – undo
106 106
 			</td>
107 107
 		</tr>
108 108
 		<tr>
109
-			<td data-export-label="Language"><?php _e( 'Language', 'give' ); ?>:</td>
110
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The current language used by WordPress. Default = English', 'give' ) ); ?></td>
109
+			<td data-export-label="Language"><?php _e('Language', 'give'); ?>:</td>
110
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The current language used by WordPress. Default = English', 'give')); ?></td>
111 111
 			<td><?php echo get_locale(); ?></td>
112 112
 		</tr>
113 113
 		<tr>
114
-			<td data-export-label="Permalink Structure"><?php _e( 'Permalink Structure', 'give' ); ?>:</td>
115
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The permalink structure as defined in Settings.', 'give' ) ); ?></td>
116
-			<td><?php echo esc_html( get_option( 'permalink_structure', __( 'Default', 'give' ) ) ); ?></td>
114
+			<td data-export-label="Permalink Structure"><?php _e('Permalink Structure', 'give'); ?>:</td>
115
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The permalink structure as defined in Settings.', 'give')); ?></td>
116
+			<td><?php echo esc_html(get_option('permalink_structure', __('Default', 'give'))); ?></td>
117 117
 		</tr>
118 118
 		<tr>
119
-			<td data-export-label="Show on Front"><?php _e( 'Show on Front', 'give' ); ?>:</td>
120
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether your front page is set to show posts or a static page.', 'give' ) ); ?></td>
121
-			<td><?php echo esc_html( get_option( 'show_on_front', '&ndash;' ) ); ?></td>
119
+			<td data-export-label="Show on Front"><?php _e('Show on Front', 'give'); ?>:</td>
120
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether your front page is set to show posts or a static page.', 'give')); ?></td>
121
+			<td><?php echo esc_html(get_option('show_on_front', '&ndash;')); ?></td>
122 122
 		</tr>
123
-		<?php if ( 'page' === get_option( 'show_on_front' ) ) : ?>
123
+		<?php if ('page' === get_option('show_on_front')) : ?>
124 124
 			<?php
125
-			$front_page_id = absint( get_option( 'page_on_front' ) );
126
-			$blog_page_id  = absint( get_option( 'page_for_posts' ) );
125
+			$front_page_id = absint(get_option('page_on_front'));
126
+			$blog_page_id  = absint(get_option('page_for_posts'));
127 127
 			?>
128 128
 			<tr>
129
-				<td data-export-label="Page on Front"><?php _e( 'Page on Front', 'give' ); ?>:</td>
130
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The page set to display as your front page.', 'give' ) ); ?></td>
131
-				<td><?php echo 0 !== $front_page_id ? esc_html( get_the_title( $front_page_id ) . ' (#' . $front_page_id . ')' ) : __( 'Unset', 'give' ); ?></td>
129
+				<td data-export-label="Page on Front"><?php _e('Page on Front', 'give'); ?>:</td>
130
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The page set to display as your front page.', 'give')); ?></td>
131
+				<td><?php echo 0 !== $front_page_id ? esc_html(get_the_title($front_page_id).' (#'.$front_page_id.')') : __('Unset', 'give'); ?></td>
132 132
 			</tr>
133 133
 			<tr>
134
-				<td data-export-label="Page for Posts"><?php _e( 'Page for Posts', 'give' ); ?>:</td>
135
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The page set to display your posts.', 'give' ) ); ?></td>
136
-				<td><?php echo 0 !== $blog_page_id ? esc_html( get_the_title( $blog_page_id ) . ' (#' . $blog_page_id . ')' ) : __( 'Unset', 'give' ); ?></td>
134
+				<td data-export-label="Page for Posts"><?php _e('Page for Posts', 'give'); ?>:</td>
135
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The page set to display your posts.', 'give')); ?></td>
136
+				<td><?php echo 0 !== $blog_page_id ? esc_html(get_the_title($blog_page_id).' (#'.$blog_page_id.')') : __('Unset', 'give'); ?></td>
137 137
 			</tr>
138
-		<?php endif;?>
138
+		<?php endif; ?>
139 139
 		<tr>
140
-			<td data-export-label="Table Prefix Length"><?php _e( 'Table Prefix', 'give' ); ?>:</td>
141
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The table prefix used in your WordPress database.', 'give' ) ); ?></td>
142
-			<td><?php echo esc_html( $wpdb->prefix ); ?></td>
140
+			<td data-export-label="Table Prefix Length"><?php _e('Table Prefix', 'give'); ?>:</td>
141
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The table prefix used in your WordPress database.', 'give')); ?></td>
142
+			<td><?php echo esc_html($wpdb->prefix); ?></td>
143 143
 		</tr>
144 144
 		<tr>
145
-			<td data-export-label="Table Prefix Length"><?php _e( 'Table Prefix Length', 'give' ); ?>:</td>
146
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The length of the table prefix used in your WordPress database.', 'give' ) ); ?></td>
147
-			<td><?php echo esc_html( strlen( $wpdb->prefix ) ); ?></td>
145
+			<td data-export-label="Table Prefix Length"><?php _e('Table Prefix Length', 'give'); ?>:</td>
146
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The length of the table prefix used in your WordPress database.', 'give')); ?></td>
147
+			<td><?php echo esc_html(strlen($wpdb->prefix)); ?></td>
148 148
 		</tr>
149 149
 		<tr>
150
-			<td data-export-label="Table Prefix Status"><?php _e( 'Table Prefix Status', 'give' ); ?>:</td>
151
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The status of the table prefix used in your WordPress database.', 'give' ) ); ?></td>
152
-			<td><?php echo strlen( $wpdb->prefix ) > 16 ? esc_html( 'Error: Too long', 'give' ) : esc_html( 'Acceptable', 'give' ); ?></td>
150
+			<td data-export-label="Table Prefix Status"><?php _e('Table Prefix Status', 'give'); ?>:</td>
151
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The status of the table prefix used in your WordPress database.', 'give')); ?></td>
152
+			<td><?php echo strlen($wpdb->prefix) > 16 ? esc_html('Error: Too long', 'give') : esc_html('Acceptable', 'give'); ?></td>
153 153
 		</tr>
154 154
 		<tr>
155
-			<td data-export-label="Admin AJAX"><?php _e( 'Admin AJAX', 'give' ); ?>:</td>
156
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether Admin AJAX is accessible.', 'give' ) ); ?></td>
157
-			<td><?php echo give_test_ajax_works() ? __( 'Accessible', 'give' ) : __( 'Inaccessible', 'give' ); ?></td>
155
+			<td data-export-label="Admin AJAX"><?php _e('Admin AJAX', 'give'); ?>:</td>
156
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether Admin AJAX is accessible.', 'give')); ?></td>
157
+			<td><?php echo give_test_ajax_works() ? __('Accessible', 'give') : __('Inaccessible', 'give'); ?></td>
158 158
 		</tr>
159 159
 		<tr>
160
-			<td data-export-label="Registered Post Statuses"><?php _e( 'Registered Post Statuses', 'give' ); ?>:</td>
161
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'A list of all registered post statuses.', 'give' ) ); ?></td>
162
-			<td><?php echo esc_html( implode( ', ', get_post_stati() ) ); ?></td>
160
+			<td data-export-label="Registered Post Statuses"><?php _e('Registered Post Statuses', 'give'); ?>:</td>
161
+			<td class="help"><?php echo Give()->tooltips->render_help(__('A list of all registered post statuses.', 'give')); ?></td>
162
+			<td><?php echo esc_html(implode(', ', get_post_stati())); ?></td>
163 163
 		</tr>
164 164
 	</tbody>
165 165
 </table>
@@ -167,103 +167,103 @@  discard block
 block discarded – undo
167 167
 <table class="give-status-table widefat" cellspacing="0">
168 168
 	<thead>
169 169
 		<tr>
170
-			<th colspan="3" data-export-label="Server Environment"><h2><?php _e( 'Server Environment', 'give' ); ?></h2></th>
170
+			<th colspan="3" data-export-label="Server Environment"><h2><?php _e('Server Environment', 'give'); ?></h2></th>
171 171
 		</tr>
172 172
 	</thead>
173 173
 	<tbody>
174 174
 		<tr>
175
-			<td data-export-label="Hosting Provider"><?php _e( 'Hosting Provider', 'give' ); ?>:</td>
176
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The hosting provider for this WordPress installation.', 'give' ) ); ?></td>
177
-			<td><?php echo give_get_host() ? esc_html( give_get_host() ) : __( 'Unknown', 'give' ); ?></td>
175
+			<td data-export-label="Hosting Provider"><?php _e('Hosting Provider', 'give'); ?>:</td>
176
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The hosting provider for this WordPress installation.', 'give')); ?></td>
177
+			<td><?php echo give_get_host() ? esc_html(give_get_host()) : __('Unknown', 'give'); ?></td>
178 178
 		</tr>
179 179
 		<tr>
180
-			<td data-export-label="TLS Connection"><?php _e( 'TLS Connection', 'give' ); ?>:</td>
181
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Most payment gateway APIs only support connections using the TLS 1.2 security protocol.', 'give' ) ); ?></td>
180
+			<td data-export-label="TLS Connection"><?php _e('TLS Connection', 'give'); ?>:</td>
181
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Most payment gateway APIs only support connections using the TLS 1.2 security protocol.', 'give')); ?></td>
182 182
 			<td>
183 183
 				<?php
184 184
 				$tls_check = false;
185 185
 
186 186
 				// Get the SSL status.
187
-				if ( ini_get( 'allow_url_fopen' ) ) {
188
-					$tls_check = file_get_contents( 'https://www.howsmyssl.com/a/check' );
187
+				if (ini_get('allow_url_fopen')) {
188
+					$tls_check = file_get_contents('https://www.howsmyssl.com/a/check');
189 189
 				}
190 190
 
191
-				if ( false !== $tls_check ) {
192
-					$tls_check = json_decode( $tls_check );
191
+				if (false !== $tls_check) {
192
+					$tls_check = json_decode($tls_check);
193 193
 					/* translators: %s: SSL connection response */
194
-					printf( __( 'Connection uses %s', 'give' ), esc_html( $tls_check->tls_version ) );
194
+					printf(__('Connection uses %s', 'give'), esc_html($tls_check->tls_version));
195 195
 				}
196 196
 				?>
197 197
 			</td>
198 198
 		</tr>
199 199
 		<tr>
200
-			<td data-export-label="TLS Connection"><?php _e( 'TLS Rating', 'give' ); ?>:</td>
201
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The server\'s connection as rated by https://www.howsmyssl.com/', 'give' ) ); ?></td>
200
+			<td data-export-label="TLS Connection"><?php _e('TLS Rating', 'give'); ?>:</td>
201
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The server\'s connection as rated by https://www.howsmyssl.com/', 'give')); ?></td>
202 202
 			<td>
203 203
 				<?php
204
-				if ( false !== $tls_check ) {
205
-					esc_html_e( property_exists( $tls_check, 'rating' ) ? $tls_check->rating : $tls_check->tls_version );
204
+				if (false !== $tls_check) {
205
+					esc_html_e(property_exists($tls_check, 'rating') ? $tls_check->rating : $tls_check->tls_version);
206 206
 				}
207 207
 				?>
208 208
 			</td>
209 209
 		</tr>
210 210
 		<tr>
211
-			<td data-export-label="Server Info"><?php _e( 'Server Info', 'give' ); ?>:</td>
212
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Information about the web server that is currently hosting your site.', 'give' ) ); ?></td>
213
-			<td><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ); ?></td>
211
+			<td data-export-label="Server Info"><?php _e('Server Info', 'give'); ?>:</td>
212
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Information about the web server that is currently hosting your site.', 'give')); ?></td>
213
+			<td><?php echo esc_html($_SERVER['SERVER_SOFTWARE']); ?></td>
214 214
 		</tr>
215 215
 		<tr>
216
-			<td data-export-label="PHP Version"><?php _e( 'PHP Version', 'give' ); ?>:</td>
217
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The version of PHP installed on your hosting server.', 'give' ) ); ?></td>
216
+			<td data-export-label="PHP Version"><?php _e('PHP Version', 'give'); ?>:</td>
217
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The version of PHP installed on your hosting server.', 'give')); ?></td>
218 218
 			<td>
219 219
 				<?php
220 220
 				// Check if phpversion function exists.
221
-				if ( function_exists( 'phpversion' ) ) {
221
+				if (function_exists('phpversion')) {
222 222
 					$php_version = phpversion();
223 223
 
224
-					if ( version_compare( $php_version, '5.6', '<' ) ) {
225
-						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>';
224
+					if (version_compare($php_version, '5.6', '<')) {
225
+						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>';
226 226
 					} else {
227
-						echo '<mark class="yes">' . esc_html( $php_version ) . '</mark>';
227
+						echo '<mark class="yes">'.esc_html($php_version).'</mark>';
228 228
 					}
229 229
 				} else {
230
-					_e( "Couldn't determine PHP version because phpversion() doesn't exist.", 'give' );
230
+					_e("Couldn't determine PHP version because phpversion() doesn't exist.", 'give');
231 231
 				}
232 232
 				?></td>
233 233
 		</tr>
234
-		<?php if ( function_exists( 'ini_get' ) ) : ?>
234
+		<?php if (function_exists('ini_get')) : ?>
235 235
 			<tr>
236
-				<td data-export-label="PHP Post Max Size"><?php _e( 'PHP Post Max Size', 'give' ); ?>:</td>
237
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The largest filesize that can be contained in one post.', 'give' ) ); ?></td>
238
-				<td><?php echo size_format( give_let_to_num( ini_get( 'post_max_size' ) ) ); ?></td>
236
+				<td data-export-label="PHP Post Max Size"><?php _e('PHP Post Max Size', 'give'); ?>:</td>
237
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The largest filesize that can be contained in one post.', 'give')); ?></td>
238
+				<td><?php echo size_format(give_let_to_num(ini_get('post_max_size'))); ?></td>
239 239
 			</tr>
240 240
 			<tr>
241
-				<td data-export-label="PHP Time Limit"><?php _e( 'PHP Time Limit', 'give' ); ?>:</td>
242
-				<td class="help"><?php echo Give() ->tooltips->render_help( __( 'The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups).', 'give' ) ); ?></td>
243
-				<td><?php echo ini_get( 'max_execution_time' ); ?></td>
241
+				<td data-export-label="PHP Time Limit"><?php _e('PHP Time Limit', 'give'); ?>:</td>
242
+				<td class="help"><?php echo Give() ->tooltips->render_help(__('The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups).', 'give')); ?></td>
243
+				<td><?php echo ini_get('max_execution_time'); ?></td>
244 244
 			</tr>
245 245
 			<tr>
246
-				<td data-export-label="PHP Max Input Vars"><?php _e( 'PHP Max Input Vars', 'give' ); ?>:</td>
247
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The maximum number of variables your server can use for a single function to avoid overloads.', 'give' ) ); ?></td>
248
-				<td><?php echo ini_get( 'max_input_vars' ); ?></td>
246
+				<td data-export-label="PHP Max Input Vars"><?php _e('PHP Max Input Vars', 'give'); ?>:</td>
247
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The maximum number of variables your server can use for a single function to avoid overloads.', 'give')); ?></td>
248
+				<td><?php echo ini_get('max_input_vars'); ?></td>
249 249
 			</tr>
250 250
 			<tr>
251
-				<td data-export-label="PHP Max Upload Size"><?php _e( 'PHP Max Upload Size', 'give' ); ?>:</td>
252
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The largest filesize that can be uploaded to your WordPress installation.', 'give' ) ); ?></td>
253
-				<td><?php echo size_format( wp_max_upload_size() ); ?></td>
251
+				<td data-export-label="PHP Max Upload Size"><?php _e('PHP Max Upload Size', 'give'); ?>:</td>
252
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The largest filesize that can be uploaded to your WordPress installation.', 'give')); ?></td>
253
+				<td><?php echo size_format(wp_max_upload_size()); ?></td>
254 254
 			</tr>
255 255
 			<tr>
256
-				<td data-export-label="cURL Version"><?php _e( 'cURL Version', 'give' ); ?>:</td>
257
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The version of cURL installed on your server.', 'give' ) ); ?></td>
256
+				<td data-export-label="cURL Version"><?php _e('cURL Version', 'give'); ?>:</td>
257
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The version of cURL installed on your server.', 'give')); ?></td>
258 258
 				<td>
259 259
 					<?php
260
-					if ( function_exists( 'curl_version' ) ) {
260
+					if (function_exists('curl_version')) {
261 261
 						$curl_version = curl_version();
262 262
 
263
-						if ( version_compare( $curl_version['version'], '7.40', '<' ) ) {
264
-							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>';
263
+						if (version_compare($curl_version['version'], '7.40', '<')) {
264
+							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>';
265 265
 						} else {
266
-							echo '<mark class="yes">' . esc_html( $curl_version['version'] . ', ' . $curl_version['ssl_version'] ) . '</mark>';
266
+							echo '<mark class="yes">'.esc_html($curl_version['version'].', '.$curl_version['ssl_version']).'</mark>';
267 267
 						}
268 268
 					} else {
269 269
 						echo '&ndash';
@@ -272,42 +272,42 @@  discard block
 block discarded – undo
272 272
 				</td>
273 273
 			</tr>
274 274
 			<tr>
275
-				<td data-export-label="SUHOSIN Installed"><?php _e( 'SUHOSIN Installed', 'give' ); ?>:</td>
276
-				<td class="help"><?php echo Give()->tooltips->render_help( __( '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' ) ); ?></td>
277
-				<td><?php echo extension_loaded( 'suhosin' ) ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
275
+				<td data-export-label="SUHOSIN Installed"><?php _e('SUHOSIN Installed', 'give'); ?>:</td>
276
+				<td class="help"><?php echo Give()->tooltips->render_help(__('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')); ?></td>
277
+				<td><?php echo extension_loaded('suhosin') ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
278 278
 			</tr>
279 279
 		<?php endif;
280 280
 
281
-		if ( $wpdb->use_mysqli ) {
282
-			$ver = mysqli_get_server_info( $wpdb->dbh );
281
+		if ($wpdb->use_mysqli) {
282
+			$ver = mysqli_get_server_info($wpdb->dbh);
283 283
 		} else {
284 284
 			$ver = mysql_get_server_info();
285 285
 		}
286 286
 
287
-		if ( ! empty( $wpdb->is_mysql ) && ! stristr( $ver, 'MariaDB' ) ) : ?>
287
+		if ( ! empty($wpdb->is_mysql) && ! stristr($ver, 'MariaDB')) : ?>
288 288
 			<tr>
289
-				<td data-export-label="MySQL Version"><?php _e( 'MySQL Version', 'give' ); ?>:</td>
290
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The version of MySQL installed on your hosting server.', 'give' ) ); ?></td>
289
+				<td data-export-label="MySQL Version"><?php _e('MySQL Version', 'give'); ?>:</td>
290
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The version of MySQL installed on your hosting server.', 'give')); ?></td>
291 291
 				<td>
292 292
 					<?php
293 293
 					$mysql_version = $wpdb->db_version();
294 294
 
295
-					if ( version_compare( $mysql_version, '5.6', '<' ) ) {
296
-						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>';
295
+					if (version_compare($mysql_version, '5.6', '<')) {
296
+						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>';
297 297
 					} else {
298
-						echo '<mark class="yes">' . esc_html( $mysql_version ) . '</mark>';
298
+						echo '<mark class="yes">'.esc_html($mysql_version).'</mark>';
299 299
 					}
300 300
 					?>
301 301
 				</td>
302 302
 			</tr>
303 303
 		<?php endif; ?>
304 304
 		<tr>
305
-			<td data-export-label="Default Timezone is UTC"><?php _e( 'Default Timezone is UTC', 'give' ); ?>:</td>
306
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The default timezone for your server.', 'give' ) ); ?></td>
305
+			<td data-export-label="Default Timezone is UTC"><?php _e('Default Timezone is UTC', 'give'); ?>:</td>
306
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The default timezone for your server.', 'give')); ?></td>
307 307
 			<td><?php
308 308
 				$default_timezone = date_default_timezone_get();
309
-				if ( 'UTC' !== $default_timezone ) {
310
-					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( 'Default timezone is %s - it should be UTC', 'give' ), $default_timezone ) . '</mark>';
309
+				if ('UTC' !== $default_timezone) {
310
+					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> '.sprintf(__('Default timezone is %s - it should be UTC', 'give'), $default_timezone).'</mark>';
311 311
 				} else {
312 312
 					echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
313 313
 				} ?>
@@ -318,119 +318,119 @@  discard block
 block discarded – undo
318 318
 
319 319
 		// fsockopen/cURL.
320 320
 		$posting['fsockopen_curl']['name'] = 'fsockopen/cURL';
321
-		$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' );
321
+		$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');
322 322
 
323
-		if ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ) {
323
+		if (function_exists('fsockopen') || function_exists('curl_init')) {
324 324
 			$posting['fsockopen_curl']['success'] = true;
325 325
 		} else {
326 326
 			$posting['fsockopen_curl']['success'] = false;
327
-			$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' );
327
+			$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');
328 328
 		}
329 329
 
330 330
 		// SOAP.
331 331
 		$posting['soap_client']['name'] = 'SoapClient';
332
-		$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' );
332
+		$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');
333 333
 
334
-		if ( class_exists( 'SoapClient' ) ) {
334
+		if (class_exists('SoapClient')) {
335 335
 			$posting['soap_client']['success'] = true;
336 336
 		} else {
337 337
 			$posting['soap_client']['success'] = false;
338
-			$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>' );
338
+			$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>');
339 339
 		}
340 340
 
341 341
 		// DOMDocument.
342 342
 		$posting['dom_document']['name'] = 'DOMDocument';
343
-		$posting['dom_document']['help'] = __( 'HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'give' );
343
+		$posting['dom_document']['help'] = __('HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'give');
344 344
 
345
-		if ( class_exists( 'DOMDocument' ) ) {
345
+		if (class_exists('DOMDocument')) {
346 346
 			$posting['dom_document']['success'] = true;
347 347
 		} else {
348 348
 			$posting['dom_document']['success'] = false;
349
-			$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>' );
349
+			$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>');
350 350
 		}
351 351
 
352 352
 		// gzip.
353 353
 		$posting['gzip']['name'] = 'gzip';
354
-		$posting['gzip']['help'] = __( 'gzip is used for file compression and decompression.', 'give' );
354
+		$posting['gzip']['help'] = __('gzip is used for file compression and decompression.', 'give');
355 355
 
356
-		if ( is_callable( 'gzopen' ) ) {
356
+		if (is_callable('gzopen')) {
357 357
 			$posting['gzip']['success'] = true;
358 358
 		} else {
359 359
 			$posting['gzip']['success'] = false;
360
-			$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>' );
360
+			$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>');
361 361
 		}
362 362
 
363 363
 
364 364
 		// GD Graphics Library.
365 365
 		$posting['gd']['name']    = 'GD Graphics Library';
366
-		$posting['gd']['help']    = __( 'GD Graphics Library is used for dynamically manipulating images.', 'give' );
367
-		$posting['gd']['success'] = extension_loaded( 'gd' ) && function_exists( 'gd_info' ) ? true : false;
366
+		$posting['gd']['help']    = __('GD Graphics Library is used for dynamically manipulating images.', 'give');
367
+		$posting['gd']['success'] = extension_loaded('gd') && function_exists('gd_info') ? true : false;
368 368
 
369 369
 		// Multibyte String.
370 370
 		$posting['mbstring']['name'] = 'Multibyte String';
371
-		$posting['mbstring']['help'] = __( 'Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'give' );
371
+		$posting['mbstring']['help'] = __('Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'give');
372 372
 
373
-		if ( extension_loaded( 'mbstring' ) ) {
373
+		if (extension_loaded('mbstring')) {
374 374
 			$posting['mbstring']['success'] = true;
375 375
 		} else {
376 376
 			$posting['mbstring']['success'] = false;
377
-			$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>' );
377
+			$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>');
378 378
 		}
379 379
 
380 380
 		// WP Remote Post Check.
381
-		$posting['wp_remote_post']['name'] = __( 'Remote Post', 'give' );
382
-		$posting['wp_remote_post']['help'] = __( 'PayPal uses this method of communicating when sending back transaction information.', 'give' );
381
+		$posting['wp_remote_post']['name'] = __('Remote Post', 'give');
382
+		$posting['wp_remote_post']['help'] = __('PayPal uses this method of communicating when sending back transaction information.', 'give');
383 383
 
384
-		$response = wp_safe_remote_post( 'https://www.paypal.com/cgi-bin/webscr', array(
384
+		$response = wp_safe_remote_post('https://www.paypal.com/cgi-bin/webscr', array(
385 385
 			'timeout'     => 60,
386
-			'user-agent'  => 'Give/' . GIVE_VERSION,
386
+			'user-agent'  => 'Give/'.GIVE_VERSION,
387 387
 			'httpversion' => '1.1',
388 388
 			'body'        => array(
389 389
 				'cmd' => '_notify-validate',
390 390
 			),
391
-		) );
391
+		));
392 392
 
393
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
393
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
394 394
 			$posting['wp_remote_post']['success'] = true;
395 395
 		} else {
396
-			$posting['wp_remote_post']['note'] = __( 'wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider.', 'give' );
397
-			if ( is_wp_error( $response ) ) {
398
-				$posting['wp_remote_post']['note'] .= ' ' . sprintf( __( 'Error: %s', 'give' ), sanitize_text_field( $response->get_error_message() ) );
396
+			$posting['wp_remote_post']['note'] = __('wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider.', 'give');
397
+			if (is_wp_error($response)) {
398
+				$posting['wp_remote_post']['note'] .= ' '.sprintf(__('Error: %s', 'give'), sanitize_text_field($response->get_error_message()));
399 399
 			} else {
400
-				$posting['wp_remote_post']['note'] .= ' ' . sprintf( __( 'Status code: %s', 'give' ), sanitize_text_field( $response['response']['code'] ) );
400
+				$posting['wp_remote_post']['note'] .= ' '.sprintf(__('Status code: %s', 'give'), sanitize_text_field($response['response']['code']));
401 401
 			}
402 402
 			$posting['wp_remote_post']['success'] = false;
403 403
 		}
404 404
 
405 405
 		// WP Remote Get Check.
406
-		$posting['wp_remote_get']['name'] = __( 'Remote Get', 'give' );
407
-		$posting['wp_remote_get']['help'] = __( 'Give plugins may use this method of communication when checking for plugin updates.', 'give' );
406
+		$posting['wp_remote_get']['name'] = __('Remote Get', 'give');
407
+		$posting['wp_remote_get']['help'] = __('Give plugins may use this method of communication when checking for plugin updates.', 'give');
408 408
 
409
-		$response = wp_safe_remote_get( 'https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . ( is_multisite() ? '1' : '0' ) );
409
+		$response = wp_safe_remote_get('https://woocommerce.com/wc-api/product-key-api?request=ping&network='.(is_multisite() ? '1' : '0'));
410 410
 
411
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
411
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
412 412
 			$posting['wp_remote_get']['success'] = true;
413 413
 		} else {
414
-			$posting['wp_remote_get']['note'] = __( 'wp_remote_get() failed. The Give plugin updater won\'t work with your server. Contact your hosting provider.', 'give' );
415
-			if ( is_wp_error( $response ) ) {
416
-				$posting['wp_remote_get']['note'] .= ' ' . sprintf( __( 'Error: %s', 'give' ), give_clean( $response->get_error_message() ) );
414
+			$posting['wp_remote_get']['note'] = __('wp_remote_get() failed. The Give plugin updater won\'t work with your server. Contact your hosting provider.', 'give');
415
+			if (is_wp_error($response)) {
416
+				$posting['wp_remote_get']['note'] .= ' '.sprintf(__('Error: %s', 'give'), give_clean($response->get_error_message()));
417 417
 			} else {
418
-				$posting['wp_remote_get']['note'] .= ' ' . sprintf( __( 'Status code: %s', 'give' ), give_clean( $response['response']['code'] ) );
418
+				$posting['wp_remote_get']['note'] .= ' '.sprintf(__('Status code: %s', 'give'), give_clean($response['response']['code']));
419 419
 			}
420 420
 			$posting['wp_remote_get']['success'] = false;
421 421
 		}
422 422
 
423
-		$posting = apply_filters( 'give_debug_posting', $posting );
423
+		$posting = apply_filters('give_debug_posting', $posting);
424 424
 
425
-		foreach ( $posting as $post ) {
426
-			$mark = ! empty( $post['success'] ) ? 'yes' : 'error';
425
+		foreach ($posting as $post) {
426
+			$mark = ! empty($post['success']) ? 'yes' : 'error';
427 427
 			?>
428 428
 			<tr>
429
-				<td data-export-label="<?php echo esc_html( $post['name'] ); ?>"><?php echo esc_html( $post['name'] ); ?>:</td>
430
-				<td class="help"><?php echo Give()->tooltips->render_help( esc_attr( isset( $post['help'] ) ? $post['help'] : '' ) ); ?></td>
429
+				<td data-export-label="<?php echo esc_html($post['name']); ?>"><?php echo esc_html($post['name']); ?>:</td>
430
+				<td class="help"><?php echo Give()->tooltips->render_help(esc_attr(isset($post['help']) ? $post['help'] : '')); ?></td>
431 431
 				<td>
432 432
 					<mark class="<?php echo $mark; ?>">
433
-						<?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'] ) : ''; ?>
433
+						<?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']) : ''; ?>
434 434
 					</mark>
435 435
 				</td>
436 436
 			</tr>
@@ -443,47 +443,47 @@  discard block
 block discarded – undo
443 443
 <table class="give-status-table widefat" cellspacing="0">
444 444
 	<thead>
445 445
 		<tr>
446
-			<th colspan="3" data-export-label="Give Configuration"><h2><?php _e( 'Give Configuration', 'give' ); ?></h2></th>
446
+			<th colspan="3" data-export-label="Give Configuration"><h2><?php _e('Give Configuration', 'give'); ?></h2></th>
447 447
 		</tr>
448 448
 	</thead>
449 449
 	<tbody>
450 450
 		<tr>
451
-			<td data-export-label="Give Version"><?php _e( 'Give Version', 'give' ); ?>:</td>
452
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The version of Give installed on your site.', 'give' ) ); ?></td>
453
-			<td><?php echo esc_html( GIVE_VERSION ); ?></td>
451
+			<td data-export-label="Give Version"><?php _e('Give Version', 'give'); ?>:</td>
452
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The version of Give installed on your site.', 'give')); ?></td>
453
+			<td><?php echo esc_html(GIVE_VERSION); ?></td>
454 454
 		</tr>
455 455
 		<tr>
456
-			<td data-export-label="Give Cache"><?php _e( 'Give Cache', 'give' ); ?>:</td>
457
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether cache is enabled in Give settings.', 'give' ) ); ?></td>
458
-			<td><?php echo give_is_setting_enabled( give_get_option('cache', 'enabled' ) ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
456
+			<td data-export-label="Give Cache"><?php _e('Give Cache', 'give'); ?>:</td>
457
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether cache is enabled in Give settings.', 'give')); ?></td>
458
+			<td><?php echo give_is_setting_enabled(give_get_option('cache', 'enabled')) ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
459 459
 		</tr>
460 460
 		<tr>
461
-			<td data-export-label="Database Updates"><?php _e( 'Database Updates', 'give' ); ?>:</td>
462
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'This will show the number of pending database updates.', 'give' ) ); ?></td>
461
+			<td data-export-label="Database Updates"><?php _e('Database Updates', 'give'); ?>:</td>
462
+			<td class="help"><?php echo Give()->tooltips->render_help(__('This will show the number of pending database updates.', 'give')); ?></td>
463 463
 			<td>
464 464
 				<?php
465
-				$updates_text    = __( 'All DB Updates Completed.', 'give' );
465
+				$updates_text    = __('All DB Updates Completed.', 'give');
466 466
 				$pending_updates = $give_updates->get_total_new_db_update_count();
467 467
 				$total_updates   = $give_updates->get_total_db_update_count();
468 468
 
469
-				if( Give_Updates::$background_updater->is_paused_process() ) {
469
+				if (Give_Updates::$background_updater->is_paused_process()) {
470 470
 					// When all the db updates are pending.
471 471
 					$updates_text = sprintf(
472
-						__( '%1$s updates still need to run. (Paused) ', 'give' ),
473
-						count( $give_updates->get_updates('database', 'new' ) )
472
+						__('%1$s updates still need to run. (Paused) ', 'give'),
473
+						count($give_updates->get_updates('database', 'new'))
474 474
 					);
475
-				} elseif( $pending_updates === $total_updates ) {
475
+				} elseif ($pending_updates === $total_updates) {
476 476
 
477 477
 					// When all the db updates are pending.
478 478
 					$updates_text = sprintf(
479
-						__( '%1$s updates still need to run.', 'give' ),
479
+						__('%1$s updates still need to run.', 'give'),
480 480
 						$total_updates
481 481
 					);
482
-				} elseif( $pending_updates > 0 ) {
482
+				} elseif ($pending_updates > 0) {
483 483
 
484 484
 					// When some of the db updates are completed and some are pending.
485 485
 					$updates_text = sprintf(
486
-						__( '%1$s of %2$s updates still need to run.', 'give' ),
486
+						__('%1$s of %2$s updates still need to run.', 'give'),
487 487
 						$pending_updates,
488 488
 						$total_updates
489 489
 					);
@@ -494,148 +494,147 @@  discard block
 block discarded – undo
494 494
 			</td>
495 495
 		</tr>
496 496
 		<tr>
497
-			<td data-export-label="Give Cache"><?php _e( 'Give Cache', 'give' ); ?>:</td>
498
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether cache is enabled in Give settings.', 'give' ) ); ?></td>
499
-			<td><?php echo give_is_setting_enabled( give_get_option('cache', 'enabled' ) ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
497
+			<td data-export-label="Give Cache"><?php _e('Give Cache', 'give'); ?>:</td>
498
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether cache is enabled in Give settings.', 'give')); ?></td>
499
+			<td><?php echo give_is_setting_enabled(give_get_option('cache', 'enabled')) ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
500 500
 		</tr>
501 501
 		<tr>
502
-			<td data-export-label="Give Cache"><?php _e( 'Give Emails', 'give' ); ?>:</td>
503
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether emails is enabled in Give settings.', 'give' ) ); ?></td>
502
+			<td data-export-label="Give Cache"><?php _e('Give Emails', 'give'); ?>:</td>
503
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether emails is enabled in Give settings.', 'give')); ?></td>
504 504
 			<td>
505 505
 				<?php
506 506
 				/* @var Give_Email_Notification $email_notification */
507
-				if( $email_notifications = Give_Email_Notifications::get_instance()->get_email_notifications() ) {
507
+				if ($email_notifications = Give_Email_Notifications::get_instance()->get_email_notifications()) {
508 508
 					ob_start();
509 509
 
510
-					foreach ( Give_Email_Notifications::get_instance()->get_email_notifications() as $email_notification ) {
511
-						$status = Give_Email_Notification_Util::is_email_notification_active( $email_notification ) ?
512
-							'yes' :
513
-							'error';
510
+					foreach (Give_Email_Notifications::get_instance()->get_email_notifications() as $email_notification) {
511
+						$status = Give_Email_Notification_Util::is_email_notification_active($email_notification) ?
512
+							'yes' : 'error';
514 513
 
515 514
 						echo sprintf(
516 515
 							'<li><mark class="%1$s"><span class="dashicons dashicons-%2$s"></mark></span>%3$s</li>',
517
-							Give_Email_Notification_Util::is_email_notification_active( $email_notification ) ? 'yes' : 'error',
518
-							Give_Email_Notification_Util::is_email_notification_active( $email_notification ) ? 'yes' : 'no-alt',
516
+							Give_Email_Notification_Util::is_email_notification_active($email_notification) ? 'yes' : 'error',
517
+							Give_Email_Notification_Util::is_email_notification_active($email_notification) ? 'yes' : 'no-alt',
519 518
 							$email_notification->config['label']
520 519
 						);
521 520
 					}
522 521
 
523
-					echo sprintf( '<ul>%s</ul>', ob_get_clean() );
522
+					echo sprintf('<ul>%s</ul>', ob_get_clean());
524 523
 				}
525 524
 				?>
526 525
 			</td>
527 526
 		</tr>
528 527
 		<tr>
529
-			<td data-export-label="Upgraded From"><?php _e( 'Upgraded From', 'give' ); ?>:</td>
530
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The version of Give installed prior to the last update.', 'give' ) ); ?></td>
531
-			<td><?php echo esc_html( get_option( 'give_version_upgraded_from', '&ndash;' ) ); ?></td>
528
+			<td data-export-label="Upgraded From"><?php _e('Upgraded From', 'give'); ?>:</td>
529
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The version of Give installed prior to the last update.', 'give')); ?></td>
530
+			<td><?php echo esc_html(get_option('give_version_upgraded_from', '&ndash;')); ?></td>
532 531
 		</tr>
533 532
 		<tr>
534
-			<td data-export-label="Test Mode"><?php _e( 'Test Mode', 'give' ); ?>:</td>
535
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether Test Mode is enabled in Give settings.', 'give' ) ); ?></td>
536
-			<td><?php echo give_is_test_mode() ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
533
+			<td data-export-label="Test Mode"><?php _e('Test Mode', 'give'); ?>:</td>
534
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether Test Mode is enabled in Give settings.', 'give')); ?></td>
535
+			<td><?php echo give_is_test_mode() ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
537 536
 		</tr>
538 537
 		<tr>
539
-			<td data-export-label="Currency Code"><?php _e( 'Currency Code', 'give' ); ?>:</td>
540
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The currency code selected in Give settings.', 'give' ) ); ?></td>
541
-			<td><?php echo esc_html( give_get_currency() ); ?></td>
538
+			<td data-export-label="Currency Code"><?php _e('Currency Code', 'give'); ?>:</td>
539
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The currency code selected in Give settings.', 'give')); ?></td>
540
+			<td><?php echo esc_html(give_get_currency()); ?></td>
542 541
 		</tr>
543 542
 		<tr>
544
-			<td data-export-label="Currency Position"><?php _e( 'Currency Position', 'give' ); ?>:</td>
545
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The currency position selected in Give settings.', 'give' ) ); ?></td>
546
-			<td><?php echo 'before' === give_get_option( 'currency_position' ) ? __( 'Before', 'give' ) : __( 'After', 'give' ); ?></td>
543
+			<td data-export-label="Currency Position"><?php _e('Currency Position', 'give'); ?>:</td>
544
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The currency position selected in Give settings.', 'give')); ?></td>
545
+			<td><?php echo 'before' === give_get_option('currency_position') ? __('Before', 'give') : __('After', 'give'); ?></td>
547 546
 		</tr>
548 547
 		<tr>
549
-			<td data-export-label="Decimal Separator"><?php _e( 'Decimal Separator', 'give' ); ?>:</td>
550
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The decimal separator defined in Give settings.', 'give' ) ); ?></td>
551
-			<td><?php echo esc_html( give_get_price_decimal_separator() ); ?></td>
548
+			<td data-export-label="Decimal Separator"><?php _e('Decimal Separator', 'give'); ?>:</td>
549
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The decimal separator defined in Give settings.', 'give')); ?></td>
550
+			<td><?php echo esc_html(give_get_price_decimal_separator()); ?></td>
552 551
 		</tr>
553 552
 		<tr>
554
-			<td data-export-label="Thousands Separator"><?php _e( 'Thousands Separator', 'give' ); ?>:</td>
555
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The thousands separator defined in Give settings.', 'give' ) ); ?></td>
556
-			<td><?php echo esc_html( give_get_price_thousand_separator() ); ?></td>
553
+			<td data-export-label="Thousands Separator"><?php _e('Thousands Separator', 'give'); ?>:</td>
554
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The thousands separator defined in Give settings.', 'give')); ?></td>
555
+			<td><?php echo esc_html(give_get_price_thousand_separator()); ?></td>
557 556
 		</tr>
558 557
 		<tr>
559
-			<td data-export-label="Success Page"><?php _e( 'Success Page', 'give' ); ?>:</td>
560
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The page where donors land following a successful transaction.', 'give' ) ); ?></td>
561
-			<td><?php echo ! empty( $give_options['success_page'] ) ? esc_url( get_permalink( $give_options['success_page'] ) ) : '&ndash;'; ?></td>
558
+			<td data-export-label="Success Page"><?php _e('Success Page', 'give'); ?>:</td>
559
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The page where donors land following a successful transaction.', 'give')); ?></td>
560
+			<td><?php echo ! empty($give_options['success_page']) ? esc_url(get_permalink($give_options['success_page'])) : '&ndash;'; ?></td>
562 561
 		</tr>
563 562
 		<tr>
564
-			<td data-export-label="Failure Page"><?php _e( 'Failure Page', 'give' ); ?>:</td>
565
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The page where donors land following a failed transaction.', 'give' ) ); ?></td>
566
-			<td><?php echo ! empty( $give_options['failure_page'] ) ? esc_url( get_permalink( $give_options['failure_page'] ) ) : '&ndash;'; ?></td>
563
+			<td data-export-label="Failure Page"><?php _e('Failure Page', 'give'); ?>:</td>
564
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The page where donors land following a failed transaction.', 'give')); ?></td>
565
+			<td><?php echo ! empty($give_options['failure_page']) ? esc_url(get_permalink($give_options['failure_page'])) : '&ndash;'; ?></td>
567 566
 		</tr>
568 567
 		<tr>
569
-			<td data-export-label="Donation History Page"><?php _e( 'Donation History Page', 'give' ); ?>:</td>
570
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The page where past donations are listed.', 'give' ) ); ?></td>
571
-			<td><?php echo ! empty( $give_options['history_page'] ) ? esc_url( get_permalink( $give_options['history_page'] ) ) : '&ndash;'; ?></td>
568
+			<td data-export-label="Donation History Page"><?php _e('Donation History Page', 'give'); ?>:</td>
569
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The page where past donations are listed.', 'give')); ?></td>
570
+			<td><?php echo ! empty($give_options['history_page']) ? esc_url(get_permalink($give_options['history_page'])) : '&ndash;'; ?></td>
572 571
 		</tr>
573 572
 		<tr>
574
-			<td data-export-label="Give Forms Slug"><?php _e( 'Give Forms Slug', 'give' ); ?>:</td>
575
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The slug used for Give donation forms.', 'give' ) ); ?></td>
576
-			<td><?php echo esc_html( defined( 'GIVE_SLUG' ) ? '/' . GIVE_SLUG . '/' : '/donations/' ); ?></td>
573
+			<td data-export-label="Give Forms Slug"><?php _e('Give Forms Slug', 'give'); ?>:</td>
574
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The slug used for Give donation forms.', 'give')); ?></td>
575
+			<td><?php echo esc_html(defined('GIVE_SLUG') ? '/'.GIVE_SLUG.'/' : '/donations/'); ?></td>
577 576
 		</tr>
578 577
 		<?php
579 578
 		$active_gateways  = give_get_enabled_payment_gateways();
580 579
 		$enabled_gateways = $default_gateway = '';
581 580
 
582
-		if ( $active_gateways ) {
583
-			$default_gateway_is_active = give_is_gateway_active( give_get_default_gateway( null ) );
581
+		if ($active_gateways) {
582
+			$default_gateway_is_active = give_is_gateway_active(give_get_default_gateway(null));
584 583
 
585
-			if ( $default_gateway_is_active ) {
586
-				$default_gateway = give_get_default_gateway( null );
587
-				$default_gateway = $active_gateways[ $default_gateway ]['admin_label'];
584
+			if ($default_gateway_is_active) {
585
+				$default_gateway = give_get_default_gateway(null);
586
+				$default_gateway = $active_gateways[$default_gateway]['admin_label'];
588 587
 			} else {
589
-				$default_gateway = __( 'Test Donation', 'give' );
588
+				$default_gateway = __('Test Donation', 'give');
590 589
 			}
591 590
 
592 591
 			$gateways = array();
593 592
 
594
-			foreach ( $active_gateways as $gateway ) {
593
+			foreach ($active_gateways as $gateway) {
595 594
 				$gateways[] = $gateway['admin_label'];
596 595
 			}
597 596
 
598
-			$enabled_gateways = implode( ', ', $gateways );
597
+			$enabled_gateways = implode(', ', $gateways);
599 598
 		}
600 599
 		?>
601 600
 		<tr>
602
-			<td data-export-label="Enabled Payment Gateways"><?php _e( 'Enabled Payment Gateways', 'give' ); ?>:</td>
603
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'All payment gateways enabled in Give settings.', 'give' ) ); ?></td>
604
-			<td><?php echo esc_html( ! empty( $enabled_gateways ) ? $enabled_gateways : '&ndash;' ); ?></td>
601
+			<td data-export-label="Enabled Payment Gateways"><?php _e('Enabled Payment Gateways', 'give'); ?>:</td>
602
+			<td class="help"><?php echo Give()->tooltips->render_help(__('All payment gateways enabled in Give settings.', 'give')); ?></td>
603
+			<td><?php echo esc_html( ! empty($enabled_gateways) ? $enabled_gateways : '&ndash;'); ?></td>
605 604
 		</tr>
606 605
 		<tr>
607
-			<td data-export-label="Default Payment Gateway"><?php _e( 'Default Payment Gateway', 'give' ); ?>:</td>
608
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The default payment gateway selected in Give settings.', 'give' ) ); ?></td>
609
-			<td><?php echo esc_html( ! empty( $default_gateway ) ? $default_gateway : '&ndash;' ); ?></td>
606
+			<td data-export-label="Default Payment Gateway"><?php _e('Default Payment Gateway', 'give'); ?>:</td>
607
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The default payment gateway selected in Give settings.', 'give')); ?></td>
608
+			<td><?php echo esc_html( ! empty($default_gateway) ? $default_gateway : '&ndash;'); ?></td>
610 609
 		</tr>
611 610
 		<tr>
612
-			<td data-export-label="PayPal IPN Verification"><?php _e( 'PayPal IPN Verification', 'give' ); ?>:</td>
613
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether admins requires verification of IPN notifications with PayPal.', 'give' ) ); ?></td>
614
-			<td><?php echo 'enabled' === give_get_option( 'paypal_verification' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
611
+			<td data-export-label="PayPal IPN Verification"><?php _e('PayPal IPN Verification', 'give'); ?>:</td>
612
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether admins requires verification of IPN notifications with PayPal.', 'give')); ?></td>
613
+			<td><?php echo 'enabled' === give_get_option('paypal_verification') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
615 614
 		</tr>
616 615
 		<tr>
617
-			<td data-export-label="PayPal IPN Notifications"><?php _e( 'PayPal IPN Notifications', 'give' ); ?>:</td>
618
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Displays whether when last PayPal IPN is received with which donation or transaction.', 'give' ) ); ?></td>
616
+			<td data-export-label="PayPal IPN Notifications"><?php _e('PayPal IPN Notifications', 'give'); ?>:</td>
617
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Displays whether when last PayPal IPN is received with which donation or transaction.', 'give')); ?></td>
619 618
 			<td>
620 619
 				<?php
621
-				$last_paypal_ipn_received = get_option( 'give_last_paypal_ipn_received' );
620
+				$last_paypal_ipn_received = get_option('give_last_paypal_ipn_received');
622 621
 				$donation_id              = $last_paypal_ipn_received['payment_id'];
623 622
 				if (
624
-					is_array( $last_paypal_ipn_received )
625
-					&& count( $last_paypal_ipn_received ) > 0
626
-					&& get_post( $donation_id ) instanceof WP_Post
623
+					is_array($last_paypal_ipn_received)
624
+					&& count($last_paypal_ipn_received) > 0
625
+					&& get_post($donation_id) instanceof WP_Post
627 626
 				) {
628
-					$ipn_timestamp   = give_get_meta( $donation_id, 'give_last_paypal_ipn_received', true );
629
-					$transaction_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id=' . $last_paypal_ipn_received['transaction_id'];
630
-					$donation_url    = site_url() . '/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $donation_id;
627
+					$ipn_timestamp   = give_get_meta($donation_id, 'give_last_paypal_ipn_received', true);
628
+					$transaction_url = 'https://history.paypal.com/cgi-bin/webscr?cmd=_history-details-from-hub&id='.$last_paypal_ipn_received['transaction_id'];
629
+					$donation_url    = site_url().'/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id='.$donation_id;
631 630
 					echo sprintf(
632
-						__( 'IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ) on %s at %s. Status %s', 'give' ),
631
+						__('IPN received for <a href="%s">#%s</a> ( <a href="%s" target="_blank">%s</a> ) on %s at %s. Status %s', 'give'),
633 632
 						$donation_url,
634 633
 						$donation_id,
635 634
 						$transaction_url,
636 635
 						$last_paypal_ipn_received['transaction_id'],
637
-						date_i18n( 'm/d/Y', $ipn_timestamp ),
638
-						date_i18n( 'H:i', $ipn_timestamp ),
636
+						date_i18n('m/d/Y', $ipn_timestamp),
637
+						date_i18n('H:i', $ipn_timestamp),
639 638
 						$last_paypal_ipn_received['auth_status']
640 639
 					);
641 640
 				} else {
@@ -645,9 +644,9 @@  discard block
 block discarded – undo
645 644
 			</td>
646 645
 		</tr>
647 646
 		<tr>
648
-			<td data-export-label="Donor Email Access"><?php _e( 'Donor Email Access', 'give' ); ?>:</td>
649
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether donors can access their donation history using only email.', 'give' ) ); ?></td>
650
-			<td><?php echo 'enabled' === give_get_option( 'email_access' ) ? __( 'Enabled', 'give' ) : __( 'Disabled', 'give' ); ?></td>
647
+			<td data-export-label="Donor Email Access"><?php _e('Donor Email Access', 'give'); ?>:</td>
648
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether donors can access their donation history using only email.', 'give')); ?></td>
649
+			<td><?php echo 'enabled' === give_get_option('email_access') ? __('Enabled', 'give') : __('Disabled', 'give'); ?></td>
651 650
 		</tr>
652 651
 	</tbody>
653 652
 </table>
@@ -655,13 +654,13 @@  discard block
 block discarded – undo
655 654
 <table class="give-status-table widefat" cellspacing="0">
656 655
 	<thead>
657 656
 	<tr>
658
-		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e( 'Active Give Add-ons', 'give' ); ?></h2></th>
657
+		<th colspan="3" data-export-label="Active Give Add-ons"><h2><?php _e('Active Give Add-ons', 'give'); ?></h2></th>
659 658
 	</tr>
660 659
 	</thead>
661 660
 	<tbody>
662 661
 		<?php
663
-		foreach ( $plugins as $plugin_data ) {
664
-			if ( 'active' != $plugin_data['Status'] ||  'add-on' != $plugin_data['Type'] ) {
662
+		foreach ($plugins as $plugin_data) {
663
+			if ('active' != $plugin_data['Status'] || 'add-on' != $plugin_data['Type']) {
665 664
 				continue;
666 665
 			}
667 666
 
@@ -669,40 +668,40 @@  discard block
 block discarded – undo
669 668
 			$author_name = $plugin_data['Author'];
670 669
 
671 670
 			// Link the plugin name to the plugin URL if available.
672
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
671
+			if ( ! empty($plugin_data['PluginURI'])) {
673 672
 				$plugin_name = sprintf(
674 673
 					'<a href="%s" title="%s">%s</a>',
675
-					esc_url( $plugin_data['PluginURI'] ),
676
-					esc_attr__( 'Visit plugin homepage', 'give' ),
674
+					esc_url($plugin_data['PluginURI']),
675
+					esc_attr__('Visit plugin homepage', 'give'),
677 676
 					$plugin_name
678 677
 				);
679 678
 			}
680 679
 
681 680
 			// Link the author name to the author URL if available.
682
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
681
+			if ( ! empty($plugin_data['AuthorURI'])) {
683 682
 				$author_name = sprintf(
684 683
 					'<a href="%s" title="%s">%s</a>',
685
-					esc_url( $plugin_data['AuthorURI'] ),
686
-					esc_attr__( 'Visit author homepage', 'give' ),
684
+					esc_url($plugin_data['AuthorURI']),
685
+					esc_attr__('Visit author homepage', 'give'),
687 686
 					$author_name
688 687
 				);
689 688
 			}
690 689
 			?>
691 690
 			<tr>
692
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
691
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
693 692
 				<td class="help">&nbsp;</td>
694 693
 				<td>
695 694
 					<?php
696
-					if ( true === $plugin_data['License'] ) {
697
-						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> ' . __( 'Licensed', 'give' );
695
+					if (true === $plugin_data['License']) {
696
+						echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark> '.__('Licensed', 'give');
698 697
 					} else {
699
-						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> ' . __( 'Unlicensed', 'give' );
698
+						echo '<mark class="error"><span class="dashicons dashicons-no-alt"></span></mark> '.__('Unlicensed', 'give');
700 699
 					}
701 700
 
702 701
 					echo ' &ndash; '
703
-					     . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
702
+					     . sprintf(_x('by %s', 'by author', 'give'), wp_kses($author_name, wp_kses_allowed_html('post')))
704 703
 					     . ' &ndash; '
705
-					     . esc_html( $plugin_data['Version'] );
704
+					     . esc_html($plugin_data['Version']);
706 705
 					?>
707 706
 				</td>
708 707
 			</tr>
@@ -715,18 +714,18 @@  discard block
 block discarded – undo
715 714
 <table class="give-status-table widefat" cellspacing="0">
716 715
 	<thead>
717 716
 		<tr>
718
-			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e( 'Other Active Plugins', 'give' ); ?></h2></th>
717
+			<th colspan="3" data-export-label="Other Active Plugins"><h2><?php _e('Other Active Plugins', 'give'); ?></h2></th>
719 718
 		</tr>
720 719
 	</thead>
721 720
 	<tbody>
722 721
 		<?php
723
-		foreach ( $plugins as $plugin_data ) {
724
-			if ( 'active' != $plugin_data['Status'] ||  'other' != $plugin_data['Type'] ) {
722
+		foreach ($plugins as $plugin_data) {
723
+			if ('active' != $plugin_data['Status'] || 'other' != $plugin_data['Type']) {
725 724
 				continue;
726 725
 			}
727 726
 
728 727
 			// Do not show Give core plugin.
729
-			if ( 'Give - Donation Plugin' === $plugin_data['Name'] ) {
728
+			if ('Give - Donation Plugin' === $plugin_data['Name']) {
730 729
 				continue;
731 730
 			}
732 731
 
@@ -734,29 +733,29 @@  discard block
 block discarded – undo
734 733
 			$author_name = $plugin_data['Author'];
735 734
 
736 735
 			// Link the plugin name to the plugin URL if available.
737
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
736
+			if ( ! empty($plugin_data['PluginURI'])) {
738 737
 				$plugin_name = sprintf(
739 738
 					'<a href="%s" title="%s">%s</a>',
740
-					esc_url( $plugin_data['PluginURI'] ),
741
-					esc_attr__( 'Visit plugin homepage', 'give' ),
739
+					esc_url($plugin_data['PluginURI']),
740
+					esc_attr__('Visit plugin homepage', 'give'),
742 741
 					$plugin_name
743 742
 				);
744 743
 			}
745 744
 
746 745
 			// Link the author name to the author URL if available.
747
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
746
+			if ( ! empty($plugin_data['AuthorURI'])) {
748 747
 				$author_name = sprintf(
749 748
 					'<a href="%s" title="%s">%s</a>',
750
-					esc_url( $plugin_data['AuthorURI'] ),
751
-					esc_attr__( 'Visit author homepage', 'give' ),
749
+					esc_url($plugin_data['AuthorURI']),
750
+					esc_attr__('Visit author homepage', 'give'),
752 751
 					$author_name
753 752
 				);
754 753
 			}
755 754
 			?>
756 755
 			<tr>
757
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
756
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
758 757
 				<td class="help">&nbsp;</td>
759
-				<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>
758
+				<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>
760 759
 			</tr>
761 760
 			<?php
762 761
 		}
@@ -767,13 +766,13 @@  discard block
 block discarded – undo
767 766
 <table class="give-status-table widefat" cellspacing="0">
768 767
 	<thead>
769 768
 		<tr>
770
-			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e( 'Inactive Plugins', 'give' ); ?></h2></th>
769
+			<th colspan="3" data-export-label="Inactive Plugins"><h2><?php _e('Inactive Plugins', 'give'); ?></h2></th>
771 770
 		</tr>
772 771
 	</thead>
773 772
 	<tbody>
774 773
 		<?php
775
-		foreach ( $plugins as $plugin_data ) {
776
-			if ( 'inactive' != $plugin_data['Status'] ) {
774
+		foreach ($plugins as $plugin_data) {
775
+			if ('inactive' != $plugin_data['Status']) {
777 776
 				continue;
778 777
 			}
779 778
 
@@ -781,29 +780,29 @@  discard block
 block discarded – undo
781 780
 			$author_name = $plugin_data['Author'];
782 781
 
783 782
 			// Link the plugin name to the plugin URL if available.
784
-			if ( ! empty( $plugin_data['PluginURI'] ) ) {
783
+			if ( ! empty($plugin_data['PluginURI'])) {
785 784
 				$plugin_name = sprintf(
786 785
 					'<a href="%s" title="%s">%s</a>',
787
-					esc_url( $plugin_data['PluginURI'] ),
788
-					esc_attr__( 'Visit plugin homepage', 'give' ),
786
+					esc_url($plugin_data['PluginURI']),
787
+					esc_attr__('Visit plugin homepage', 'give'),
789 788
 					$plugin_name
790 789
 				);
791 790
 			}
792 791
 
793 792
 			// Link the author name to the author URL if available.
794
-			if ( ! empty( $plugin_data['AuthorURI'] ) ) {
793
+			if ( ! empty($plugin_data['AuthorURI'])) {
795 794
 				$author_name = sprintf(
796 795
 					'<a href="%s" title="%s">%s</a>',
797
-					esc_url( $plugin_data['AuthorURI'] ),
798
-					esc_attr__( 'Visit author homepage', 'give' ),
796
+					esc_url($plugin_data['AuthorURI']),
797
+					esc_attr__('Visit author homepage', 'give'),
799 798
 					$author_name
800 799
 				);
801 800
 			}
802 801
 			?>
803 802
 			<tr>
804
-				<td><?php echo wp_kses( $plugin_name, wp_kses_allowed_html( 'post' ) ); ?></td>
803
+				<td><?php echo wp_kses($plugin_name, wp_kses_allowed_html('post')); ?></td>
805 804
 				<td class="help">&nbsp;</td>
806
-				<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>
805
+				<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>
807 806
 			</tr>
808 807
 			<?php
809 808
 		}
@@ -813,38 +812,38 @@  discard block
 block discarded – undo
813 812
 
814 813
 <?php
815 814
 $active_mu_plugins = (array) get_mu_plugins();
816
-if ( ! empty( $active_mu_plugins ) ) {
815
+if ( ! empty($active_mu_plugins)) {
817 816
 ?>
818 817
 	<table class="give-status-table widefat" cellspacing="0">
819 818
 		<thead>
820 819
 			<tr>
821
-				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e( 'Active MU Plugins', 'give' ); ?></h2></th>
820
+				<th colspan="3" data-export-label="Active MU Plugins"><h2><?php _e('Active MU Plugins', 'give'); ?></h2></th>
822 821
 			</tr>
823 822
 		</thead>
824 823
 		<tbody>
825 824
 			<?php
826 825
 
827
-			foreach ( $active_mu_plugins as $mu_plugin_data ) {
828
-				if ( ! empty( $mu_plugin_data['Name'] ) ) {
826
+			foreach ($active_mu_plugins as $mu_plugin_data) {
827
+				if ( ! empty($mu_plugin_data['Name'])) {
829 828
 					// Link the plugin name to the plugin URL if available.
830
-					$plugin_name = esc_html( $mu_plugin_data['Name'] );
829
+					$plugin_name = esc_html($mu_plugin_data['Name']);
831 830
 
832
-					if ( ! empty( $mu_plugin_data['PluginURI'] ) ) {
831
+					if ( ! empty($mu_plugin_data['PluginURI'])) {
833 832
 						$plugin_name = sprintf(
834 833
 							'<a href="%s" title="%s">%s</a>',
835
-							esc_url( $mu_plugin_data['PluginURI'] ),
836
-							esc_attr__( 'Visit plugin homepage', 'give' ),
834
+							esc_url($mu_plugin_data['PluginURI']),
835
+							esc_attr__('Visit plugin homepage', 'give'),
837 836
 							$plugin_name
838 837
 						);
839 838
 					}
840 839
 
841 840
 					// Link the author name to the author URL if available.
842
-					$author_name = esc_html( $mu_plugin_data['Author'] );
841
+					$author_name = esc_html($mu_plugin_data['Author']);
843 842
 
844
-					if ( ! empty( $mu_plugin_data['AuthorURI'] ) ) {
843
+					if ( ! empty($mu_plugin_data['AuthorURI'])) {
845 844
 						$author_name = sprintf(
846 845
 							'<a href="%s">%s</a>',
847
-							esc_url( $mu_plugin_data['AuthorURI'] ),
846
+							esc_url($mu_plugin_data['AuthorURI']),
848 847
 							$author_name
849 848
 						);
850 849
 					}
@@ -852,7 +851,7 @@  discard block
 block discarded – undo
852 851
 					<tr>
853 852
 						<td><?php echo $plugin_name; ?></td>
854 853
 						<td class="help">&nbsp;</td>
855
-						<td><?php echo sprintf( _x( 'by %s', 'by author', 'give' ), $author_name ) . ' &ndash; ' . esc_html( $mu_plugin_data['Version'] ); ?></td>
854
+						<td><?php echo sprintf(_x('by %s', 'by author', 'give'), $author_name).' &ndash; '.esc_html($mu_plugin_data['Version']); ?></td>
856 855
 					</tr>
857 856
 					<?php
858 857
 				}
@@ -865,53 +864,53 @@  discard block
 block discarded – undo
865 864
 <table class="give-status-table widefat" cellspacing="0">
866 865
 	<thead>
867 866
 		<tr>
868
-			<th colspan="3" data-export-label="Theme"><h2><?php _e( 'Theme', 'give' ); ?></h2></th>
867
+			<th colspan="3" data-export-label="Theme"><h2><?php _e('Theme', 'give'); ?></h2></th>
869 868
 		</tr>
870 869
 	</thead>
871 870
 	<?php
872
-	include_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
871
+	include_once(ABSPATH.'wp-admin/includes/theme-install.php');
873 872
 	$active_theme = wp_get_theme();
874 873
 	?>
875 874
 	<tbody>
876 875
 		<tr>
877
-			<td data-export-label="Name"><?php _e( 'Name', 'give' ); ?>:</td>
878
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The name of the current active theme.', 'give' )  ); ?></td>
879
-			<td><?php echo esc_html( $active_theme->Name ); ?></td>
876
+			<td data-export-label="Name"><?php _e('Name', 'give'); ?>:</td>
877
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The name of the current active theme.', 'give')); ?></td>
878
+			<td><?php echo esc_html($active_theme->Name); ?></td>
880 879
 		</tr>
881 880
 		<tr>
882
-			<td data-export-label="Version"><?php _e( 'Version', 'give' ); ?>:</td>
883
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The installed version of the current active theme.', 'give' ) ); ?></td>
884
-			<td><?php echo esc_html( $active_theme->Version ); ?></td>
881
+			<td data-export-label="Version"><?php _e('Version', 'give'); ?>:</td>
882
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The installed version of the current active theme.', 'give')); ?></td>
883
+			<td><?php echo esc_html($active_theme->Version); ?></td>
885 884
 		</tr>
886 885
 		<tr>
887
-			<td data-export-label="Author URL"><?php _e( 'Author URL', 'give' ); ?>:</td>
888
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'The theme developer\'s URL.', 'give' ) ); ?></td>
886
+			<td data-export-label="Author URL"><?php _e('Author URL', 'give'); ?>:</td>
887
+			<td class="help"><?php echo Give()->tooltips->render_help(__('The theme developer\'s URL.', 'give')); ?></td>
889 888
 			<td><?php echo $active_theme->{'Author URI'}; ?></td>
890 889
 		</tr>
891 890
 		<tr>
892
-			<td data-export-label="Child Theme"><?php _e( 'Child Theme', 'give' ); ?>:</td>
893
-			<td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether the current theme is a child theme.', 'give' ) ); ?></td>
891
+			<td data-export-label="Child Theme"><?php _e('Child Theme', 'give'); ?>:</td>
892
+			<td class="help"><?php echo Give()->tooltips->render_help(__('Whether the current theme is a child theme.', 'give')); ?></td>
894 893
 			<td><?php
895
-				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' );
894
+				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');
896 895
 				?></td>
897 896
 		</tr>
898 897
 		<?php
899
-		if( is_child_theme() ) {
900
-			$parent_theme = wp_get_theme( $active_theme->Template );
898
+		if (is_child_theme()) {
899
+			$parent_theme = wp_get_theme($active_theme->Template);
901 900
 		?>
902 901
 			<tr>
903
-				<td data-export-label="Parent Theme Name"><?php _e( 'Parent Theme Name', 'give' ); ?>:</td>
904
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The name of the parent theme.', 'give' ) ); ?></td>
905
-				<td><?php echo esc_html( $parent_theme->Name ); ?></td>
902
+				<td data-export-label="Parent Theme Name"><?php _e('Parent Theme Name', 'give'); ?>:</td>
903
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The name of the parent theme.', 'give')); ?></td>
904
+				<td><?php echo esc_html($parent_theme->Name); ?></td>
906 905
 			</tr>
907 906
 			<tr>
908
-				<td data-export-label="Parent Theme Version"><?php _e( 'Parent Theme Version', 'give' ); ?>:</td>
909
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The installed version of the parent theme.', 'give' ) ); ?></td>
910
-				<td><?php echo esc_html( $parent_theme->Version ); ?></td>
907
+				<td data-export-label="Parent Theme Version"><?php _e('Parent Theme Version', 'give'); ?>:</td>
908
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The installed version of the parent theme.', 'give')); ?></td>
909
+				<td><?php echo esc_html($parent_theme->Version); ?></td>
911 910
 			</tr>
912 911
 			<tr>
913
-				<td data-export-label="Parent Theme Author URL"><?php _e( 'Parent Theme Author URL', 'give' ); ?>:</td>
914
-				<td class="help"><?php echo Give()->tooltips->render_help( __( 'The parent theme developers URL.', 'give' ) ); ?></td>
912
+				<td data-export-label="Parent Theme Author URL"><?php _e('Parent Theme Author URL', 'give'); ?>:</td>
913
+				<td class="help"><?php echo Give()->tooltips->render_help(__('The parent theme developers URL.', 'give')); ?></td>
915 914
 				<td><?php echo $parent_theme->{'Author URI'}; ?></td>
916 915
 			</tr>
917 916
 		<?php } ?>
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-addon.php 1 patch
Spacing   +11 added lines, -11 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_Addon' ) ) :
16
+if ( ! class_exists('Give_Settings_Addon')) :
17 17
 
18 18
 	/**
19 19
 	 * Give_Settings_Addon.
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		 */
27 27
 		public function __construct() {
28 28
 			$this->id    = 'addons';
29
-			$this->label = esc_html__( 'Add-ons', 'give' );
29
+			$this->label = esc_html__('Add-ons', 'give');
30 30
 
31 31
 			parent::__construct();
32 32
 		}
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
 		 * @param  $setting_tab
39 39
 		 * @return string
40 40
 		 */
41
-		function set_default_setting_tab( $setting_tab ) {
41
+		function set_default_setting_tab($setting_tab) {
42 42
 			$default_tab = '';
43 43
 
44 44
 			// Set default tab to first setting tab.
45
-			if( $sections = array_keys( $this->get_sections() ) ) {
46
-				$default_tab = current( $sections );
45
+			if ($sections = array_keys($this->get_sections())) {
46
+				$default_tab = current($sections);
47 47
 			}
48 48
 			return $default_tab;
49 49
 		}
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
 		 * @param  array $pages Lst of pages.
56 56
 		 * @return array
57 57
 		 */
58
-		public function add_settings_page( $pages ) {
58
+		public function add_settings_page($pages) {
59 59
 			$setting = $this->get_settings();
60 60
 			// Bailout: Do not add addons setting tab if it does not contain any setting fields.
61
-			if( ! empty( $setting ) ) {
62
-				$pages[ $this->id ] = $this->label;
61
+			if ( ! empty($setting)) {
62
+				$pages[$this->id] = $this->label;
63 63
 			}
64 64
 
65 65
 			return $pages;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 			 * Filter the addons settings.
79 79
 			 * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8
80 80
 			 */
81
-			$settings = apply_filters( 'give_settings_addons', $settings );
81
+			$settings = apply_filters('give_settings_addons', $settings);
82 82
 
83 83
 			/**
84 84
 			 * Filter the settings.
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			 * @since  1.8
87 87
 			 * @param  array $settings
88 88
 			 */
89
-			$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
89
+			$settings = apply_filters('give_get_settings_'.$this->id, $settings);
90 90
 
91 91
 			// Output.
92 92
 			return $settings;
Please login to merge, or discard this patch.
includes/admin/forms/metabox.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -22,19 +22,19 @@  discard block
 block discarded – undo
22 22
  */
23 23
 function give_add_shortcode_to_publish_metabox() {
24 24
 
25
-	if ( 'give_forms' !== get_post_type() ) {
25
+	if ('give_forms' !== get_post_type()) {
26 26
 		return false;
27 27
 	}
28 28
 	global $post;
29 29
 
30 30
 	//Only enqueue scripts for CPT on post type screen
31
-	if ( 'give_forms' === $post->post_type ) {
31
+	if ('give_forms' === $post->post_type) {
32 32
 		//Shortcode column with select all input
33
-		$shortcode = htmlentities( '[give_form id="' . $post->ID . '"]' );
34
-		echo '<div class="shortcode-wrap box-sizing"><label for="shortcode-input">' . esc_html__( 'Give Form Shortcode:', 'give' ) . '</label><input onClick="this.setSelectionRange(0, this.value.length)" type="text" name="shortcode-input" id="shortcode-input" class="shortcode-input" readonly value="' . $shortcode . '"></div>';
33
+		$shortcode = htmlentities('[give_form id="'.$post->ID.'"]');
34
+		echo '<div class="shortcode-wrap box-sizing"><label for="shortcode-input">'.esc_html__('Give Form Shortcode:', 'give').'</label><input onClick="this.setSelectionRange(0, this.value.length)" type="text" name="shortcode-input" id="shortcode-input" class="shortcode-input" readonly value="'.$shortcode.'"></div>';
35 35
 
36 36
 	}
37 37
 
38 38
 }
39 39
 
40
-add_action( 'post_submitbox_misc_actions', 'give_add_shortcode_to_publish_metabox' );
40
+add_action('post_submitbox_misc_actions', 'give_add_shortcode_to_publish_metabox');
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-profile-editor.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
 	public function __construct() {
23 23
 
24
-		$this->shortcode['label'] = esc_html__( 'Profile Editor', 'give' );
24
+		$this->shortcode['label'] = esc_html__('Profile Editor', 'give');
25 25
 
26
-		parent::__construct( 'give_profile_editor' );
26
+		parent::__construct('give_profile_editor');
27 27
 	}
28 28
 }
29 29
 
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-register.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
 	public function __construct() {
23 23
 
24
-		$this->shortcode['title'] = esc_html__( 'Register', 'give' );
25
-		$this->shortcode['label'] = esc_html__( 'Register', 'give' );
24
+		$this->shortcode['title'] = esc_html__('Register', 'give');
25
+		$this->shortcode['label'] = esc_html__('Register', 'give');
26 26
 
27
-		parent::__construct( 'give_register' );
27
+		parent::__construct('give_register');
28 28
 	}
29 29
 
30 30
 	/**
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 		return array(
38 38
 			array(
39 39
 				'type' => 'container',
40
-				'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Redirect URL (optional):', 'give' ) ),
40
+				'html' => sprintf('<p class="no-margin">%s</p>', esc_html__('Redirect URL (optional):', 'give')),
41 41
 			),
42 42
 			array(
43 43
 				'type'     => 'textbox',
44 44
 				'name'     => 'redirect',
45 45
 				'minWidth' => 320,
46
-				'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after registering.', 'give' ),
46
+				'tooltip'  => esc_attr__('Enter an URL here to redirect to after registering.', 'give'),
47 47
 			),
48 48
 		);
49 49
 	}
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-donation-history.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
 	public function __construct() {
23 23
 
24
-		$this->shortcode['label'] = esc_html__( 'Donation History', 'give' );
24
+		$this->shortcode['label'] = esc_html__('Donation History', 'give');
25 25
 
26
-		parent::__construct( 'donation_history' );
26
+		parent::__construct('donation_history');
27 27
 	}
28 28
 }
29 29
 
Please login to merge, or discard this patch.