updated plugin Easy Digital Downloads version 3.1.1.3

This commit is contained in:
2023-03-29 18:20:17 +00:00
committed by Gitium
parent 2573ae37c7
commit e42ba0e05a
20 changed files with 234 additions and 155 deletions

View File

@ -858,6 +858,12 @@ class EDD_Payment_History_Table extends List_Table {
'type' => $type,
) );
// If no specific ordering has been requested, order by `date_created`.
if ( empty( $_GET['orderby'] ) ) {
$args['orderby'] = 'date_created';
$args['order'] = 'DESC';
}
// Update args by search query.
if ( ! empty( $search ) ) {
$args = $this->parse_search( $search, $args );