|
@@ 505-510 (lines=6) @@
|
| 502 |
|
$year = ! empty( $date_parts[2] ) && is_numeric( $date_parts[2] ) ? $date_parts[2] : 0; |
| 503 |
|
|
| 504 |
|
$is_date = checkdate( $month, $day, $year ); |
| 505 |
|
if ( false !== $is_date ) { |
| 506 |
|
|
| 507 |
|
$date = new DateTime( $args['start-date'] ); |
| 508 |
|
$where .= $wpdb->prepare( " AND p.post_date >= '%s'", $date->format( 'Y-m-d' ) ); |
| 509 |
|
|
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
// Fixes an issue with the payments list table counts when no end date is specified (with stats class). |
| 513 |
|
if ( empty( $args['end-date'] ) ) { |
|
@@ 527-532 (lines=6) @@
|
| 524 |
|
$year = ! empty( $date_parts[2] ) ? $date_parts[2] : 0; |
| 525 |
|
|
| 526 |
|
$is_date = checkdate( $month, $day, $year ); |
| 527 |
|
if ( false !== $is_date ) { |
| 528 |
|
|
| 529 |
|
$date = new DateTime( $args['end-date'] ); |
| 530 |
|
$where .= $wpdb->prepare( " AND p.post_date <= '%s'", $date->format( 'Y-m-d' ) ); |
| 531 |
|
|
| 532 |
|
} |
| 533 |
|
} |
| 534 |
|
|
| 535 |
|
$where = apply_filters( 'give_count_payments_where', $where ); |