← All changes
|
includes/admin/tools/data/class-give-tools-delete-donations.php
+3
-2
2.3.1
→
4.17.0
View file →
| @@ -222,9 +222,10 @@ | ||
| 222 | 222 | * |
| 223 | 223 | * @since 2.3.0 |
| 224 | 224 | */ |
| 225 | 225 | $args = apply_filters( |
| 226 | - 'give_tools_delete_donations_only_args', array( | |
| 226 | + 'give_tools_delete_donations_only_args', | |
| 227 | + array( | |
| 227 | 228 | 'post_status' => 'any', |
| 228 | 229 | 'number' => - 1, |
| 229 | 230 | 'start_date' => $this->start_date, |
| 230 | 231 | 'end_date' => $this->end_date, |
| @@ -230,9 +231,9 @@ | ||
| 230 | 231 | 'end_date' => $this->end_date, |
| 231 | 232 | ) |
| 232 | 233 | ); |
| 233 | 234 | |
| 234 | - $posts = new Give_Payments_Query( $args ); | |
| 235 | + $posts = new Give_Payments_Query( $args ); | |
| 235 | 236 | |
| 236 | 237 | $payments = $posts->get_payments(); |
| 237 | 238 | |
| 238 | 239 | if ( ! empty( $payments ) ) { |