Check that  is an array before looping
Merge branch 'master' of github.com:easydigitaldownloads/Easy-Digital-Downloads
Deprecate edd_flush_earnings_cache(). #1547
Deprecate edd_flush_earnings_cache(). #1547
Introduce edd_increase/decrease_total_earnings(). #1547
Use edd_increase/decrease_total_earnings() dur payment completion, payment refunds, and payment deletions. #1547
Only decrease earnings if previous status is complete or revoked. #1547
store the total earnings on the first time they are calculated / retrieved. #1547
Clear necessary caches when earnings are increased / decreased. #1547
Fix MP6 display issues with Dashboard summary widget. #1707
Merge branch 'feature/all-earnings'
Add payment_id to edd_get_price_option_name