Completed
Pull Request — master (#1832)
by Devin
04:50
created
includes/deprecated/deprecated-functions.php 1 patch
Spacing   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -27,15 +27,15 @@  discard block
 block discarded – undo
27 27
  *
28 28
  * @return bool $ret True if guest checkout is enabled, false otherwise
29 29
  */
30
-function give_no_guest_checkout( $form_id ) {
30
+function give_no_guest_checkout($form_id) {
31 31
 
32 32
 	$backtrace = debug_backtrace();
33 33
 
34
-	_give_deprecated_function( __FUNCTION__, '1.4.1', null, $backtrace );
34
+	_give_deprecated_function(__FUNCTION__, '1.4.1', null, $backtrace);
35 35
 
36
-	$ret = give_get_meta( $form_id, '_give_logged_in_only', true );
36
+	$ret = give_get_meta($form_id, '_give_logged_in_only', true);
37 37
 
38
-	return (bool) apply_filters( 'give_no_guest_checkout', give_is_setting_enabled( $ret ) );
38
+	return (bool) apply_filters('give_no_guest_checkout', give_is_setting_enabled($ret));
39 39
 }
40 40
 
41 41
 
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
 
51 51
 	$backtrace = debug_backtrace();
52 52
 
53
-	_give_deprecated_function( __FUNCTION__, '1.8', null, $backtrace );
53
+	_give_deprecated_function(__FUNCTION__, '1.8', null, $backtrace);
54 54
 
55 55
 	$views = array(
56
-		'sales'          => __( 'Donations', 'give' ),
57
-		'gateway_errors' => __( 'Payment Errors', 'give' ),
58
-		'api_requests'   => __( 'API Requests', 'give' ),
56
+		'sales'          => __('Donations', 'give'),
57
+		'gateway_errors' => __('Payment Errors', 'give'),
58
+		'api_requests'   => __('API Requests', 'give'),
59 59
 	);
60 60
 
61
-	$views = apply_filters( 'give_log_views', $views );
61
+	$views = apply_filters('give_log_views', $views);
62 62
 
63 63
 	return $views;
64 64
 }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 	$backtrace = debug_backtrace();
75 75
 
76
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_agree_to_terms', $backtrace );
76
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_agree_to_terms', $backtrace);
77 77
 
78 78
 	// Call new renamed function.
79 79
 	give_donation_form_validate_agree_to_terms();
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
 	$backtrace = debug_backtrace();
92 92
 
93
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_logged_in_user', $backtrace );
93
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_logged_in_user', $backtrace);
94 94
 
95 95
 	// Call new renamed function.
96 96
 	give_donation_form_validate_logged_in_user();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
 	$backtrace = debug_backtrace();
109 109
 
110
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_gateway', $backtrace );
110
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_gateway', $backtrace);
111 111
 
112 112
 	// Call new renamed function.
113 113
 	give_donation_form_validate_gateway();
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
 	$backtrace = debug_backtrace();
126 126
 
127
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_fields', $backtrace );
127
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_fields', $backtrace);
128 128
 
129 129
 	// Call new renamed function.
130 130
 	give_donation_form_validate_fields();
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
 	$backtrace = debug_backtrace();
143 143
 
144
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_cc', $backtrace );
144
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_cc', $backtrace);
145 145
 
146 146
 	// Call new renamed function.
147 147
 	give_donation_form_validate_cc();
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
 	$backtrace = debug_backtrace();
160 160
 
161
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_get_donation_cc_info', $backtrace );
161
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_get_donation_cc_info', $backtrace);
162 162
 
163 163
 	// Call new renamed function.
164 164
 	give_get_donation_cc_info();
@@ -175,14 +175,14 @@  discard block
 block discarded – undo
175 175
  * @param int    $zip
176 176
  * @param string $country_code
177 177
  */
178
-function give_purchase_form_validate_cc_zip( $zip = 0, $country_code = '' ) {
178
+function give_purchase_form_validate_cc_zip($zip = 0, $country_code = '') {
179 179
 
180 180
 	$backtrace = debug_backtrace();
181 181
 
182
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_cc_zip', $backtrace );
182
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_cc_zip', $backtrace);
183 183
 
184 184
 	// Call new renamed function.
185
-	give_donation_form_validate_cc_zip( $zip, $country_code );
185
+	give_donation_form_validate_cc_zip($zip, $country_code);
186 186
 
187 187
 }
188 188
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
 	$backtrace = debug_backtrace();
198 198
 
199
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_user_login', $backtrace );
199
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_user_login', $backtrace);
200 200
 
201 201
 	// Call new renamed function.
202 202
 	give_donation_form_validate_user_login();
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
 	$backtrace = debug_backtrace();
215 215
 
216
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_guest_user', $backtrace );
216
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_guest_user', $backtrace);
217 217
 
218 218
 	// Call new renamed function.
219 219
 	give_donation_form_validate_guest_user();
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
 	$backtrace = debug_backtrace();
232 232
 
233
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_new_user', $backtrace );
233
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_donation_form_validate_new_user', $backtrace);
234 234
 
235 235
 	// Call new renamed function.
236 236
 	give_donation_form_validate_new_user();
@@ -246,14 +246,14 @@  discard block
 block discarded – undo
246 246
  *
247 247
  * @param array $valid_data
248 248
  */
249
-function give_get_purchase_form_user( $valid_data = array() ) {
249
+function give_get_purchase_form_user($valid_data = array()) {
250 250
 
251 251
 	$backtrace = debug_backtrace();
252 252
 
253
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_get_donation_form_user', $backtrace );
253
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_get_donation_form_user', $backtrace);
254 254
 
255 255
 	// Call new renamed function.
256
-	give_get_donation_form_user( $valid_data );
256
+	give_get_donation_form_user($valid_data);
257 257
 
258 258
 }
259 259
 
@@ -269,12 +269,12 @@  discard block
 block discarded – undo
269 269
  *
270 270
  * @return string
271 271
  */
272
-function give_checkout_button_purchase( $form_id ) {
272
+function give_checkout_button_purchase($form_id) {
273 273
 	$backtrace = debug_backtrace();
274 274
 
275
-	_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_get_donation_form_submit_button', $backtrace );
275
+	_give_deprecated_function(__FUNCTION__, '1.8.8', 'give_get_donation_form_submit_button', $backtrace);
276 276
 
277
-	return give_get_donation_form_submit_button( $form_id );
277
+	return give_get_donation_form_submit_button($form_id);
278 278
 
279 279
 }
280 280
 
@@ -287,13 +287,13 @@  discard block
 block discarded – undo
287 287
  *
288 288
  * @return int $customer_id Customer ID.
289 289
  */
290
-function give_get_payment_customer_id( $payment_id ) {
290
+function give_get_payment_customer_id($payment_id) {
291 291
 
292 292
 	$backtrace = debug_backtrace();
293 293
 
294
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_get_payment_donor_id', $backtrace );
294
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_get_payment_donor_id', $backtrace);
295 295
 
296
-	return give_get_payment_donor_id( $payment_id );
296
+	return give_get_payment_donor_id($payment_id);
297 297
 }
298 298
 
299 299
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
 	$backtrace = debug_backtrace();
310 310
 
311
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_get_total_donations', $backtrace );
311
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_get_total_donations', $backtrace);
312 312
 
313 313
 	return give_get_total_donations();
314 314
 }
@@ -326,13 +326,13 @@  discard block
 block discarded – undo
326 326
  *
327 327
  * @return      int The total number of donations
328 328
  */
329
-function give_count_purchases_of_customer( $user = null ) {
329
+function give_count_purchases_of_customer($user = null) {
330 330
 
331 331
 	$backtrace = debug_backtrace();
332 332
 
333
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_count_donations_of_donor', $backtrace );
333
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_count_donations_of_donor', $backtrace);
334 334
 
335
-	return give_count_donations_of_donor( $user );
335
+	return give_count_donations_of_donor($user);
336 336
 }
337 337
 
338 338
 
@@ -348,13 +348,13 @@  discard block
 block discarded – undo
348 348
  *
349 349
  * @return      array
350 350
  */
351
-function give_get_purchase_stats_by_user( $user = '' ) {
351
+function give_get_purchase_stats_by_user($user = '') {
352 352
 
353 353
 	$backtrace = debug_backtrace();
354 354
 
355
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_get_donation_stats_by_user', $backtrace );
355
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_get_donation_stats_by_user', $backtrace);
356 356
 
357
-	return give_get_donation_stats_by_user( $user );
357
+	return give_get_donation_stats_by_user($user);
358 358
 
359 359
 }
360 360
 
@@ -372,13 +372,13 @@  discard block
 block discarded – undo
372 372
  *
373 373
  * @return bool|object List of all user donations
374 374
  */
375
-function give_get_users_purchases( $user = 0, $number = 20, $pagination = false, $status = 'complete' ) {
375
+function give_get_users_purchases($user = 0, $number = 20, $pagination = false, $status = 'complete') {
376 376
 
377 377
 	$backtrace = debug_backtrace();
378 378
 
379
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_get_users_donations', $backtrace );
379
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_get_users_donations', $backtrace);
380 380
 
381
-	return give_get_users_donations( $user, $number, $pagination, $status );
381
+	return give_get_users_donations($user, $number, $pagination, $status);
382 382
 
383 383
 }
384 384
 
@@ -395,13 +395,13 @@  discard block
 block discarded – undo
395 395
  *
396 396
  * @return      bool True if has donated, false other wise.
397 397
  */
398
-function give_has_purchases( $user_id = null ) {
398
+function give_has_purchases($user_id = null) {
399 399
 
400 400
 	$backtrace = debug_backtrace();
401 401
 
402
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_has_donations', $backtrace );
402
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_has_donations', $backtrace);
403 403
 
404
-	return give_has_donations( $user_id );
404
+	return give_has_donations($user_id);
405 405
 }
406 406
 
407 407
 /**
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 function give_count_total_customers() {
416 416
 	$backtrace = debug_backtrace();
417 417
 
418
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_count_total_donors', $backtrace );
418
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_count_total_donors', $backtrace);
419 419
 
420 420
 	return give_count_total_donors();
421 421
 }
@@ -430,13 +430,13 @@  discard block
 block discarded – undo
430 430
  *
431 431
  * @return      float The total amount the user has spent
432 432
  */
433
-function give_purchase_total_of_user( $user = null ) {
433
+function give_purchase_total_of_user($user = null) {
434 434
 
435 435
 	$backtrace = debug_backtrace();
436 436
 
437
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_donation_total_of_user', $backtrace );
437
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_donation_total_of_user', $backtrace);
438 438
 
439
-	return give_donation_total_of_user( $user );
439
+	return give_donation_total_of_user($user);
440 440
 }
441 441
 
442 442
 /**
@@ -450,13 +450,13 @@  discard block
 block discarded – undo
450 450
  *
451 451
  * @return void
452 452
  */
453
-function give_delete_purchase( $payment_id = 0, $update_customer = true ) {
453
+function give_delete_purchase($payment_id = 0, $update_customer = true) {
454 454
 
455 455
 	$backtrace = debug_backtrace();
456 456
 
457
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_delete_donation', $backtrace );
457
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_delete_donation', $backtrace);
458 458
 
459
-	give_delete_donation( $payment_id, $update_customer );
459
+	give_delete_donation($payment_id, $update_customer);
460 460
 
461 461
 }
462 462
 
@@ -474,13 +474,13 @@  discard block
 block discarded – undo
474 474
  *
475 475
  * @return void
476 476
  */
477
-function give_undo_purchase( $form_id = false, $payment_id ) {
477
+function give_undo_purchase($form_id = false, $payment_id) {
478 478
 
479 479
 	$backtrace = debug_backtrace();
480 480
 
481
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_undo_donation', $backtrace );
481
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_undo_donation', $backtrace);
482 482
 
483
-	give_undo_donation( $payment_id );
483
+	give_undo_donation($payment_id);
484 484
 }
485 485
 
486 486
 
@@ -493,12 +493,12 @@  discard block
 block discarded – undo
493 493
  *
494 494
  * @return void
495 495
  */
496
-function give_trigger_purchase_delete( $data ) {
496
+function give_trigger_purchase_delete($data) {
497 497
 	$backtrace = debug_backtrace();
498 498
 
499
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_trigger_donation_delete', $backtrace );
499
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_trigger_donation_delete', $backtrace);
500 500
 
501
-	give_trigger_donation_delete( $data );
501
+	give_trigger_donation_delete($data);
502 502
 }
503 503
 
504 504
 
@@ -512,12 +512,12 @@  discard block
 block discarded – undo
512 512
  *
513 513
  * @return bool|int
514 514
  */
515
-function give_increase_purchase_count( $form_id = 0, $quantity = 1 ) {
515
+function give_increase_purchase_count($form_id = 0, $quantity = 1) {
516 516
 	$backtrace = debug_backtrace();
517 517
 
518
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_increase_donation_count', $backtrace );
518
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_increase_donation_count', $backtrace);
519 519
 
520
-	give_increase_donation_count( $form_id, $quantity );
520
+	give_increase_donation_count($form_id, $quantity);
521 521
 }
522 522
 
523 523
 
@@ -536,12 +536,12 @@  discard block
 block discarded – undo
536 536
  *
537 537
  * @return void
538 538
  */
539
-function give_record_sale_in_log( $give_form_id = 0, $payment_id, $price_id = false, $sale_date = null ) {
539
+function give_record_sale_in_log($give_form_id = 0, $payment_id, $price_id = false, $sale_date = null) {
540 540
 	$backtrace = debug_backtrace();
541 541
 
542
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'give_record_donation_in_log', $backtrace );
542
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'give_record_donation_in_log', $backtrace);
543 543
 
544
-	give_record_donation_in_log( $give_form_id, $payment_id, $price_id, $sale_date );
544
+	give_record_donation_in_log($give_form_id, $payment_id, $price_id, $sale_date);
545 545
 }
546 546
 
547 547
 /**
@@ -558,12 +558,12 @@  discard block
 block discarded – undo
558 558
  *
559 559
  * @return void
560 560
  */
561
-function give_print_errors( $form_id ) {
561
+function give_print_errors($form_id) {
562 562
 	$backtrace = debug_backtrace();
563 563
 
564
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'Give_Notice::print_frontend_errors', $backtrace );
564
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'Give_Notice::print_frontend_errors', $backtrace);
565 565
 
566
-	do_action( 'give_frontend_notices', $form_id );
566
+	do_action('give_frontend_notices', $form_id);
567 567
 }
568 568
 
569 569
 /**
@@ -579,10 +579,10 @@  discard block
 block discarded – undo
579 579
  *
580 580
  * @return   string  $error
581 581
  */
582
-function give_output_error( $message, $echo = true, $error_id = 'warning' ) {
582
+function give_output_error($message, $echo = true, $error_id = 'warning') {
583 583
 	$backtrace = debug_backtrace();
584 584
 
585
-	_give_deprecated_function( __FUNCTION__, '1.8.9', 'Give_Notice::print_frontend_notice', $backtrace );
585
+	_give_deprecated_function(__FUNCTION__, '1.8.9', 'Give_Notice::print_frontend_notice', $backtrace);
586 586
 
587
-	Give()->notices->print_frontend_notice( $message, $echo, $error_id );
587
+	Give()->notices->print_frontend_notice($message, $echo, $error_id);
588 588
 }
Please login to merge, or discard this patch.
includes/deprecated/deprecated-filters.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 $give_map_deprecated_filters = give_deprecated_filters();
9 9
 
10
-foreach ( $give_map_deprecated_filters as $new => $old ) {
11
-	add_filter( $new, 'give_deprecated_filter_mapping', 10, 4 );
10
+foreach ($give_map_deprecated_filters as $new => $old) {
11
+	add_filter($new, 'give_deprecated_filter_mapping', 10, 4);
12 12
 }
13 13
 
14 14
 /**
@@ -65,17 +65,17 @@  discard block
 block discarded – undo
65 65
  *
66 66
  * @return mixed
67 67
  */
68
-function give_deprecated_filter_mapping( $data, $arg_1 = '', $arg_2 = '', $arg_3 = '' ) {
68
+function give_deprecated_filter_mapping($data, $arg_1 = '', $arg_2 = '', $arg_3 = '') {
69 69
 	$give_map_deprecated_filters = give_deprecated_filters();
70 70
 	$filter                      = current_filter();
71 71
 
72
-	if ( isset( $give_map_deprecated_filters[ $filter ] ) ) {
73
-		if ( has_filter( $give_map_deprecated_filters[ $filter ] ) ) {
74
-			$data = apply_filters( $give_map_deprecated_filters[ $filter ], $data, $arg_1, $arg_2, $arg_3 );
72
+	if (isset($give_map_deprecated_filters[$filter])) {
73
+		if (has_filter($give_map_deprecated_filters[$filter])) {
74
+			$data = apply_filters($give_map_deprecated_filters[$filter], $data, $arg_1, $arg_2, $arg_3);
75 75
 
76
-			if ( ! defined( 'DOING_AJAX' ) ) {
77
-				_give_deprecated_function( sprintf( /* translators: %s: filter name */
78
-					__( 'The %s filter' ), $give_map_deprecated_filters[ $filter ] ), '1.7', $filter );
76
+			if ( ! defined('DOING_AJAX')) {
77
+				_give_deprecated_function(sprintf( /* translators: %s: filter name */
78
+					__('The %s filter'), $give_map_deprecated_filters[$filter] ), '1.7', $filter);
79 79
 			}
80 80
 		}
81 81
 	}
Please login to merge, or discard this patch.
includes/scripts.php 1 patch
Spacing   +161 added lines, -161 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -25,25 +25,25 @@  discard block
 block discarded – undo
25 25
  */
26 26
 function give_load_scripts() {
27 27
 
28
-	$js_dir         = GIVE_PLUGIN_URL . 'assets/js/frontend/';
29
-	$js_plugins     = GIVE_PLUGIN_URL . 'assets/js/plugins/';
30
-	$scripts_footer = ( give_is_setting_enabled( give_get_option( 'scripts_footer' ) ) ) ? true : false;
28
+	$js_dir         = GIVE_PLUGIN_URL.'assets/js/frontend/';
29
+	$js_plugins     = GIVE_PLUGIN_URL.'assets/js/plugins/';
30
+	$scripts_footer = (give_is_setting_enabled(give_get_option('scripts_footer'))) ? true : false;
31 31
 
32 32
 	// Use minified libraries if SCRIPT_DEBUG is turned off.
33
-	$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
33
+	$suffix = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min';
34 34
 
35 35
 	// Localize / PHP to AJAX vars.
36
-	$localize_give_vars = apply_filters( 'give_global_script_vars', array(
36
+	$localize_give_vars = apply_filters('give_global_script_vars', array(
37 37
 		'ajaxurl'             => give_get_ajax_url(),
38
-		'checkout_nonce'      => wp_create_nonce( 'give_checkout_nonce' ),
39
-		'currency_sign'       => give_currency_filter( '' ),
38
+		'checkout_nonce'      => wp_create_nonce('give_checkout_nonce'),
39
+		'currency_sign'       => give_currency_filter(''),
40 40
 		'currency_pos'        => give_get_currency_position(),
41 41
 		'thousands_separator' => give_get_price_thousand_separator(),
42 42
 		'decimal_separator'   => give_get_price_decimal_separator(),
43
-		'no_gateway'          => __( 'Please select a payment method.', 'give' ),
44
-		'bad_minimum'         => __( 'The minimum custom donation amount for this form is', 'give' ),
45
-		'general_loading'     => __( 'Loading...', 'give' ),
46
-		'purchase_loading'    => __( 'Please Wait...', 'give' ),
43
+		'no_gateway'          => __('Please select a payment method.', 'give'),
44
+		'bad_minimum'         => __('The minimum custom donation amount for this form is', 'give'),
45
+		'general_loading'     => __('Loading...', 'give'),
46
+		'purchase_loading'    => __('Please Wait...', 'give'),
47 47
 		'number_decimals'     => give_get_price_decimals(),
48 48
 		'give_version'        => GIVE_VERSION,
49 49
 		'magnific_options'    => apply_filters(
@@ -57,81 +57,81 @@  discard block
 block discarded – undo
57 57
 			'give_form_translation_js',
58 58
 			array(
59 59
 				// Field name               Validation message.
60
-				'payment-mode'           => __( 'Please select payment mode.', 'give' ),
61
-				'give_first'             => __( 'Please enter your first name.', 'give' ),
62
-				'give_email'             => __( 'Please enter a valid email address.', 'give' ),
63
-				'give_user_login'        => __( 'Invalid username. Only lowercase letters (a-z) and numbers are allowed.', 'give' ),
64
-				'give_user_pass'         => __( 'Enter a password.', 'give' ),
65
-				'give_user_pass_confirm' => __( 'Enter the password confirmation.', 'give' ),
66
-				'give_agree_to_terms'    => __( 'You must agree to the terms and conditions.', 'give' ),
60
+				'payment-mode'           => __('Please select payment mode.', 'give'),
61
+				'give_first'             => __('Please enter your first name.', 'give'),
62
+				'give_email'             => __('Please enter a valid email address.', 'give'),
63
+				'give_user_login'        => __('Invalid username. Only lowercase letters (a-z) and numbers are allowed.', 'give'),
64
+				'give_user_pass'         => __('Enter a password.', 'give'),
65
+				'give_user_pass_confirm' => __('Enter the password confirmation.', 'give'),
66
+				'give_agree_to_terms'    => __('You must agree to the terms and conditions.', 'give'),
67 67
 			)
68 68
 		),
69
-	) );
69
+	));
70 70
 
71
-	$localize_give_ajax = apply_filters( 'give_global_ajax_vars', array(
71
+	$localize_give_ajax = apply_filters('give_global_ajax_vars', array(
72 72
 		'ajaxurl'         => give_get_ajax_url(),
73
-		'loading'         => __( 'Loading', 'give' ),
73
+		'loading'         => __('Loading', 'give'),
74 74
 		// General loading message.
75
-		'select_option'   => __( 'Please select an option', 'give' ),
75
+		'select_option'   => __('Please select an option', 'give'),
76 76
 		// Variable pricing error with multi-donation option enabled.
77
-		'default_gateway' => give_get_default_gateway( null ),
78
-		'permalinks'      => get_option( 'permalink_structure' ) ? '1' : '0',
77
+		'default_gateway' => give_get_default_gateway(null),
78
+		'permalinks'      => get_option('permalink_structure') ? '1' : '0',
79 79
 		'number_decimals' => give_get_price_decimals(),
80
-	) );
80
+	));
81 81
 
82 82
 	// DEBUG is On.
83
-	if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
83
+	if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
84 84
 
85
-		if ( give_is_cc_verify_enabled() ) {
86
-			wp_register_script( 'give-cc-validator', $js_plugins . 'jquery.payment' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
87
-			wp_enqueue_script( 'give-cc-validator' );
85
+		if (give_is_cc_verify_enabled()) {
86
+			wp_register_script('give-cc-validator', $js_plugins.'jquery.payment'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
87
+			wp_enqueue_script('give-cc-validator');
88 88
 		}
89 89
 
90
-		wp_register_script( 'give-float-labels', $js_plugins . 'float-labels' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
91
-		wp_enqueue_script( 'give-float-labels' );
90
+		wp_register_script('give-float-labels', $js_plugins.'float-labels'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
91
+		wp_enqueue_script('give-float-labels');
92 92
 
93
-		wp_register_script( 'give-blockui', $js_plugins . 'jquery.blockUI' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
94
-		wp_enqueue_script( 'give-blockui' );
93
+		wp_register_script('give-blockui', $js_plugins.'jquery.blockUI'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
94
+		wp_enqueue_script('give-blockui');
95 95
 
96
-		wp_register_script( 'give-qtip', $js_plugins . 'jquery.qtip' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
97
-		wp_enqueue_script( 'give-qtip' );
96
+		wp_register_script('give-qtip', $js_plugins.'jquery.qtip'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
97
+		wp_enqueue_script('give-qtip');
98 98
 
99
-		wp_register_script( 'give-accounting', $js_plugins . 'accounting' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
100
-		wp_enqueue_script( 'give-accounting' );
99
+		wp_register_script('give-accounting', $js_plugins.'accounting'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
100
+		wp_enqueue_script('give-accounting');
101 101
 
102
-		wp_register_script( 'give-magnific', $js_plugins . 'jquery.magnific-popup' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
103
-		wp_enqueue_script( 'give-magnific' );
102
+		wp_register_script('give-magnific', $js_plugins.'jquery.magnific-popup'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
103
+		wp_enqueue_script('give-magnific');
104 104
 
105
-		wp_register_script( 'give-checkout-global', $js_dir . 'give-checkout-global' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
106
-		wp_enqueue_script( 'give-checkout-global' );
105
+		wp_register_script('give-checkout-global', $js_dir.'give-checkout-global'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
106
+		wp_enqueue_script('give-checkout-global');
107 107
 
108 108
 		// General scripts.
109
-		wp_register_script( 'give-scripts', $js_dir . 'give' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
110
-		wp_enqueue_script( 'give-scripts' );
109
+		wp_register_script('give-scripts', $js_dir.'give'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
110
+		wp_enqueue_script('give-scripts');
111 111
 
112 112
 		// Load AJAX scripts, if enabled.
113
-		wp_register_script( 'give-ajax', $js_dir . 'give-ajax' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
114
-		wp_enqueue_script( 'give-ajax' );
113
+		wp_register_script('give-ajax', $js_dir.'give-ajax'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer);
114
+		wp_enqueue_script('give-ajax');
115 115
 
116 116
 		// Localize / Pass AJAX vars from PHP,
117
-		wp_localize_script( 'give-checkout-global', 'give_global_vars', $localize_give_vars );
118
-		wp_localize_script( 'give-ajax', 'give_scripts', $localize_give_ajax );
117
+		wp_localize_script('give-checkout-global', 'give_global_vars', $localize_give_vars);
118
+		wp_localize_script('give-ajax', 'give_scripts', $localize_give_ajax);
119 119
 
120 120
 	} else {
121 121
 
122 122
 		// DEBUG is OFF (one JS file to rule them all!).
123
-		wp_register_script( 'give', $js_dir . 'give.all.min.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer );
124
-		wp_enqueue_script( 'give' );
123
+		wp_register_script('give', $js_dir.'give.all.min.js', array('jquery'), GIVE_VERSION, $scripts_footer);
124
+		wp_enqueue_script('give');
125 125
 
126 126
 		// Localize / Pass AJAX vars from PHP.
127
-		wp_localize_script( 'give', 'give_global_vars', $localize_give_vars );
128
-		wp_localize_script( 'give', 'give_scripts', $localize_give_ajax );
127
+		wp_localize_script('give', 'give_global_vars', $localize_give_vars);
128
+		wp_localize_script('give', 'give_scripts', $localize_give_ajax);
129 129
 
130 130
 	}
131 131
 
132 132
 }
133 133
 
134
-add_action( 'wp_enqueue_scripts', 'give_load_scripts' );
134
+add_action('wp_enqueue_scripts', 'give_load_scripts');
135 135
 
136 136
 /**
137 137
  * Register styles.
@@ -144,16 +144,16 @@  discard block
 block discarded – undo
144 144
  */
145 145
 function give_register_styles() {
146 146
 
147
-	if ( ! give_is_setting_enabled( give_get_option( 'css' ) ) ) {
147
+	if ( ! give_is_setting_enabled(give_get_option('css'))) {
148 148
 		return;
149 149
 	}
150 150
 
151
-	wp_register_style( 'give-styles', give_get_stylesheet_uri(), array(), GIVE_VERSION, 'all' );
152
-	wp_enqueue_style( 'give-styles' );
151
+	wp_register_style('give-styles', give_get_stylesheet_uri(), array(), GIVE_VERSION, 'all');
152
+	wp_enqueue_style('give-styles');
153 153
 
154 154
 }
155 155
 
156
-add_action( 'wp_enqueue_scripts', 'give_register_styles' );
156
+add_action('wp_enqueue_scripts', 'give_register_styles');
157 157
 
158 158
 
159 159
 /**
@@ -166,19 +166,19 @@  discard block
 block discarded – undo
166 166
 function give_get_stylesheet_uri() {
167 167
 
168 168
 	// Use minified libraries if SCRIPT_DEBUG is turned off.
169
-	$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
169
+	$suffix = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min';
170 170
 
171 171
 	// LTR or RTL files.
172
-	$direction = ( is_rtl() ) ? '-rtl' : '';
172
+	$direction = (is_rtl()) ? '-rtl' : '';
173 173
 
174
-	$file          = 'give' . $direction . $suffix . '.css';
174
+	$file          = 'give'.$direction.$suffix.'.css';
175 175
 	$templates_dir = give_get_theme_template_dir_name();
176 176
 
177
-	$child_theme_style_sheet    = trailingslashit( get_stylesheet_directory() ) . $templates_dir . $file;
178
-	$child_theme_style_sheet_2  = trailingslashit( get_stylesheet_directory() ) . $templates_dir . 'give' . $direction . '.css';
179
-	$parent_theme_style_sheet   = trailingslashit( get_template_directory() ) . $templates_dir . $file;
180
-	$parent_theme_style_sheet_2 = trailingslashit( get_template_directory() ) . $templates_dir . 'give' . $direction . '.css';
181
-	$give_plugin_style_sheet    = trailingslashit( give_get_templates_dir() ) . $file;
177
+	$child_theme_style_sheet    = trailingslashit(get_stylesheet_directory()).$templates_dir.$file;
178
+	$child_theme_style_sheet_2  = trailingslashit(get_stylesheet_directory()).$templates_dir.'give'.$direction.'.css';
179
+	$parent_theme_style_sheet   = trailingslashit(get_template_directory()).$templates_dir.$file;
180
+	$parent_theme_style_sheet_2 = trailingslashit(get_template_directory()).$templates_dir.'give'.$direction.'.css';
181
+	$give_plugin_style_sheet    = trailingslashit(give_get_templates_dir()).$file;
182 182
 
183 183
 	$uri = false;
184 184
 
@@ -188,23 +188,23 @@  discard block
 block discarded – undo
188 188
 	 * followed by non minified version, even if SCRIPT_DEBUG is not enabled.
189 189
 	 * This allows users to copy just give.css to their theme.
190 190
 	 */
191
-	if ( file_exists( $child_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $child_theme_style_sheet_2 ) ) ) ) {
192
-		if ( ! empty( $nonmin ) ) {
193
-			$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . 'give' . $direction . '.css';
191
+	if (file_exists($child_theme_style_sheet) || ( ! empty($suffix) && ($nonmin = file_exists($child_theme_style_sheet_2)))) {
192
+		if ( ! empty($nonmin)) {
193
+			$uri = trailingslashit(get_stylesheet_directory_uri()).$templates_dir.'give'.$direction.'.css';
194 194
 		} else {
195
-			$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file;
195
+			$uri = trailingslashit(get_stylesheet_directory_uri()).$templates_dir.$file;
196 196
 		}
197
-	} elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) {
198
-		if ( ! empty( $nonmin ) ) {
199
-			$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $direction . '.css';
197
+	} elseif (file_exists($parent_theme_style_sheet) || ( ! empty($suffix) && ($nonmin = file_exists($parent_theme_style_sheet_2)))) {
198
+		if ( ! empty($nonmin)) {
199
+			$uri = trailingslashit(get_template_directory_uri()).$templates_dir.'give'.$direction.'.css';
200 200
 		} else {
201
-			$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . $file;
201
+			$uri = trailingslashit(get_template_directory_uri()).$templates_dir.$file;
202 202
 		}
203
-	} elseif ( file_exists( $give_plugin_style_sheet ) || file_exists( $give_plugin_style_sheet ) ) {
204
-		$uri = trailingslashit( give_get_templates_url() ) . $file;
203
+	} elseif (file_exists($give_plugin_style_sheet) || file_exists($give_plugin_style_sheet)) {
204
+		$uri = trailingslashit(give_get_templates_url()).$file;
205 205
 	}
206 206
 
207
-	return apply_filters( 'give_get_stylesheet_uri', $uri );
207
+	return apply_filters('give_get_stylesheet_uri', $uri);
208 208
 
209 209
 }
210 210
 
@@ -221,76 +221,76 @@  discard block
 block discarded – undo
221 221
  *
222 222
  * @return void
223 223
  */
224
-function give_load_admin_scripts( $hook ) {
224
+function give_load_admin_scripts($hook) {
225 225
 
226 226
 	global $post, $post_type;
227 227
 
228 228
 	$give_options = give_get_settings();
229 229
 
230 230
 	// Directories of assets.
231
-	$js_dir     = GIVE_PLUGIN_URL . 'assets/js/admin/';
232
-	$js_plugins = GIVE_PLUGIN_URL . 'assets/js/plugins/';
233
-	$css_dir    = GIVE_PLUGIN_URL . 'assets/css/';
231
+	$js_dir     = GIVE_PLUGIN_URL.'assets/js/admin/';
232
+	$js_plugins = GIVE_PLUGIN_URL.'assets/js/plugins/';
233
+	$css_dir    = GIVE_PLUGIN_URL.'assets/css/';
234 234
 
235 235
 	// Use minified libraries if SCRIPT_DEBUG is turned off.
236
-	$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
236
+	$suffix = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min';
237 237
 
238 238
 	// LTR or RTL files.
239
-	$direction = ( is_rtl() ) ? '-rtl' : '';
239
+	$direction = (is_rtl()) ? '-rtl' : '';
240 240
 
241 241
 	// Global Admin.
242
-	wp_register_style( 'give-admin-bar-notification', $css_dir . 'adminbar-style.css' );
243
-	wp_enqueue_style( 'give-admin-bar-notification' );
242
+	wp_register_style('give-admin-bar-notification', $css_dir.'adminbar-style.css');
243
+	wp_enqueue_style('give-admin-bar-notification');
244 244
 
245 245
 	// Give Admin Only.
246
-	if ( ! apply_filters( 'give_load_admin_scripts', give_is_admin_page(), $hook ) ) {
246
+	if ( ! apply_filters('give_load_admin_scripts', give_is_admin_page(), $hook)) {
247 247
 		return;
248 248
 	}
249 249
 
250 250
 	// CSS.
251
-	wp_register_style( 'jquery-ui-css', $css_dir . 'jquery-ui-fresh' . $suffix . '.css' );
252
-	wp_enqueue_style( 'jquery-ui-css' );
253
-	wp_register_style( 'give-admin', $css_dir . 'give-admin' . $direction . $suffix . '.css', array(), GIVE_VERSION );
254
-	wp_enqueue_style( 'give-admin' );
255
-	wp_register_style( 'jquery-chosen', $css_dir . 'chosen' . $suffix . '.css', array(), GIVE_VERSION );
256
-	wp_enqueue_style( 'jquery-chosen' );
257
-	wp_enqueue_style( 'thickbox' );
258
-	wp_enqueue_style( 'wp-color-picker' );
251
+	wp_register_style('jquery-ui-css', $css_dir.'jquery-ui-fresh'.$suffix.'.css');
252
+	wp_enqueue_style('jquery-ui-css');
253
+	wp_register_style('give-admin', $css_dir.'give-admin'.$direction.$suffix.'.css', array(), GIVE_VERSION);
254
+	wp_enqueue_style('give-admin');
255
+	wp_register_style('jquery-chosen', $css_dir.'chosen'.$suffix.'.css', array(), GIVE_VERSION);
256
+	wp_enqueue_style('jquery-chosen');
257
+	wp_enqueue_style('thickbox');
258
+	wp_enqueue_style('wp-color-picker');
259 259
 
260 260
 
261 261
 	// JS.
262
-	wp_register_script( 'jquery-chosen', $js_plugins . 'chosen.jquery' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION );
263
-	wp_enqueue_script( 'jquery-chosen' );
262
+	wp_register_script('jquery-chosen', $js_plugins.'chosen.jquery'.$suffix.'.js', array('jquery'), GIVE_VERSION);
263
+	wp_enqueue_script('jquery-chosen');
264 264
 
265
-	wp_register_script( 'give-accounting', $js_plugins . 'accounting' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
266
-	wp_enqueue_script( 'give-accounting' );
265
+	wp_register_script('give-accounting', $js_plugins.'accounting'.$suffix.'.js', array('jquery'), GIVE_VERSION, false);
266
+	wp_enqueue_script('give-accounting');
267 267
 
268
-	wp_enqueue_script( 'wp-color-picker' );
269
-	wp_enqueue_script( 'jquery-ui-datepicker' );
270
-	wp_enqueue_script( 'thickbox' );
268
+	wp_enqueue_script('wp-color-picker');
269
+	wp_enqueue_script('jquery-ui-datepicker');
270
+	wp_enqueue_script('thickbox');
271 271
 
272
-	wp_register_script( 'give-admin-scripts', $js_dir . 'admin-scripts' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'wp-color-picker' ), GIVE_VERSION, false );
273
-	wp_enqueue_script( 'give-admin-scripts' );
272
+	wp_register_script('give-admin-scripts', $js_dir.'admin-scripts'.$suffix.'.js', array('jquery', 'jquery-ui-datepicker', 'wp-color-picker'), GIVE_VERSION, false);
273
+	wp_enqueue_script('give-admin-scripts');
274 274
 
275
-	wp_register_script( 'jquery-flot', $js_plugins . 'jquery.flot' . $suffix . '.js' );
276
-	wp_enqueue_script( 'jquery-flot' );
275
+	wp_register_script('jquery-flot', $js_plugins.'jquery.flot'.$suffix.'.js');
276
+	wp_enqueue_script('jquery-flot');
277 277
 
278
-	wp_register_script( 'give-qtip', $js_plugins . 'jquery.qtip' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
279
-	wp_enqueue_script( 'give-qtip' );
278
+	wp_register_script('give-qtip', $js_plugins.'jquery.qtip'.$suffix.'.js', array('jquery'), GIVE_VERSION, false);
279
+	wp_enqueue_script('give-qtip');
280 280
 
281
-	wp_register_script( 'give-repeatable-fields', $js_plugins . 'repeatable-fields' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
282
-	wp_enqueue_script( 'give-repeatable-fields' );
281
+	wp_register_script('give-repeatable-fields', $js_plugins.'repeatable-fields'.$suffix.'.js', array('jquery'), GIVE_VERSION, false);
282
+	wp_enqueue_script('give-repeatable-fields');
283 283
 
284 284
 	// Forms CPT Script.
285
-	if ( $post_type === 'give_forms' ) {
286
-		wp_register_script( 'give-admin-forms-scripts', $js_dir . 'admin-forms' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
287
-		wp_enqueue_script( 'give-admin-forms-scripts' );
285
+	if ($post_type === 'give_forms') {
286
+		wp_register_script('give-admin-forms-scripts', $js_dir.'admin-forms'.$suffix.'.js', array('jquery'), GIVE_VERSION, false);
287
+		wp_enqueue_script('give-admin-forms-scripts');
288 288
 	}
289 289
 
290 290
 	// Settings Scripts.
291
-	if ( isset( $_GET['page'] ) && $_GET['page'] == 'give-settings' ) {
292
-		wp_register_script( 'give-admin-settings-scripts', $js_dir . 'admin-settings' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
293
-		wp_enqueue_script( 'give-admin-settings-scripts' );
291
+	if (isset($_GET['page']) && $_GET['page'] == 'give-settings') {
292
+		wp_register_script('give-admin-settings-scripts', $js_dir.'admin-settings'.$suffix.'.js', array('jquery'), GIVE_VERSION, false);
293
+		wp_enqueue_script('give-admin-settings-scripts');
294 294
 	}
295 295
 
296 296
 	// Price Separators.
@@ -298,74 +298,74 @@  discard block
 block discarded – undo
298 298
 	$decimal_separator  = give_get_price_decimal_separator();
299 299
 
300 300
 	// Localize strings & variables for JS.
301
-	wp_localize_script( 'give-admin-scripts', 'give_vars', array(
302
-		'post_id'                        => isset( $post->ID ) ? $post->ID : null,
301
+	wp_localize_script('give-admin-scripts', 'give_vars', array(
302
+		'post_id'                        => isset($post->ID) ? $post->ID : null,
303 303
 		'give_version'                   => GIVE_VERSION,
304 304
 		'thousands_separator'            => $thousand_separator,
305 305
 		'decimal_separator'              => $decimal_separator,
306
-		'quick_edit_warning'             => __( 'Not available for variable priced forms.', 'give' ),
307
-		'delete_payment'                 => __( 'Are you sure you want to delete this payment?', 'give' ),
308
-		'delete_payment_note'            => __( 'Are you sure you want to delete this note?', 'give' ),
309
-		'revoke_api_key'                 => __( 'Are you sure you want to revoke this API key?', 'give' ),
310
-		'regenerate_api_key'             => __( 'Are you sure you want to regenerate this API key?', 'give' ),
311
-		'resend_receipt'                 => __( 'Are you sure you want to resend the donation receipt?', 'give' ),
312
-		'disconnect_user'                => __( 'Are you sure you want to disconnect the user from this donor?', 'give' ),
313
-		'one_option'                     => __( 'Choose a form', 'give' ),
314
-		'one_or_more_option'             => __( 'Choose one or more forms', 'give' ),
315
-		'currency_sign'                  => give_currency_filter( '' ),
316
-		'currency_pos'                   => isset( $give_options['currency_position'] ) ? $give_options['currency_position'] : 'before',
317
-		'currency_decimals'              => give_currency_decimal_filter( give_get_price_decimals() ),
318
-		'batch_export_no_class'          => __( 'You must choose a method.', 'give' ),
319
-		'batch_export_no_reqs'           => __( 'Required fields not completed.', 'give' ),
320
-		'reset_stats_warn'               => __( 'Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding.', 'give' ),
321
-		'price_format_guide'             => sprintf( __( 'Please enter amount in monetary decimal ( %1$s ) format without thousand separator ( %2$s ) .', 'give' ), $decimal_separator, $thousand_separator ),
306
+		'quick_edit_warning'             => __('Not available for variable priced forms.', 'give'),
307
+		'delete_payment'                 => __('Are you sure you want to delete this payment?', 'give'),
308
+		'delete_payment_note'            => __('Are you sure you want to delete this note?', 'give'),
309
+		'revoke_api_key'                 => __('Are you sure you want to revoke this API key?', 'give'),
310
+		'regenerate_api_key'             => __('Are you sure you want to regenerate this API key?', 'give'),
311
+		'resend_receipt'                 => __('Are you sure you want to resend the donation receipt?', 'give'),
312
+		'disconnect_user'                => __('Are you sure you want to disconnect the user from this donor?', 'give'),
313
+		'one_option'                     => __('Choose a form', 'give'),
314
+		'one_or_more_option'             => __('Choose one or more forms', 'give'),
315
+		'currency_sign'                  => give_currency_filter(''),
316
+		'currency_pos'                   => isset($give_options['currency_position']) ? $give_options['currency_position'] : 'before',
317
+		'currency_decimals'              => give_currency_decimal_filter(give_get_price_decimals()),
318
+		'batch_export_no_class'          => __('You must choose a method.', 'give'),
319
+		'batch_export_no_reqs'           => __('Required fields not completed.', 'give'),
320
+		'reset_stats_warn'               => __('Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding.', 'give'),
321
+		'price_format_guide'             => sprintf(__('Please enter amount in monetary decimal ( %1$s ) format without thousand separator ( %2$s ) .', 'give'), $decimal_separator, $thousand_separator),
322 322
 		/* translators : %s: Donation form options metabox */
323
-		'confirm_before_remove_row_text' => __( 'Do you want to delete this level?', 'give' ),
324
-		'matched_success_failure_page'   => __( 'You cannot set the success and failed pages to the same page', 'give' ),
325
-		'dismiss_notice_text'            => __( 'Dismiss this notice.', 'give' ),
326
-		'search_placeholder'             => __( 'Type to search all forms', 'give' ),
327
-		'search_placeholder_donor'       => __( 'Type to search all donors', 'give' ),
328
-		'search_placeholder_country'     => __( 'Type to search all countries', 'give' ),
329
-		'search_placeholder_state'       => __( 'Type to search all states/provinces', 'give' ),
323
+		'confirm_before_remove_row_text' => __('Do you want to delete this level?', 'give'),
324
+		'matched_success_failure_page'   => __('You cannot set the success and failed pages to the same page', 'give'),
325
+		'dismiss_notice_text'            => __('Dismiss this notice.', 'give'),
326
+		'search_placeholder'             => __('Type to search all forms', 'give'),
327
+		'search_placeholder_donor'       => __('Type to search all donors', 'give'),
328
+		'search_placeholder_country'     => __('Type to search all countries', 'give'),
329
+		'search_placeholder_state'       => __('Type to search all states/provinces', 'give'),
330 330
 		'bulk_action' => array(
331 331
 			'delete'         => array(
332
-				'zero_payment_selected' => __( 'You must choose at least one or more payments to delete.', 'give' ),
333
-				'delete_payment'        => __( 'Are you sure you want to permanently delete this donation?', 'give' ),
334
-				'delete_payments'       => __( 'Are you sure you want to permanently delete the selected {payment_count} donations?', 'give' ),
332
+				'zero_payment_selected' => __('You must choose at least one or more payments to delete.', 'give'),
333
+				'delete_payment'        => __('Are you sure you want to permanently delete this donation?', 'give'),
334
+				'delete_payments'       => __('Are you sure you want to permanently delete the selected {payment_count} donations?', 'give'),
335 335
 			),
336 336
 			'resend_receipt' => array(
337
-				'zero_recipient_selected' => __( 'You must choose at least one or more recipients to resend the email receipt.', 'give' ),
338
-				'resend_receipt'          => __( 'Are you sure you want to resend the email receipt to this recipient?', 'give' ),
339
-				'resend_receipts'         => __( 'Are you sure you want to resend the emails receipt to {payment_count} recipients?', 'give' ),
337
+				'zero_recipient_selected' => __('You must choose at least one or more recipients to resend the email receipt.', 'give'),
338
+				'resend_receipt'          => __('Are you sure you want to resend the email receipt to this recipient?', 'give'),
339
+				'resend_receipts'         => __('Are you sure you want to resend the emails receipt to {payment_count} recipients?', 'give'),
340 340
 			),
341 341
 			'set_to_status' => array(
342
-				'zero'      => __( 'You must choose at least one or more donations to set status to {status}.', 'give' ),
343
-				'single'    => __( 'Are you sure you want to set status of this donation to {status}?', 'give' ),
344
-				'multiple'  => __( 'Are you sure you want to set status of {payment_count} donations to {status}?', 'give' ),
342
+				'zero'      => __('You must choose at least one or more donations to set status to {status}.', 'give'),
343
+				'single'    => __('Are you sure you want to set status of this donation to {status}?', 'give'),
344
+				'multiple'  => __('Are you sure you want to set status of {payment_count} donations to {status}?', 'give'),
345 345
 			),
346 346
 		),
347 347
 		'metabox_fields' => array(
348 348
 			'media' => array(
349
-				'button_title' => __( 'Choose Image', 'give' ),
349
+				'button_title' => __('Choose Image', 'give'),
350 350
 			),
351 351
 			'file' => array(
352
-				'button_title' => __( 'Choose File', 'give' ),
352
+				'button_title' => __('Choose File', 'give'),
353 353
 			)
354 354
 		),
355 355
 		'chosen' => array(
356
-			'no_results_msg'  => __( 'No results match {search_term}', 'give' ),
357
-			'ajax_search_msg' => __( 'Searching results for match {search_term}', 'give' ),
356
+			'no_results_msg'  => __('No results match {search_term}', 'give'),
357
+			'ajax_search_msg' => __('Searching results for match {search_term}', 'give'),
358 358
 		),
359
-	) );
359
+	));
360 360
 
361
-	if ( function_exists( 'wp_enqueue_media' ) && version_compare( get_bloginfo( 'version' ), '3.5', '>=' ) ) {
361
+	if (function_exists('wp_enqueue_media') && version_compare(get_bloginfo('version'), '3.5', '>=')) {
362 362
 		// call for new media manager.
363 363
 		wp_enqueue_media();
364 364
 	}
365 365
 
366 366
 }
367 367
 
368
-add_action( 'admin_enqueue_scripts', 'give_load_admin_scripts', 100 );
368
+add_action('admin_enqueue_scripts', 'give_load_admin_scripts', 100);
369 369
 
370 370
 /**
371 371
  * Admin Give Icon
@@ -380,13 +380,13 @@  discard block
 block discarded – undo
380 380
 	?>
381 381
     <style type="text/css" media="screen">
382 382
 
383
-        <?php if ( version_compare( get_bloginfo( 'version' ), '3.8-RC', '>=' ) || version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) { ?>
383
+        <?php if (version_compare(get_bloginfo('version'), '3.8-RC', '>=') || version_compare(get_bloginfo('version'), '3.8', '>=')) { ?>
384 384
         @font-face {
385 385
             font-family: 'give-icomoon';
386
-            src: url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.eot?ngjl88'; ?>');
387
-            src: url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.eot?#iefixngjl88'?>') format('embedded-opentype'),
388
-            url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.woff?ngjl88'; ?>') format('woff'),
389
-            url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.svg?ngjl88#icomoon'; ?>') format('svg');
386
+            src: url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.eot?ngjl88'; ?>');
387
+            src: url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.eot?#iefixngjl88'?>') format('embedded-opentype'),
388
+            url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.woff?ngjl88'; ?>') format('woff'),
389
+            url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.svg?ngjl88#icomoon'; ?>') format('svg');
390 390
             font-weight: normal;
391 391
             font-style: normal;
392 392
         }
@@ -405,4 +405,4 @@  discard block
 block discarded – undo
405 405
 	<?php
406 406
 }
407 407
 
408
-add_action( 'admin_head', 'give_admin_icon' );
408
+add_action('admin_head', 'give_admin_icon');
Please login to merge, or discard this patch.