Passed
Push — master ( 3d88bf...f3309e )
by Brian
05:31
created
templates/invoice/header-left-actions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12 12
 ?>
13 13
 
14 14
         <div class="getpaid-header-left-actions">
15 15
 
16
-            <?php if ( $invoice->is_type( 'invoice' ) && $invoice->needs_payment() && ! $invoice->is_held() ): ?>
17
-                <a class="btn btn-sm btn-primary invoice-action-pay" href="<?php echo esc_url( $invoice->get_checkout_payment_url() ); ?>">
18
-                    <?php _e( 'Pay For Invoice', 'invoicing' ); ?>
16
+            <?php if ($invoice->is_type('invoice') && $invoice->needs_payment() && !$invoice->is_held()): ?>
17
+                <a class="btn btn-sm btn-primary invoice-action-pay" href="<?php echo esc_url($invoice->get_checkout_payment_url()); ?>">
18
+                    <?php _e('Pay For Invoice', 'invoicing'); ?>
19 19
                 </a>
20 20
             <?php endif; ?>
21 21
 
22
-            <?php do_action( 'wpinv_invoice_display_left_actions', $invoice ); ?>
22
+            <?php do_action('wpinv_invoice_display_left_actions', $invoice); ?>
23 23
 
24 24
         </div>
25 25
 
Please login to merge, or discard this patch.