Corrected the top earners array too.

This commit is contained in:
John Cotton 2011-11-24 01:00:21 +00:00
parent c980c67f7d
commit d60bd41b65
1 changed files with 1 additions and 1 deletions

View File

@ -981,8 +981,8 @@ function woocommerce_top_earners() {
endif;
asort($found_products);
$found_products = array_slice($found_products, 0, 25, true);
$found_products = array_reverse($found_products, true);
$found_products = array_slice($found_products, 0, 25, true);
reset($found_products);
remove_filter( 'posts_where', 'orders_within_range' );