Skip to content

Commit

Permalink
fix: Dashboard big counter warning issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alamgircsebd committed Dec 10, 2020
1 parent ec2b7a7 commit 63a5ae2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/dashboard/big-counter-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
$status = dokan_withdraw_get_active_order_status();
$total = 0;
foreach ( $status as $order_status ){
if ( ! isset( $orders_count->$order_status ) ) {
continue;
}
$total += $orders_count->$order_status;
}
echo esc_html( number_format_i18n( $total, 0 ) );
Expand Down

0 comments on commit 63a5ae2

Please sign in to comment.