Fixed invalid sort criterion for coupons endpoint.

This commit is contained in:
Peter Fabian 2018-12-10 18:49:38 +01:00 committed by Joshua Flowers
parent 3535f52d78
commit 3e45c6a82c
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class WC_Admin_Reports_Coupons_Data_Store extends WC_Admin_Reports_Data_Store im
'per_page' => get_option( 'posts_per_page' ),
'page' => 1,
'order' => 'DESC',
'orderby' => 'date',
'orderby' => 'coupon_id',
'before' => date( WC_Admin_Reports_Interval::$iso_datetime_format, $now ),
'after' => date( WC_Admin_Reports_Interval::$iso_datetime_format, $week_back ),
'fields' => '*',