| @@ 141-156 (lines=16) @@ | ||
| 138 | $payment_count = isset( $_GET['payment'] ) ? count( $_GET['payment'] ) : 0; |
|
| 139 | ||
| 140 | switch ( $_GET['action'] ) { |
|
| 141 | case 'delete': |
|
| 142 | Give()->notices->register_notice( array( |
|
| 143 | 'id' => 'bulk_action_delete', |
|
| 144 | 'type' => 'updated', |
|
| 145 | 'description' => sprintf( |
|
| 146 | _n( |
|
| 147 | 'Successfully deleted one transaction.', |
|
| 148 | 'Successfully deleted %d transactions.', |
|
| 149 | $payment_count, |
|
| 150 | 'give' |
|
| 151 | ), |
|
| 152 | $payment_count ), |
|
| 153 | 'show' => true, |
|
| 154 | ) ); |
|
| 155 | ||
| 156 | break; |
|
| 157 | ||
| 158 | case 'resend-receipt': |
|
| 159 | Give()->notices->register_notice( array( |
|
| @@ 158-173 (lines=16) @@ | ||
| 155 | ||
| 156 | break; |
|
| 157 | ||
| 158 | case 'resend-receipt': |
|
| 159 | Give()->notices->register_notice( array( |
|
| 160 | 'id' => 'bulk_action_resend_receipt', |
|
| 161 | 'type' => 'updated', |
|
| 162 | 'description' => sprintf( |
|
| 163 | _n( |
|
| 164 | 'Successfully sent email receipt to one recipient.', |
|
| 165 | 'Successfully sent email receipts to %d recipients.', |
|
| 166 | $payment_count, |
|
| 167 | 'give' |
|
| 168 | ), |
|
| 169 | $payment_count |
|
| 170 | ), |
|
| 171 | 'show' => true, |
|
| 172 | ) ); |
|
| 173 | break; |
|
| 174 | } |
|
| 175 | } |
|
| 176 | ||