← All changes
|
includes/admin/tools/data/class-give-tools-recount-donor-stats.php
+8
-4
2.3.2
→
4.17.0
View file →
| @@ -166,9 +166,9 @@ | ||
| 166 | 166 | 'order' => 'DESC', |
| 167 | 167 | ); |
| 168 | 168 | |
| 169 | 169 | $donors = Give()->donors->get_donors( $args ); |
| 170 | - $total = count( $donors ); | |
| 170 | + $total = count( $donors ); | |
| 171 | 171 | |
| 172 | 172 | $percentage = 100; |
| 173 | 173 | |
| 174 | 174 | if ( $total > 0 ) { |
| @@ -200,11 +200,15 @@ | ||
| 200 | 200 | */ |
| 201 | 201 | public function process_step() { |
| 202 | 202 | |
| 203 | 203 | if ( ! $this->can_export() ) { |
| 204 | - wp_die( esc_html__( 'You do not have permission to recount stats.', 'give' ), esc_html__( 'Error', 'give' ), array( | |
| 205 | - 'response' => 403, | |
| 206 | - ) ); | |
| 204 | + wp_die( | |
| 205 | + esc_html__( 'You do not have permission to recount stats.', 'give' ), | |
| 206 | + esc_html__( 'Error', 'give' ), | |
| 207 | + array( | |
| 208 | + 'response' => 403, | |
| 209 | + ) | |
| 210 | + ); | |
| 207 | 211 | } |
| 208 | 212 | |
| 209 | 213 | $had_data = $this->get_data(); |
| 210 | 214 | |