Skip to content

Commit

Permalink
Merge pull request #2850 from WordImpress/issue/2847
Browse files Browse the repository at this point in the history
fix(dashboard-widget): incorrect stat for this year #2847
  • Loading branch information
Devin Walker committed Feb 28, 2018
2 parents 37cc24e + b2b8010 commit 07c31dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/dashboard-widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function give_dashboard_sales_widget() {
<p class="give-dashboard-stat-total-label"><?php _e( 'Last Month', 'give' ); ?></p>
</td>
<td>
<p class="give-dashboard-stat-total"><?php echo give_currency_filter( give_format_amount( give_get_total_earnings(), array( 'sanitize' => false ) ) ) ?></p>
<p class="give-dashboard-stat-total"><?php echo give_currency_filter( give_format_amount( $stats->get_earnings( 0, 'this_year' ), array( 'sanitize' => false ) ) ) ?></p>

<p class="give-dashboard-stat-total-label"><?php _e( 'This Year', 'give' ); ?></p>
</td>
Expand Down

0 comments on commit 07c31dc

Please sign in to comment.