Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/php8.1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnxt89 committed Dec 21, 2022
2 parents 39d7755 + bcda0a3 commit a10398c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/databases/class-lp-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ public function execute( LP_Filter $filter, int &$total_rows = 0 ) {
// Order by
$ORDER_BY = '';
if ( ! $filter->return_string_query && $filter->order_by ) {
$filter->order = strtoupper( $filter->order );
if ( ! in_array( $filter->order, [ 'DESC', 'ASC' ] ) ) {
$filter->order = 'DESC';
}
Expand Down

0 comments on commit a10398c

Please sign in to comment.