Corrected the top earners array too.
This commit is contained in:
parent
c980c67f7d
commit
d60bd41b65
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue