|
@@ 728-732 (lines=5) @@
|
| 725 |
|
$args = apply_filters( 'give_get_earnings_by_date_args', $args ); |
| 726 |
|
$key = Give_Cache::get_key( 'give_stats', $args ); |
| 727 |
|
|
| 728 |
|
if ( ! empty( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'give-refresh-reports' ) ) { |
| 729 |
|
$earnings = false; |
| 730 |
|
} else { |
| 731 |
|
$earnings = Give_Cache::get( $key ); |
| 732 |
|
} |
| 733 |
|
|
| 734 |
|
if ( false === $earnings ) { |
| 735 |
|
$donations = get_posts( $args ); |
|
@@ 804-808 (lines=5) @@
|
| 801 |
|
|
| 802 |
|
$key = Give_Cache::get_key( 'give_stats', $args ); |
| 803 |
|
|
| 804 |
|
if ( ! empty( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'give-refresh-reports' ) ) { |
| 805 |
|
$count = false; |
| 806 |
|
} else { |
| 807 |
|
$count = Give_Cache::get( $key ); |
| 808 |
|
} |
| 809 |
|
|
| 810 |
|
if ( false === $count ) { |
| 811 |
|
$donations = new WP_Query( $args ); |